[This is preliminary documentation and is subject to change.]
The MyEntity type exposes the following members.
Methods
| Name | Description |
---|
| AddDebugRenderComponent | |
| AddToGamePruningStructure | |
| AfterPaste | |
| BeforePaste | |
| BeforeSave |
Called before method GetObjectBuilder, when saving sector
|
| ClearDebugRenderComponents | |
| Close |
This method marks this entity for close which means, that Close
will be called after all entities are updated
|
| CreateSync | |
| DebugDraw | |
| DebugDrawInvalidTriangles | |
| DebugDrawPhysics |
Draw physical representation of entity
|
| Delete |
Every object must have this method, but not every phys object must necessarily have something to cleanup
Remarks |
| DoOverlapSphereTest | |
| GetBaseEntity | |
| GetDistanceBetweenCameraAndBoundingSphere | |
| GetDistanceBetweenCameraAndPosition | |
| GetDistanceBetweenPlayerPositionAndBoundingSphere | |
| GetFriendlyName | |
| GetHudParams | |
| GetIntersectionWithLine(LineD, NullableMyIntersectionResultLineTriangleEx, IntersectionFlags) | |
| GetIntersectionWithLine(LineD, NullableVector3D, Boolean, IntersectionFlags) | |
| GetIntersectionWithLineAndBoundingSphere | |
| GetIntersectionWithSphere | |
| GetInventoryBase |
Simply get the MyInventoryBase component stored in this entity.
|
| GetInventoryBase(Int32) |
Search for inventory component with maching index.
|
| GetLargestDistanceBetweenCameraAndBoundingSphere | |
| GetObjectBuilder |
Gets object builder from object.
|
| GetSmallestDistanceBetweenCameraAndBoundingSphere | |
| GetSubpart | |
| GetTopMostParent |
Return top most parent of this entity
|
| GetTrianglesIntersectingSphere | |
| GetViewMatrix | |
| Init(MyObjectBuilder_EntityBase) | |
| Init(StringBuilder, String, MyEntity, NullableSingle, String) | |
| OnAddedToScene |
Called when [activated] which for entity means that was added to scene.
|
| OnRemovedFromScene | |
| PrepareForDraw |
Method is called defacto from Update, preparation fo Draw
|
| RaisePhysicsChanged | |
| RefreshModels | |
| RemoveFromGamePruningStructure | |
| SetEmissiveParts | |
| SetEmissivePartsForSubparts | |
| SetSpeedsAccordingToServerValues | |
| ToString | (Overrides ObjectToString.) |
| TryGetSubpart | |
| UpdateAfterSimulation | |
| UpdateAfterSimulation10 | |
| UpdateAfterSimulation100 | |
| UpdateBeforeSimulation | |
| UpdateBeforeSimulation10 |
Called each 10th frame if registered for update10
|
| UpdateBeforeSimulation100 |
Called each 100th frame if registered for update100
|
| UpdateGamePruningStructure | |
| UpdateOnceBeforeFrame | |
| UpdatingStopped | |
TopExtension Methods Explicit Interface Implementations See Also