M&B: Bannerlord 1.2.10
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.Engine.Skeleton Class Referencesealed

Inherits NativeObject.

Public Member Functions

string GetName ()
 
string GetBoneName (sbyte boneIndex)
 
sbyte GetBoneChildAtIndex (sbyte boneIndex, sbyte childIndex)
 
sbyte GetBoneChildCount (sbyte boneIndex)
 
sbyte GetParentBoneIndex (sbyte boneIndex)
 
void AddMeshToBone (UIntPtr mesh, sbyte boneIndex)
 
void Freeze (bool p)
 
bool IsFrozen ()
 
void SetBoneLocalFrame (sbyte boneIndex, MatrixFrame localFrame)
 
sbyte GetBoneCount ()
 
void GetBoneBody (sbyte boneIndex, ref CapsuleData data)
 
void ForceUpdateBoneFrames ()
 
MatrixFrame GetBoneEntitialFrameWithIndex (sbyte boneIndex)
 
MatrixFrame GetBoneEntitialFrameWithName (string boneName)
 
RagdollState GetCurrentRagdollState ()
 
void ActivateRagdoll ()
 
sbyte GetSkeletonBoneMapping (sbyte boneIndex)
 
void AddMesh (Mesh mesh)
 
void ClearComponents ()
 
void AddComponent (GameEntityComponent component)
 
bool HasComponent (GameEntityComponent component)
 
void RemoveComponent (GameEntityComponent component)
 
void ClearMeshes (bool clearBoneComponents=true)
 
int GetComponentCount (GameEntity.ComponentType componentType)
 
void UpdateEntitialFramesFromLocalFrames ()
 
void ResetFrames ()
 
GameEntityComponent GetComponentAtIndex (GameEntity.ComponentType componentType, int index)
 
void SetUsePreciseBoundingVolume (bool value)
 
MatrixFrame GetBoneEntitialRestFrame (sbyte boneIndex, bool useBoneMapping)
 
MatrixFrame GetBoneLocalRestFrame (sbyte boneIndex, bool useBoneMapping=true)
 
MatrixFrame GetBoneEntitialRestFrame (sbyte boneIndex)
 
MatrixFrame GetBoneEntitialFrameAtChannel (int channelNo, sbyte boneIndex)
 
MatrixFrame GetBoneEntitialFrame (sbyte boneIndex)
 
int GetBoneComponentCount (sbyte boneIndex)
 
GameEntityComponent GetBoneComponentAtIndex (sbyte boneIndex, int componentIndex)
 
bool HasBoneComponent (sbyte boneIndex, GameEntityComponent component)
 
void AddComponentToBone (sbyte boneIndex, GameEntityComponent component)
 
void RemoveBoneComponent (sbyte boneIndex, GameEntityComponent component)
 
void ClearMeshesAtBone (sbyte boneIndex)
 
void TickAnimations (float dt, MatrixFrame globalFrame, bool tickAnimsForChildren)
 
void TickAnimationsAndForceUpdate (float dt, MatrixFrame globalFrame, bool tickAnimsForChildren)
 
float GetAnimationParameterAtChannel (int channelNo)
 
void SetAnimationParameterAtChannel (int channelNo, float parameter)
 
float GetAnimationSpeedAtChannel (int channelNo)
 
void SetAnimationSpeedAtChannel (int channelNo, float speed)
 
void SetUptoDate (bool value)
 
string GetAnimationAtChannel (int channelNo)
 
int GetAnimationIndexAtChannel (int channelNo)
 
void ResetCloths ()
 
IEnumerable< MeshGetAllMeshes ()
 

Static Public Member Functions

static Skeleton CreateFromModel (string modelName)
 
static Skeleton CreateFromModelWithNullAnimTree (GameEntity entity, string modelName, float boneScale=1.0f)
 
static bool SkeletonModelExist (string skeletonModelName)
 
static sbyte GetBoneIndexFromName (string skeletonModelName, string boneName)
 

Static Public Attributes

const sbyte MaxBoneCount = 64
 

Properties

bool IsValid [get]
 

Member Function Documentation

◆ CreateFromModel()

static Skeleton TaleWorlds.Engine.Skeleton.CreateFromModel ( string modelName)
static

