M&B: Bannerlord 1.1.0
The horns sound, the ravens gather.
|
Game Entity class.
Inherits NativeObject.
Public Types | |
enum | ComponentType : UInt32 { MetaMesh = 0 , Light , CompositeComponent , ClothSimulator , ParticleSystemInstanced , TownIcon , CustomType1 , Decal } |
enum | Mobility { stationary , dynamic , dynamic_forced } |
enum | UpgradeLevelMask { None = 0x000 , Level0 = 0x001 , Level1 = 0x002 , Level2 = 0x004 , Level3 = 0x008 , LevelAll = 0x00F } |
Static Public Member Functions | |
static GameEntity | CreateEmpty (Scene scene, bool isModifiableFromEditor=true) |
static GameEntity | CreateEmptyDynamic (Scene scene, bool isModifiableFromEditor=true) |
static GameEntity | CreateEmptyWithoutScene () |
static GameEntity | CopyFrom (Scene scene, GameEntity entity) |
static GameEntity | Instantiate (Scene scene, string prefabName, bool callScriptCallbacks) |
Instantiates a new instance of GameEntity constructed from the given prefab. | |
static GameEntity | Instantiate (Scene scene, string prefabName, MatrixFrame frame) |
Instantiates a new instance of GameEntity constructed from the given prefab. | |
static bool | PrefabExists (string name) |
static GameEntity | CopyFromPrefab (GameEntity prefab) |
Properties | |
Scene | Scene [get] |
string | Name [get, set] |
EntityFlags | EntityFlags [get, set] |
EntityVisibilityFlags | EntityVisibilityFlags [get, set] |
BodyFlags | BodyFlag [get, set] |
BodyFlags | PhysicsDescBodyFlag [get] |
float | Mass [get] |
Vec3 | CenterOfMass [get] |
Vec3 | GlobalPosition [get] |
string[] | Tags [get] |
Gets the tags of the entity, which can only be set in the edit mode. | |
int | ChildCount [get] |
GameEntity | Parent [get] |
GameEntity | Root [get] |
Gets the top most parent of this entity. | |
int | MultiMeshComponentCount [get] |
int | ClothSimulatorComponentCount [get] |
Vec3 | GlobalBoxMax [get] |
Vec3 | GlobalBoxMin [get] |
Skeleton | Skeleton [get, set] |
enum TaleWorlds.Engine.GameEntity.ComponentType : UInt32 |
UIntPtr TaleWorlds.Engine.GameEntity.GetScenePointer | ( | ) |
override string TaleWorlds.Engine.GameEntity.ToString | ( | ) |
void TaleWorlds.Engine.GameEntity.ClearEntityComponents | ( | bool | resetAll, |
bool | removeScripts, | ||
bool | deleteChildEntities | ||
) |
void TaleWorlds.Engine.GameEntity.ClearComponents | ( | ) |
void TaleWorlds.Engine.GameEntity.ClearOnlyOwnComponents | ( | ) |
bool TaleWorlds.Engine.GameEntity.CheckResources | ( | bool | addToQueue, |
bool | checkFaceResources | ||
) |
void TaleWorlds.Engine.GameEntity.SetMobility | ( | Mobility | mobility | ) |
void TaleWorlds.Engine.GameEntity.AddMesh | ( | Mesh | mesh, |
bool | recomputeBoundingBox = true |
||
) |
void TaleWorlds.Engine.GameEntity.AddMultiMeshToSkeleton | ( | MetaMesh | metaMesh | ) |
void TaleWorlds.Engine.GameEntity.AddMultiMeshToSkeletonBone | ( | MetaMesh | metaMesh, |
sbyte | boneIndex | ||
) |
IEnumerable< Mesh > TaleWorlds.Engine.GameEntity.GetAllMeshesWithTag | ( | string | tag | ) |
void TaleWorlds.Engine.GameEntity.SetColor | ( | uint | color1, |
uint | color2, | ||
string | meshTag | ||
) |
uint TaleWorlds.Engine.GameEntity.GetFactorColor | ( | ) |
void TaleWorlds.Engine.GameEntity.SetFactorColor | ( | uint | color | ) |
void TaleWorlds.Engine.GameEntity.SetAsReplayEntity | ( | ) |
void TaleWorlds.Engine.GameEntity.SetClothMaxDistanceMultiplier | ( | float | multiplier | ) |
void TaleWorlds.Engine.GameEntity.RemoveMultiMeshFromSkeleton | ( | MetaMesh | metaMesh | ) |
void TaleWorlds.Engine.GameEntity.RemoveMultiMeshFromSkeletonBone | ( | MetaMesh | metaMesh, |
sbyte | boneIndex | ||
) |
bool TaleWorlds.Engine.GameEntity.RemoveComponentWithMesh | ( | Mesh | mesh | ) |
void TaleWorlds.Engine.GameEntity.AddComponent | ( | GameEntityComponent | component | ) |
bool TaleWorlds.Engine.GameEntity.HasComponent | ( | GameEntityComponent | component | ) |
bool TaleWorlds.Engine.GameEntity.RemoveComponent | ( | GameEntityComponent | component | ) |
string TaleWorlds.Engine.GameEntity.GetGuid | ( | ) |
bool TaleWorlds.Engine.GameEntity.IsGuidValid | ( | ) |
void TaleWorlds.Engine.GameEntity.SetEnforcedMaximumLodLevel | ( | int | lodLevel | ) |
float TaleWorlds.Engine.GameEntity.GetLodLevelForDistanceSq | ( | float | distSq | ) |
void TaleWorlds.Engine.GameEntity.GetQuickBoneEntitialFrame | ( | sbyte | index, |
ref MatrixFrame | frame | ||
) |
void TaleWorlds.Engine.GameEntity.UpdateVisibilityMask | ( | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
prefabName | Name of the prefab |
void TaleWorlds.Engine.GameEntity.CallScriptCallbacks | ( | ) |
|
static |
prefabName | Name of the prefab |
frame | Initial frame of created entity |
bool TaleWorlds.Engine.GameEntity.IsGhostObject | ( | ) |
void TaleWorlds.Engine.GameEntity.CreateAndAddScriptComponent | ( | string | name | ) |
|
static |
void TaleWorlds.Engine.GameEntity.RemoveScriptComponent | ( | UIntPtr | scriptComponent, |
int | removeReason | ||
) |
void TaleWorlds.Engine.GameEntity.SetEntityEnvMapVisibility | ( | bool | value | ) |
bool TaleWorlds.Engine.GameEntity.HasScene | ( | ) |
bool TaleWorlds.Engine.GameEntity.HasScriptComponent | ( | string | scName | ) |
IEnumerable< ScriptComponentBehavior > TaleWorlds.Engine.GameEntity.GetScriptComponents | ( | ) |
IEnumerable< T > TaleWorlds.Engine.GameEntity.GetScriptComponents< T > | ( | ) |
T | : | ScriptComponentBehavior |
bool TaleWorlds.Engine.GameEntity.HasScriptOfType | ( | Type | t | ) |
bool TaleWorlds.Engine.GameEntity.HasScriptOfType< T > | ( | ) |
T | : | ScriptComponentBehavior |
T TaleWorlds.Engine.GameEntity.GetFirstScriptOfTypeInFamily< T > | ( | ) |
T | : | ScriptComponentBehavior |
T TaleWorlds.Engine.GameEntity.GetFirstScriptOfType< T > | ( | ) |
T | : | ScriptComponentBehavior |
void TaleWorlds.Engine.GameEntity.SetAlpha | ( | float | alpha | ) |
void TaleWorlds.Engine.GameEntity.SetVisibilityExcludeParents | ( | bool | visible | ) |
void TaleWorlds.Engine.GameEntity.SetReadyToRender | ( | bool | ready | ) |
bool TaleWorlds.Engine.GameEntity.GetVisibilityExcludeParents | ( | ) |
bool TaleWorlds.Engine.GameEntity.IsVisibleIncludeParents | ( | ) |
UInt32 TaleWorlds.Engine.GameEntity.GetVisibilityLevelMaskIncludingParents | ( | ) |
bool TaleWorlds.Engine.GameEntity.GetEditModeLevelVisibility | ( | ) |
void TaleWorlds.Engine.GameEntity.Remove | ( | int | removeReason | ) |
|
static |
void TaleWorlds.Engine.GameEntity.SetUpgradeLevelMask | ( | UpgradeLevelMask | mask | ) |
UpgradeLevelMask TaleWorlds.Engine.GameEntity.GetUpgradeLevelMask | ( | ) |
UpgradeLevelMask TaleWorlds.Engine.GameEntity.GetUpgradeLevelMaskCumulative | ( | ) |
int TaleWorlds.Engine.GameEntity.GetUpgradeLevelOfEntity | ( | ) |
string TaleWorlds.Engine.GameEntity.GetOldPrefabName | ( | ) |
string TaleWorlds.Engine.GameEntity.GetPrefabName | ( | ) |
void TaleWorlds.Engine.GameEntity.CopyScriptComponentFromAnotherEntity | ( | GameEntity | otherEntity, |
string | scriptName | ||
) |
void TaleWorlds.Engine.GameEntity.SetFrame | ( | ref MatrixFrame | frame | ) |
void TaleWorlds.Engine.GameEntity.SetClothComponentKeepState | ( | MetaMesh | metaMesh, |
bool | state | ||
) |
void TaleWorlds.Engine.GameEntity.SetClothComponentKeepStateOfAllMeshes | ( | bool | state | ) |
void TaleWorlds.Engine.GameEntity.SetPreviousFrameInvalid | ( | ) |
MatrixFrame TaleWorlds.Engine.GameEntity.GetFrame | ( | ) |
void TaleWorlds.Engine.GameEntity.GetFrame | ( | out MatrixFrame | frame | ) |
void TaleWorlds.Engine.GameEntity.UpdateTriadFrameForEditor | ( | ) |
void TaleWorlds.Engine.GameEntity.UpdateTriadFrameForEditorForAllChildren | ( | ) |
MatrixFrame TaleWorlds.Engine.GameEntity.GetGlobalFrame | ( | ) |
void TaleWorlds.Engine.GameEntity.SetGlobalFrame | ( | in MatrixFrame | frame | ) |
void TaleWorlds.Engine.GameEntity.SetGlobalFrameMT | ( | in MatrixFrame | frame | ) |
MatrixFrame TaleWorlds.Engine.GameEntity.GetPreviousGlobalFrame | ( | ) |
bool TaleWorlds.Engine.GameEntity.HasPhysicsBody | ( | ) |
void TaleWorlds.Engine.GameEntity.SetLocalPosition | ( | Vec3 | position | ) |
void TaleWorlds.Engine.GameEntity.SetBodyFlags | ( | BodyFlags | bodyFlags | ) |
void TaleWorlds.Engine.GameEntity.SetBodyFlagsRecursive | ( | BodyFlags | bodyFlags | ) |
void TaleWorlds.Engine.GameEntity.AddBodyFlags | ( | BodyFlags | bodyFlags, |
bool | applyToChildren = true |
||
) |
void TaleWorlds.Engine.GameEntity.RemoveBodyFlags | ( | BodyFlags | bodyFlags, |
bool | applyToChildren = true |
||
) |
Vec3 TaleWorlds.Engine.GameEntity.GetGlobalScale | ( | ) |
Vec3 TaleWorlds.Engine.GameEntity.GetLocalScale | ( | ) |
void TaleWorlds.Engine.GameEntity.SetAnimationSoundActivation | ( | bool | activate | ) |
void TaleWorlds.Engine.GameEntity.CopyComponentsToSkeleton | ( | ) |
void TaleWorlds.Engine.GameEntity.AddMeshToBone | ( | sbyte | boneIndex, |
Mesh | mesh | ||
) |
void TaleWorlds.Engine.GameEntity.ActivateRagdoll | ( | ) |
void TaleWorlds.Engine.GameEntity.PauseSkeletonAnimation | ( | ) |
void TaleWorlds.Engine.GameEntity.ResumeSkeletonAnimation | ( | ) |
bool TaleWorlds.Engine.GameEntity.IsSkeletonAnimationPaused | ( | ) |
sbyte TaleWorlds.Engine.GameEntity.GetBoneCount | ( | ) |
MatrixFrame TaleWorlds.Engine.GameEntity.GetBoneEntitialFrameWithIndex | ( | sbyte | boneIndex | ) |
MatrixFrame TaleWorlds.Engine.GameEntity.GetBoneEntitialFrameWithName | ( | string | boneName | ) |
void TaleWorlds.Engine.GameEntity.AddTag | ( | string | tag | ) |
void TaleWorlds.Engine.GameEntity.RemoveTag | ( | string | tag | ) |
bool TaleWorlds.Engine.GameEntity.HasTag | ( | string | tag | ) |
void TaleWorlds.Engine.GameEntity.AddChild | ( | GameEntity | gameEntity, |
bool | autoLocalizeFrame = false |
||
) |
GameEntity | The entity to be added. |
void TaleWorlds.Engine.GameEntity.RemoveChild | ( | GameEntity | childEntity, |
bool | keepPhysics, | ||
bool | keepScenePointer, | ||
bool | callScriptCallbacks, | ||
int | removeReason | ||
) |
void TaleWorlds.Engine.GameEntity.BreakPrefab | ( | ) |
GameEntity TaleWorlds.Engine.GameEntity.GetChild | ( | int | index | ) |
bool TaleWorlds.Engine.GameEntity.HasComplexAnimTree | ( | ) |
void TaleWorlds.Engine.GameEntity.AddMultiMesh | ( | MetaMesh | metaMesh, |
bool | updateVisMask = true |
||
) |
bool TaleWorlds.Engine.GameEntity.RemoveMultiMesh | ( | MetaMesh | metaMesh | ) |
int TaleWorlds.Engine.GameEntity.GetComponentCount | ( | ComponentType | componentType | ) |
void TaleWorlds.Engine.GameEntity.AddAllMeshesOfGameEntity | ( | GameEntity | gameEntity | ) |
void TaleWorlds.Engine.GameEntity.SetFrameChanged | ( | ) |
GameEntityComponent TaleWorlds.Engine.GameEntity.GetComponentAtIndex | ( | int | index, |
ComponentType | componentType | ||
) |
MetaMesh TaleWorlds.Engine.GameEntity.GetMetaMesh | ( | int | metaMeshIndex | ) |
ClothSimulatorComponent TaleWorlds.Engine.GameEntity.GetClothSimulator | ( | int | clothSimulatorIndex | ) |
void TaleWorlds.Engine.GameEntity.SetVectorArgument | ( | float | vectorArgument0, |
float | vectorArgument1, | ||
float | vectorArgument2, | ||
float | vectorArgument3 | ||
) |
void TaleWorlds.Engine.GameEntity.SetMaterialForAllMeshes | ( | Material | material | ) |
bool TaleWorlds.Engine.GameEntity.AddLight | ( | Light | light | ) |
Light TaleWorlds.Engine.GameEntity.GetLight | ( | ) |
void TaleWorlds.Engine.GameEntity.AddParticleSystemComponent | ( | string | particleid | ) |
void TaleWorlds.Engine.GameEntity.RemoveAllParticleSystems | ( | ) |
bool TaleWorlds.Engine.GameEntity.CheckPointWithOrientedBoundingBox | ( | Vec3 | point | ) |
void TaleWorlds.Engine.GameEntity.PauseParticleSystem | ( | bool | doChildren | ) |
void TaleWorlds.Engine.GameEntity.ResumeParticleSystem | ( | bool | doChildren | ) |
void TaleWorlds.Engine.GameEntity.BurstEntityParticle | ( | bool | doChildren | ) |
void TaleWorlds.Engine.GameEntity.SetRuntimeEmissionRateMultiplier | ( | float | emissionRateMultiplier | ) |
Vec3 TaleWorlds.Engine.GameEntity.GetBoundingBoxMin | ( | ) |
float TaleWorlds.Engine.GameEntity.GetBoundingBoxRadius | ( | ) |
Vec3 TaleWorlds.Engine.GameEntity.GetBoundingBoxMax | ( | ) |
void TaleWorlds.Engine.GameEntity.UpdateGlobalBounds | ( | ) |
void TaleWorlds.Engine.GameEntity.RecomputeBoundingBox | ( | ) |
void TaleWorlds.Engine.GameEntity.ValidateBoundingBox | ( | ) |
bool TaleWorlds.Engine.GameEntity.GetHasFrameChanged | ( | ) |
void TaleWorlds.Engine.GameEntity.SetBoundingboxDirty | ( | ) |
Mesh TaleWorlds.Engine.GameEntity.GetFirstMesh | ( | ) |
void TaleWorlds.Engine.GameEntity.SetContourColor | ( | uint? | color, |
bool | alwaysVisible = true |
||
) |
void TaleWorlds.Engine.GameEntity.SetExternalReferencesUsage | ( | bool | value | ) |
void TaleWorlds.Engine.GameEntity.SetMorphFrameOfComponents | ( | float | value | ) |
void TaleWorlds.Engine.GameEntity.AddEditDataUserToAllMeshes | ( | bool | entityComponents, |
bool | skeletonComponents | ||
) |
void TaleWorlds.Engine.GameEntity.ReleaseEditDataUserToAllMeshes | ( | bool | entityComponents, |
bool | skeletonComponents | ||
) |
void TaleWorlds.Engine.GameEntity.GetCameraParamsFromCameraScript | ( | Camera | cam, |
ref Vec3 | dofParams | ||
) |
void TaleWorlds.Engine.GameEntity.GetMeshBendedFrame | ( | MatrixFrame | worldSpacePosition, |
ref MatrixFrame | output | ||
) |
void TaleWorlds.Engine.GameEntity.SetAnimTreeChannelParameterForceUpdate | ( | float | phase, |
int | channelNo | ||
) |
void TaleWorlds.Engine.GameEntity.ChangeMetaMeshOrRemoveItIfNotExists | ( | MetaMesh | entityMetaMesh, |
MetaMesh | newMetaMesh | ||
) |
void TaleWorlds.Engine.GameEntity.AttachNavigationMeshFaces | ( | int | faceGroupId, |
bool | isConnected, | ||
bool | isBlocker = false , |
||
bool | autoLocalize = false |
||
) |
void TaleWorlds.Engine.GameEntity.RemoveSkeleton | ( | ) |
void TaleWorlds.Engine.GameEntity.RemoveAllChildren | ( | ) |
IEnumerable< GameEntity > TaleWorlds.Engine.GameEntity.GetChildren | ( | ) |
IEnumerable< GameEntity > TaleWorlds.Engine.GameEntity.GetEntityAndChildren | ( | ) |
void TaleWorlds.Engine.GameEntity.GetChildrenRecursive | ( | ref List< GameEntity > | children | ) |
bool TaleWorlds.Engine.GameEntity.IsSelectedOnEditor | ( | ) |
void TaleWorlds.Engine.GameEntity.SelectEntityOnEditor | ( | ) |
void TaleWorlds.Engine.GameEntity.DeselectEntityOnEditor | ( | ) |
void TaleWorlds.Engine.GameEntity.SetAsPredisplayEntity | ( | ) |
void TaleWorlds.Engine.GameEntity.RemoveFromPredisplayEntity | ( | ) |
void TaleWorlds.Engine.GameEntity.GetPhysicsMinMax | ( | bool | includeChildren, |
out Vec3 | bbmin, | ||
out Vec3 | bbmax, | ||
bool | returnLocal | ||
) |
void TaleWorlds.Engine.GameEntity.SetCullMode | ( | MBMeshCullingMode | cullMode | ) |
|
get |
|
getset |
|
getset |
|
getset |
|
getset |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
getset |