M&B: Bannerlord 1.1.0
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.MountAndBlade.View.Scripts.CharacterDebugSpawner Class Reference

Inherits TaleWorlds.Engine.ScriptComponentBehavior.

Public Member Functions

void SetClothColors (uint color1, uint color2)
 
void SpawnCharacter ()
 
void Reset ()
 
void InitWithCharacter (CharacterCode characterCode)
 
void WieldWeapon (CharacterCode characterCode)
 
- Public Member Functions inherited from TaleWorlds.Engine.ScriptComponentBehavior
void SetScriptComponentToTick (TickRequirement value)
 
void SetScriptComponentToTickMT (TickRequirement value)
 
virtual TickRequirement GetTickRequirement ()
 

Public Attributes

readonly ActionIndexCache PoseAction = ActionIndexCache.Create("act_walk_idle_unarmed")
 
string LordName = "main_hero"
 
bool IsWeaponWielded = false
 

Protected Member Functions

override void OnInit ()
 This callback method is called when the object is constructed.
 
override void OnEditorInit ()
 
override void OnEditorTick (float dt)
 
override void OnRemoved (int removeReason)
 
override void OnEditorVariableChanged (string variableName)
 Called when an object's field has changed from the editor.
 
- Protected Member Functions inherited from TaleWorlds.Engine.ScriptComponentBehavior
void InvalidateWeakPointersIfValid ()
 
 ScriptComponentBehavior ()
 
virtual void OnRemoved (int removeReason)
 

Properties

uint ClothColor1 [get]
 
uint ClothColor2 [get]
 
- Properties inherited from TaleWorlds.Engine.ScriptComponentBehavior
GameEntity GameEntity [get]
 
ManagedScriptComponent ScriptComponent [get]
 
ManagedScriptHolder ManagedScriptHolder [get]
 
Scene Scene [get]
 

Additional Inherited Members

- Public Types inherited from TaleWorlds.Engine.ScriptComponentBehavior
enum  TickRequirement : uint {
  None = 0x00000000 ,
  TickOccasionally = 0x00000001 ,
  Tick = 0x00000002 ,
  TickParallel = 0x00000004 ,
  TickParallel2 = 0x00000008
}
 

Member Function Documentation

◆ OnInit()

override void TaleWorlds.MountAndBlade.View.Scripts.CharacterDebugSpawner.OnInit ( )
protectedvirtual

◆ OnEditorInit()

override void TaleWorlds.MountAndBlade.View.Scripts.CharacterDebugSpawner.OnEditorInit ( )
protectedvirtual

◆ OnEditorTick()

override void TaleWorlds.MountAndBlade.View.Scripts.CharacterDebugSpawner.OnEditorTick ( float  dt)
protectedvirtual

◆ OnRemoved()

override void TaleWorlds.MountAndBlade.View.Scripts.CharacterDebugSpawner.OnRemoved ( int  removeReason)
protectedvirtual

◆ OnEditorVariableChanged()

override void TaleWorlds.MountAndBlade.View.Scripts.CharacterDebugSpawner.OnEditorVariableChanged ( string  variableName)
protectedvirtual
Parameters
variableNameName of the field which has just changed.

Reimplemented from TaleWorlds.Engine.ScriptComponentBehavior.

◆ SetClothColors()

void TaleWorlds.MountAndBlade.View.Scripts.CharacterDebugSpawner.SetClothColors ( uint  color1,
uint  color2 
)

◆ SpawnCharacter()

void TaleWorlds.MountAndBlade.View.Scripts.CharacterDebugSpawner.SpawnCharacter ( )

◆ Reset()

void TaleWorlds.MountAndBlade.View.Scripts.CharacterDebugSpawner.Reset ( )

◆ InitWithCharacter()

void TaleWorlds.MountAndBlade.View.Scripts.CharacterDebugSpawner.InitWithCharacter ( CharacterCode  characterCode)

◆ WieldWeapon()

void TaleWorlds.MountAndBlade.View.Scripts.CharacterDebugSpawner.WieldWeapon ( CharacterCode  characterCode)

Member Data Documentation

◆ PoseAction

readonly ActionIndexCache TaleWorlds.MountAndBlade.View.Scripts.CharacterDebugSpawner.PoseAction = ActionIndexCache.Create("act_walk_idle_unarmed")

◆ LordName

string TaleWorlds.MountAndBlade.View.Scripts.CharacterDebugSpawner.LordName = "main_hero"

◆ IsWeaponWielded

bool TaleWorlds.MountAndBlade.View.Scripts.CharacterDebugSpawner.IsWeaponWielded = false

Property Documentation

◆ ClothColor1

uint TaleWorlds.MountAndBlade.View.Scripts.CharacterDebugSpawner.ClothColor1
get

◆ ClothColor2

uint TaleWorlds.MountAndBlade.View.Scripts.CharacterDebugSpawner.ClothColor2
get