◆ CreateFromModelWithNullAnimTree()

static Skeleton TaleWorlds.Engine.Skeleton.CreateFromModelWithNullAnimTree ( GameEntity entity,
string modelName,
float boneScale = 1::0f )
static

◆ GetName()

string TaleWorlds.Engine.Skeleton.GetName ( )

◆ GetBoneName()

string TaleWorlds.Engine.Skeleton.GetBoneName ( sbyte boneIndex)

◆ GetBoneChildAtIndex()

sbyte TaleWorlds.Engine.Skeleton.GetBoneChildAtIndex ( sbyte boneIndex,
sbyte childIndex )

◆ GetBoneChildCount()

sbyte TaleWorlds.Engine.Skeleton.GetBoneChildCount ( sbyte boneIndex)

◆ GetParentBoneIndex()

sbyte TaleWorlds.Engine.Skeleton.GetParentBoneIndex ( sbyte boneIndex)

◆ AddMeshToBone()

void TaleWorlds.Engine.Skeleton.AddMeshToBone ( UIntPtr mesh,
sbyte boneIndex )

◆ Freeze()

void TaleWorlds.Engine.Skeleton.Freeze ( bool p)

◆ IsFrozen()

bool TaleWorlds.Engine.Skeleton.IsFrozen ( )

◆ SetBoneLocalFrame()

void TaleWorlds.Engine.Skeleton.SetBoneLocalFrame ( sbyte boneIndex,
MatrixFrame localFrame )

◆ GetBoneCount()

sbyte TaleWorlds.Engine.Skeleton.GetBoneCount ( )

◆ GetBoneBody()

void TaleWorlds.Engine.Skeleton.GetBoneBody ( sbyte boneIndex,
ref CapsuleData data )

◆ SkeletonModelExist()

static bool TaleWorlds.Engine.Skeleton.SkeletonModelExist ( string skeletonModelName)
static

◆ ForceUpdateBoneFrames()

void TaleWorlds.Engine.Skeleton.ForceUpdateBoneFrames ( )

◆ GetBoneEntitialFrameWithIndex()

MatrixFrame TaleWorlds.Engine.Skeleton.GetBoneEntitialFrameWithIndex ( sbyte boneIndex)

◆ GetBoneEntitialFrameWithName()

MatrixFrame TaleWorlds.Engine.Skeleton.GetBoneEntitialFrameWithName ( string boneName)

◆ GetCurrentRagdollState()

RagdollState TaleWorlds.Engine.Skeleton.GetCurrentRagdollState ( )

◆ ActivateRagdoll()

void TaleWorlds.Engine.Skeleton.ActivateRagdoll ( )

◆ GetSkeletonBoneMapping()

sbyte TaleWorlds.Engine.Skeleton.GetSkeletonBoneMapping ( sbyte boneIndex)

◆ AddMesh()

void TaleWorlds.Engine.Skeleton.AddMesh ( Mesh mesh)

◆ ClearComponents()

void TaleWorlds.Engine.Skeleton.ClearComponents ( )

◆ AddComponent()

void TaleWorlds.Engine.Skeleton.AddComponent ( GameEntityComponent component)

◆ HasComponent()

bool TaleWorlds.Engine.Skeleton.HasComponent ( GameEntityComponent component)

◆ RemoveComponent()

void TaleWorlds.Engine.Skeleton.RemoveComponent ( GameEntityComponent component)

◆ ClearMeshes()

void TaleWorlds.Engine.Skeleton.ClearMeshes ( bool clearBoneComponents = true)

◆ GetComponentCount()

int TaleWorlds.Engine.Skeleton.GetComponentCount ( GameEntity.ComponentType componentType)

◆ UpdateEntitialFramesFromLocalFrames()

void TaleWorlds.Engine.Skeleton.UpdateEntitialFramesFromLocalFrames ( )

◆ ResetFrames()

void TaleWorlds.Engine.Skeleton.ResetFrames ( )

◆ GetComponentAtIndex()

GameEntityComponent TaleWorlds.Engine.Skeleton.GetComponentAtIndex ( GameEntity.ComponentType componentType,
int index )

◆ SetUsePreciseBoundingVolume()

