M&B: Bannerlord 1.0.0
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.MountAndBlade.MBActionSet Struct Reference

Structure for accessing action sets.

Public Member Functions

bool Equals (MBActionSet a)
 Over-ride for Equals function. Index check is made instead of pointer check. More...
 
bool Equals (int index)
 Over-ride for Equals function. Index check is made instead of pointer check. More...
 
override int GetHashCode ()
 Over-ride for GetHashCode function. More...
 
string GetName ()
 
string GetSkeletonName ()
 
string GetAnimationName (ActionIndexCache actionCode)
 
bool AreActionsAlternatives (ActionIndexCache actionCode1, ActionIndexCache actionCode2)
 

Static Public Member Functions

static int GetNumberOfActionSets ()
 
static int GetNumberOfMonsterUsageSets ()
 
static MBActionSet GetActionSet (string objectID)
 
static MBActionSet GetActionSetWithIndex (int index)
 
static sbyte GetBoneIndexWithId (string actionSetId, string boneId)
 
static bool GetBoneHasParentBone (string actionSetId, sbyte boneIndex)
 
static Vec3 GetActionDisplacementVector (MBActionSet actionSet, ActionIndexCache actionIndexCache)
 
static AnimFlags GetActionAnimationFlags (MBActionSet actionSet, ActionIndexCache actionIndexCache)
 
static bool CheckActionAnimationClipExists (MBActionSet actionSet, ActionIndexCache actionIndexCache)
 
static int GetAnimationIndexOfAction (MBActionSet actionSet, ActionIndexCache actionIndexCache)
 
static string GetActionAnimationName (MBActionSet actionSet, ActionIndexCache actionIndexCache)
 
static float GetActionAnimationDuration (MBActionSet actionSet, ActionIndexCache actionIndexCache)
 
static ActionIndexCache GetActionAnimationContinueToAction (MBActionSet actionSet, ActionIndexCache actionIndexCache)
 
static float GetTotalAnimationDurationWithContinueToAction (MBActionSet actionSet, ActionIndexCache actionIndexCache)
 
static float GetActionBlendOutStartProgress (MBActionSet actionSet, ActionIndexCache actionIndexCache)
 

Static Public Attributes

static readonly MBActionSet InvalidActionSet = new MBActionSet(-1)
 

Properties

bool IsValid [get]
 Gets a value indicating whether the engine index of object is valid or not. More...
 

Member Function Documentation

◆ Equals() [1/2]

bool TaleWorlds.MountAndBlade.MBActionSet.Equals ( MBActionSet  a)
Parameters
aObject that will be checked.
Returns
Returns true when both objects have the same index.

◆ Equals() [2/2]

bool TaleWorlds.MountAndBlade.MBActionSet.Equals ( int  index)
Parameters
indexIndex that will be checked.
Returns
Returns true when index of object is equal to index parameter.

◆ GetHashCode()

override int TaleWorlds.MountAndBlade.MBActionSet.GetHashCode ( )
Returns
Engine index is returned as the hash code since it is unique.

◆ GetName()

string TaleWorlds.MountAndBlade.MBActionSet.GetName ( )

◆ GetSkeletonName()

string TaleWorlds.MountAndBlade.MBActionSet.GetSkeletonName ( )

◆ GetAnimationName()

string TaleWorlds.MountAndBlade.MBActionSet.GetAnimationName ( ActionIndexCache  actionCode)

◆ AreActionsAlternatives()

bool TaleWorlds.MountAndBlade.MBActionSet.AreActionsAlternatives ( ActionIndexCache  actionCode1,
ActionIndexCache  actionCode2 
)

◆ GetNumberOfActionSets()

static int TaleWorlds.MountAndBlade.MBActionSet.GetNumberOfActionSets ( )
static

◆ GetNumberOfMonsterUsageSets()

static int TaleWorlds.MountAndBlade.MBActionSet.GetNumberOfMonsterUsageSets ( )
static

◆ GetActionSet()

static MBActionSet TaleWorlds.MountAndBlade.MBActionSet.GetActionSet ( string  objectID)
static

◆ GetActionSetWithIndex()

static MBActionSet TaleWorlds.MountAndBlade.MBActionSet.GetActionSetWithIndex ( int  index)
static

◆ GetBoneIndexWithId()

static sbyte TaleWorlds.MountAndBlade.MBActionSet.GetBoneIndexWithId ( string  actionSetId,
string  boneId 
)
static

◆ GetBoneHasParentBone()

static bool TaleWorlds.MountAndBlade.MBActionSet.GetBoneHasParentBone ( string  actionSetId,
sbyte  boneIndex 
)
static

◆ GetActionDisplacementVector()

static Vec3 TaleWorlds.MountAndBlade.MBActionSet.GetActionDisplacementVector ( MBActionSet  actionSet,
ActionIndexCache  actionIndexCache 
)
static

◆ GetActionAnimationFlags()

static AnimFlags TaleWorlds.MountAndBlade.MBActionSet.GetActionAnimationFlags ( MBActionSet  actionSet,
ActionIndexCache  actionIndexCache 
)
static

◆ CheckActionAnimationClipExists()

static bool TaleWorlds.MountAndBlade.MBActionSet.CheckActionAnimationClipExists ( MBActionSet  actionSet,
ActionIndexCache  actionIndexCache 
)
static

◆ GetAnimationIndexOfAction()

static int TaleWorlds.MountAndBlade.MBActionSet.GetAnimationIndexOfAction ( MBActionSet  actionSet,
ActionIndexCache  actionIndexCache 
)
static

◆ GetActionAnimationName()

static string TaleWorlds.MountAndBlade.MBActionSet.GetActionAnimationName ( MBActionSet  actionSet,
ActionIndexCache  actionIndexCache 
)
static

◆ GetActionAnimationDuration()

static float TaleWorlds.MountAndBlade.MBActionSet.GetActionAnimationDuration ( MBActionSet  actionSet,
ActionIndexCache  actionIndexCache 
)
static

◆ GetActionAnimationContinueToAction()

static ActionIndexCache TaleWorlds.MountAndBlade.MBActionSet.GetActionAnimationContinueToAction ( MBActionSet  actionSet,
ActionIndexCache  actionIndexCache 
)
static

◆ GetTotalAnimationDurationWithContinueToAction()

static float TaleWorlds.MountAndBlade.MBActionSet.GetTotalAnimationDurationWithContinueToAction ( MBActionSet  actionSet,
ActionIndexCache  actionIndexCache 
)
static

◆ GetActionBlendOutStartProgress()

static float TaleWorlds.MountAndBlade.MBActionSet.GetActionBlendOutStartProgress ( MBActionSet  actionSet,
ActionIndexCache  actionIndexCache 
)
static

Member Data Documentation

◆ InvalidActionSet

readonly MBActionSet TaleWorlds.MountAndBlade.MBActionSet.InvalidActionSet = new MBActionSet(-1)
static

Property Documentation

◆ IsValid

bool TaleWorlds.MountAndBlade.MBActionSet.IsValid
get