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

Classes

struct  Permission
 

Public Types

enum  Axis {
  x ,
  y ,
  z
}
 
enum  PermissionType {
  scale ,
  rotation
}
 

Public Member Functions

 SpawnerEntityEditorHelper (ScriptComponentBehavior spawner)
 
GameEntity GetGhostEntityOrChild (string name)
 
void Tick (float dt)
 
void GivePermission (string childName, Permission permission, Action< float > onChangeFunction)
 Gives a permission to a specific child for allowing it to be rotated along specified axis or to be scaled in specified axis.
 
void ChangeStableChildMatrixFrameAndApply (string childName, MatrixFrame matrixFrame, bool updateTriad=true)
 
string GetPrefabName ()
 
void SetupGhostMovement (string pathName)
 
void SetEnableAutoGhostMovement (bool enableAutoGhostMovement)
 

Public Attributes

bool LockGhostParent = true
 

Properties

bool IsValid [get]
 
GameEntity SpawnedGhostEntity [get]
 

Member Enumeration Documentation

◆ Axis

◆ PermissionType

Constructor & Destructor Documentation

◆ SpawnerEntityEditorHelper()

TaleWorlds.MountAndBlade.SpawnerEntityEditorHelper.SpawnerEntityEditorHelper ( ScriptComponentBehavior  spawner)

Member Function Documentation

◆ GetGhostEntityOrChild()

GameEntity TaleWorlds.MountAndBlade.SpawnerEntityEditorHelper.GetGhostEntityOrChild ( string  name)

◆ Tick()

void TaleWorlds.MountAndBlade.SpawnerEntityEditorHelper.Tick ( float  dt)

◆ GivePermission()

void TaleWorlds.MountAndBlade.SpawnerEntityEditorHelper.GivePermission ( string  childName,
Permission  permission,
Action< float >  onChangeFunction 
)
Parameters
childName
permission
onChangeFunctionThis function will be called when permitted action happened, input of this function will be euler angle for rotation and axis length for scale.

◆ ChangeStableChildMatrixFrameAndApply()

void TaleWorlds.MountAndBlade.SpawnerEntityEditorHelper.ChangeStableChildMatrixFrameAndApply ( string  childName,
MatrixFrame  matrixFrame,
bool  updateTriad = true 
)

◆ GetPrefabName()

string TaleWorlds.MountAndBlade.SpawnerEntityEditorHelper.GetPrefabName ( )

◆ SetupGhostMovement()

void TaleWorlds.MountAndBlade.SpawnerEntityEditorHelper.SetupGhostMovement ( string  pathName)

◆ SetEnableAutoGhostMovement()

void TaleWorlds.MountAndBlade.SpawnerEntityEditorHelper.SetEnableAutoGhostMovement ( bool  enableAutoGhostMovement)

Member Data Documentation

◆ LockGhostParent

bool TaleWorlds.MountAndBlade.SpawnerEntityEditorHelper.LockGhostParent = true

Property Documentation

◆ IsValid

bool TaleWorlds.MountAndBlade.SpawnerEntityEditorHelper.IsValid
get

◆ SpawnedGhostEntity

GameEntity TaleWorlds.MountAndBlade.SpawnerEntityEditorHelper.SpawnedGhostEntity
get