void TaleWorlds.Engine.Skeleton.SetUsePreciseBoundingVolume ( bool value)

◆ GetBoneEntitialRestFrame() [1/2]

MatrixFrame TaleWorlds.Engine.Skeleton.GetBoneEntitialRestFrame ( sbyte boneIndex,
bool useBoneMapping )

◆ GetBoneLocalRestFrame()

MatrixFrame TaleWorlds.Engine.Skeleton.GetBoneLocalRestFrame ( sbyte boneIndex,
bool useBoneMapping = true )

◆ GetBoneEntitialRestFrame() [2/2]

MatrixFrame TaleWorlds.Engine.Skeleton.GetBoneEntitialRestFrame ( sbyte boneIndex)

◆ GetBoneEntitialFrameAtChannel()

MatrixFrame TaleWorlds.Engine.Skeleton.GetBoneEntitialFrameAtChannel ( int channelNo,
sbyte boneIndex )

◆ GetBoneEntitialFrame()

MatrixFrame TaleWorlds.Engine.Skeleton.GetBoneEntitialFrame ( sbyte boneIndex)

◆ GetBoneComponentCount()

int TaleWorlds.Engine.Skeleton.GetBoneComponentCount ( sbyte boneIndex)

◆ GetBoneComponentAtIndex()

GameEntityComponent TaleWorlds.Engine.Skeleton.GetBoneComponentAtIndex ( sbyte boneIndex,
int componentIndex )

◆ HasBoneComponent()

bool TaleWorlds.Engine.Skeleton.HasBoneComponent ( sbyte boneIndex,
GameEntityComponent component )

◆ AddComponentToBone()

void TaleWorlds.Engine.Skeleton.AddComponentToBone ( sbyte boneIndex,
GameEntityComponent component )

◆ RemoveBoneComponent()

void TaleWorlds.Engine.Skeleton.RemoveBoneComponent ( sbyte boneIndex,
GameEntityComponent component )

◆ ClearMeshesAtBone()

void TaleWorlds.Engine.Skeleton.ClearMeshesAtBone ( sbyte boneIndex)

◆ TickAnimations()

void TaleWorlds.Engine.Skeleton.TickAnimations ( float dt,
MatrixFrame globalFrame,
bool tickAnimsForChildren )

◆ TickAnimationsAndForceUpdate()

void TaleWorlds.Engine.Skeleton.TickAnimationsAndForceUpdate ( float dt,
MatrixFrame globalFrame,
bool tickAnimsForChildren )

◆ GetAnimationParameterAtChannel()

float TaleWorlds.Engine.Skeleton.GetAnimationParameterAtChannel ( int channelNo)

◆ SetAnimationParameterAtChannel()

void TaleWorlds.Engine.Skeleton.SetAnimationParameterAtChannel ( int channelNo,
float parameter )

◆ GetAnimationSpeedAtChannel()

float TaleWorlds.Engine.Skeleton.GetAnimationSpeedAtChannel ( int channelNo)

◆ SetAnimationSpeedAtChannel()

void TaleWorlds.Engine.Skeleton.SetAnimationSpeedAtChannel ( int channelNo,
float speed )

◆ SetUptoDate()

void TaleWorlds.Engine.Skeleton.SetUptoDate ( bool value)

◆ GetAnimationAtChannel()

string TaleWorlds.Engine.Skeleton.GetAnimationAtChannel ( int channelNo)

◆ GetAnimationIndexAtChannel()

int TaleWorlds.Engine.Skeleton.GetAnimationIndexAtChannel ( int channelNo)

◆ ResetCloths()

void TaleWorlds.Engine.Skeleton.ResetCloths ( )

◆ GetAllMeshes()

IEnumerable< Mesh > TaleWorlds.Engine.Skeleton.GetAllMeshes ( )

◆ GetBoneIndexFromName()

static sbyte TaleWorlds.Engine.Skeleton.GetBoneIndexFromName ( string skeletonModelName,
string boneName )
static

Member Data Documentation

◆ MaxBoneCount

const sbyte TaleWorlds.Engine.Skeleton.MaxBoneCount = 64
static

Property Documentation

◆ IsValid

bool TaleWorlds.Engine.Skeleton.IsValid
get