Space Engineers
|
Public Member Functions | |
void | DebugDraw () |
void | DebugDrawInvalidTriangles () |
void | AddDebugRenderComponent (MyDebugRenderComponentBase render) |
void | ClearDebugRenderComponents () |
MyEntity | GetTopMostParent (Type type=null) |
Return top most parent of this entity More... | |
virtual List< MyHudEntityParams > | GetHudParams (bool allowBlink) |
MyEntity () | |
MyEntity (bool initComponents=true) | |
Initializes a new instance of the MyEntity class. More... | |
void | CreateSync () |
MyEntitySubpart | GetSubpart (string name) |
bool | TryGetSubpart (string name, out MyEntitySubpart subpart) |
virtual void | UpdateOnceBeforeFrame () |
virtual void | UpdateBeforeSimulation () |
virtual void | UpdateAfterSimulation () |
virtual void | UpdatingStopped () |
virtual void | UpdateBeforeSimulation10 () |
Called each 10th frame if registered for update10 More... | |
virtual void | UpdateAfterSimulation10 () |
virtual void | UpdateBeforeSimulation100 () |
Called each 100th frame if registered for update100 More... | |
virtual void | UpdateAfterSimulation100 () |
virtual string | GetFriendlyName () |
virtual MatrixD | GetViewMatrix () |
void | SetSpeedsAccordingToServerValues () |
virtual void | SetWorldMatrix (MatrixD worldMatrix, bool forceUpdate=false, bool updateChildren=true) |
virtual void | DebugDrawPhysics () |
Draw physical representation of entity More... | |
virtual bool | GetIntersectionWithLine (ref LineD line, out Vector3D?v, bool useCollisionModel=true, IntersectionFlags flags=IntersectionFlags.ALL_TRIANGLES) |
virtual bool | GetIntersectionWithLine (ref LineD line, out VRage.Game.Models.MyIntersectionResultLineTriangleEx?t, IntersectionFlags flags=IntersectionFlags.ALL_TRIANGLES) |
virtual Vector3D | GetIntersectionWithLineAndBoundingSphere (ref LineD line, float boundingSphereRadiusMultiplier) |
virtual bool | GetIntersectionWithSphere (ref BoundingSphereD sphere) |
void | GetTrianglesIntersectingSphere (ref BoundingSphereD sphere, Vector3?referenceNormalVector, float?maxAngle, List< MyTriangle_Vertex_Normals > retTriangles, int maxNeighbourTriangles) |
virtual bool | DoOverlapSphereTest (float sphereRadius, Vector3D spherePos) |
double | GetSmallestDistanceBetweenCameraAndBoundingSphere () |
double | GetLargestDistanceBetweenCameraAndBoundingSphere () |
double | GetDistanceBetweenCameraAndBoundingSphere () |
double | GetDistanceBetweenPlayerPositionAndBoundingSphere () |
double | GetDistanceBetweenCameraAndPosition () |
virtual MyEntity | GetBaseEntity () |
virtual void | OnAddedToScene (object source) |
Called when [activated] which for entity means that was added to scene. More... | |
virtual void | OnRemovedFromScene (object source) |
void | AddToGamePruningStructure () |
void | RemoveFromGamePruningStructure () |
void | UpdateGamePruningStructure () |
void | RaisePhysicsChanged () |
void | HackyComponentInitByMiroPleaseDontUseEver (MyDefinitionId id) |
DONT USE THIS METHOD, EVER! More... | |
virtual void | Init (MyObjectBuilder_EntityBase objectBuilder) |
virtual void | Init (StringBuilder displayName, string model, MyEntity parentObject, float?scale, string modelCollision=null) |
virtual void | RefreshModels (string model, string modelCollision) |
void | Delete () |
Every object must have this method, but not every phys object must necessarily have something to cleanup More... | |
void | Close () |
This method marks this entity for close which means, that Close will be called after all entities are updated More... | |
virtual MyObjectBuilder_EntityBase | GetObjectBuilder (bool copy=false) |
Gets object builder from object. More... | |
virtual void | BeforeSave () |
Called before method GetObjectBuilder, when saving sector More... | |
virtual void | PrepareForDraw () |
Method is called defacto from Update, preparation fo Draw More... | |
virtual void | BeforePaste () |
virtual void | AfterPaste () |
void | SetEmissiveParts (string emissiveName, Color emissivePartColor, float emissivity) |
Sets the emissive value of a specific emissive material on entity. More... | |
void | SetEmissivePartsForSubparts (string emissiveName, Color emissivePartColor, float emissivity) |
Sets the emissive value of a specific emissive material on all entity subparts. More... | |
override string | ToString () |
virtual MyInventoryBase | GetInventoryBase (int index) |
Search for inventory component with maching index. More... | |
MyInventoryBase | GetInventoryBase () |
Simply get the MyInventoryBase component stored in this entity. More... | |
delegate MyObjectBuilder_EntityBase | MyEntityFactoryCreateObjectBuilderDelegate (MyEntity entity) |
delegate MySyncComponentBase | CreateDefaultSyncEntityDelegate (MyEntity thisEntity) |
delegate bool | MyWeldingGroupsGroupExistsDelegate (MyEntity entity) |
virtual void | SerializeControls (BitStream stream) |
virtual void | DeserializeControls (BitStream stream, bool outOfOrder) |
virtual void | ApplyLastControls () |
Public Member Functions inherited from VRage.ModAPI.IMyEntity | |
bool | GetIntersectionWithLine (ref LineD line, out VRage.Game.Models.MyIntersectionResultLineTriangleEx?tri, IntersectionFlags flags) |
void | GetTrianglesIntersectingSphere (ref BoundingSphereD sphere, Vector3?referenceNormalVector, float?maxAngle, System.Collections.Generic.List< MyTriangle_Vertex_Normals > retTriangles, int maxNeighbourTriangles) |
Public Attributes | |
MyDefinitionId | DefinitionId = null |
string | Name |
bool | DebugAsyncLoading |
DebugCreatedBy | DebugCreatedBy |
float | m_massChangeForCollisions = 1f |
Vector3D | m_serverPosition = new Vector3D() |
Quaternion | m_serverOrientation = new Quaternion() |
MatrixD | m_serverWorldMatrix = new MatrixD() |
Vector3 | m_serverLinearVelocity |
Vector3 | m_serverAngularVelocity |
bool | m_positionResetFromServer |
bool | SentFromServer |
int | GamePruningProxyId = MyVRageConstants.PRUNING_PROXY_ID_UNITIALIZED |
int | TopMostPruningProxyId = MyVRageConstants.PRUNING_PROXY_ID_UNITIALIZED |
bool | StaticForPruningStructure = false |
int | TargetPruningProxyId = MyVRageConstants.PRUNING_PROXY_ID_UNITIALIZED |
Dictionary< IMyReplicable, Action > | ReadyForReplicationAction = new Dictionary<IMyReplicable, Action>() |
Protected Member Functions | |
virtual bool | CanBeAddedToRender () |
virtual MySyncComponentBase | OnCreateSync () |
virtual void | ClampToWorld () |
virtual void | BeforeDelete () |
virtual void | Closing () |
virtual void | OnInventoryComponentAdded (MyInventoryBase inventory) |
virtual void | OnInventoryComponentRemoved (MyInventoryBase inventory) |
Static Protected Member Functions | |
static void | UpdateNamedEmissiveParts (uint renderObjectId, string emissiveName, Color emissivePartColor, float emissivity) |
Protected Attributes | |
List< MyHudEntityParams > | m_hudParams |
MyModel | m_modelCollision |
Events | |
Action< MyEntity > | OnMarkForClose |
This event may not be invoked at all, when calling MyEntities.CloseAll, marking is bypassed More... | |
Action< MyEntity > | OnClose |
Action< MyEntity > | OnClosing |
Action< MyEntity > | OnPhysicsChanged |
Events inherited from VRage.ModAPI.IMyEntity | |
Action< IMyEntity > | OnClose |
Action< IMyEntity > | OnClosing |
Action< IMyEntity > | OnMarkForClose |
Action< IMyEntity > | OnPhysicsChanged |
Definition at line 27 of file MyEntity.cs.
|
inline |
Definition at line 491 of file MyEntity.cs.
|
inline |
Initializes a new instance of the MyEntity class.
Definition at line 499 of file MyEntity.cs.
|
inline |
Definition at line 111 of file MyEntity.cs.
|
inline |
Implements VRage.ModAPI.IMyEntity.
Definition at line 981 of file MyEntity.cs.
|
inlinevirtual |
Reimplemented in Sandbox.Game.Entities.MyPlanet.
Definition at line 1452 of file MyEntity.cs.
|
inlinevirtual |
Reimplemented in Sandbox.Game.Entities.MyCubeGrid, and Sandbox.Game.Entities.Character.MyCharacter.
Definition at line 1612 of file MyEntity.cs.
|
inlineprotectedvirtual |
Reimplemented in Sandbox.Game.Entities.MyCubeGrid, Sandbox.Game.Entities.Character.MyCharacter, Sandbox.Game.Entities.Cube.MyShipConnector, Sandbox.Game.Entities.Blocks.MyPistonBase, Sandbox.Game.Entities.MyPlanet, Sandbox.Game.Entities.MyVoxelBase, and Sandbox.Game.Entities.MyVoxelMap.
Definition at line 1349 of file MyEntity.cs.
|
inlinevirtual |
Reimplemented in Sandbox.Game.Entities.MyPlanet.
Definition at line 1448 of file MyEntity.cs.
|
inlinevirtual |
Called before method GetObjectBuilder, when saving sector
Implements VRage.ModAPI.IMyEntity.
Definition at line 1432 of file MyEntity.cs.
|
inlineprotectedvirtual |
Definition at line 425 of file MyEntity.cs.
|
inlineprotectedvirtual |
Reimplemented in Sandbox.Game.Entities.EnvironmentItems.MyEnvironmentItems, and Sandbox.Game.Entities.MyVoxelMap.
Definition at line 1115 of file MyEntity.cs.
|
inline |
Definition at line 116 of file MyEntity.cs.
|
inline |
This method marks this entity for close which means, that Close will be called after all entities are updated
Implements VRage.ModAPI.IMyEntity.
Definition at line 1361 of file MyEntity.cs.
|
inlineprotectedvirtual |
Reimplemented in Sandbox.Game.Entities.Character.MyCharacter, Sandbox.Game.Entities.Cube.MyShipConnector, Sandbox.Game.Entities.Blocks.MyProjectorBase, Sandbox.Game.Weapons.MyLargeTurretBase, Sandbox.Game.Entities.Cube.MyProductionBlock, SpaceEngineers.Game.Entities.Blocks.MyShipMergeBlock, SpaceEngineers.Game.Entities.Blocks.MyLandingGear, Sandbox.Game.Entities.MyCubeBlock, Sandbox.Game.Entities.MyAdvancedDoor, Sandbox.Game.Weapons.MyEngineerToolBase, SpaceEngineers.Game.Entities.Blocks.MyAirVent, Sandbox.Game.Entities.MyPlanet, SpaceEngineers.Game.Entities.Blocks.MySoundBlock, Sandbox.Game.Entities.Blocks.MyGasGenerator, Sandbox.Game.Entities.MyThrust, Sandbox.Game.Entities.MyAirtightDoorGeneric, Sandbox.Game.Entities.Blocks.MyLightingBlock, Sandbox.Game.Entities.MyFloatingObject, Sandbox.Game.Weapons.MyAutomaticRifleGun, Sandbox.Game.Weapons.MyShipToolBase, Sandbox.Game.Weapons.MySmallMissileLauncher, SpaceEngineers.Game.Entities.Blocks.MyMedicalRoom, Sandbox.Game.Weapons.MyHandDrill, Sandbox.Game.Entities.MyDoor, Sandbox.Game.Entities.Cube.MyFracturedBlock, Sandbox.Game.Entities.MyManipulationTool, Sandbox.Game.Entities.Cube.MyBeacon, SpaceEngineers.Game.Entities.Blocks.MyButtonPanel, Sandbox.Game.Entities.Cube.MyRadioAntenna, Sandbox.Game.Weapons.MyShipDrill, Sandbox.Game.Entities.MyCompoundCubeBlock, Sandbox.Game.Weapons.MyMissile, Sandbox.Game.Entities.MyBatteryBlock, Sandbox.Game.Weapons.MySmallGatlingGun, Sandbox.Game.Entities.Cube.MyTerminalBlock, Sandbox.Game.Weapons.MyAmmoBase, Sandbox.Game.Entities.MyAreaMarker, Sandbox.Game.Entities.Cube.MyFunctionalBlock, Sandbox.Game.Entities.MyReactor, SpaceEngineers.Game.Entities.Blocks.MySolarPanel, and Sandbox.Game.WorldEnvironment.MyEnvironmentSector.
Definition at line 1353 of file MyEntity.cs.
delegate MySyncComponentBase VRage.Game.Entity.MyEntity.CreateDefaultSyncEntityDelegate | ( | MyEntity | thisEntity | ) |
|
inline |
Definition at line 587 of file MyEntity.cs.
|
inline |
Implements VRage.ModAPI.IMyEntity.
Definition at line 88 of file MyEntity.cs.
|
inline |
Implements VRage.ModAPI.IMyEntity.
Definition at line 103 of file MyEntity.cs.
|
inlinevirtual |
Draw physical representation of entity
Reimplemented in Sandbox.Game.Entities.Cube.MyShipConnector, and Sandbox.Game.Entities.MyPlanet.
Definition at line 694 of file MyEntity.cs.
|
inline |
Every object must have this method, but not every phys object must necessarily have something to cleanup
Implements VRage.ModAPI.IMyEntity.
Definition at line 1267 of file MyEntity.cs.
|
inlinevirtual |
Reimplemented in Sandbox.Game.Entities.MyCubeGrid, and Sandbox.Game.Entities.Character.MyCharacter.
Definition at line 1607 of file MyEntity.cs.
|
inlinevirtual |
Implements VRage.ModAPI.IMyEntity.
Reimplemented in Sandbox.Game.Entities.MyVoxelBase.
Definition at line 824 of file MyEntity.cs.
|
inlinevirtual |
Definition at line 876 of file MyEntity.cs.
|
inline |
Implements VRage.ModAPI.IMyEntity.
Definition at line 852 of file MyEntity.cs.
|
inline |
Implements VRage.ModAPI.IMyEntity.
Definition at line 869 of file MyEntity.cs.
|
inline |
Definition at line 861 of file MyEntity.cs.
|
inlinevirtual |
Implements VRage.ModAPI.IMyEntity.
Reimplemented in Sandbox.Game.Entities.MyVoxelMap.
Definition at line 661 of file MyEntity.cs.
|
inlinevirtual |
Reimplemented in Sandbox.Game.Entities.Character.MyCharacter, Sandbox.Game.Entities.Cube.MyTerminalBlock, Sandbox.Game.Entities.Cube.MyRadioAntenna, and Sandbox.Game.Entities.Cube.MyBeacon.
Definition at line 420 of file MyEntity.cs.
|
inlinevirtual |
Reimplemented in Sandbox.Game.Weapons.MyLargeTurretBase, and Sandbox.Game.Entities.MyVoxelBase.
Definition at line 721 of file MyEntity.cs.
|
inlinevirtual |
Reimplemented in Sandbox.Game.Entities.Character.MyCharacter.
Definition at line 743 of file MyEntity.cs.
|
inlinevirtual |
Implements VRage.ModAPI.IMyEntity.
Definition at line 784 of file MyEntity.cs.
|
inlinevirtual |
Implements VRage.ModAPI.IMyEntity.
Reimplemented in Sandbox.Game.Entities.MyCubeGrid, Sandbox.Game.Entities.MyVoxelMap, Sandbox.Game.Entities.Cube.MyLadder, and Sandbox.Game.Entities.Cube.MyPassage.
Definition at line 802 of file MyEntity.cs.
|
inlinevirtual |
Search for inventory component with maching index.
Reimplemented in Sandbox.Game.Entities.Cube.MyProductionBlock.
Definition at line 1493 of file MyEntity.cs.
|
inline |
Simply get the MyInventoryBase component stored in this entity.
Definition at line 1505 of file MyEntity.cs.
|
inline |
Implements VRage.ModAPI.IMyEntity.
Definition at line 843 of file MyEntity.cs.
|
inlinevirtual |
Gets object builder from object.
Implements VRage.ModAPI.IMyEntity.
Reimplemented in Sandbox.Game.Entities.Character.MyCharacter, Sandbox.Game.Entities.MyCubeGrid, Sandbox.Game.Weapons.MyEngineerToolBase, Sandbox.Game.Entities.MyCubeBlock, Sandbox.Game.Entities.MyGhostCharacter, Sandbox.Game.Entities.MyPlanet, Sandbox.Game.Weapons.MyHandDrill, Sandbox.Game.Entities.MyVoxelBase, Sandbox.Game.Entities.MyManipulationTool, Sandbox.Game.Entities.MyFloatingObject, Sandbox.Game.Entities.MyHandToolBase, Sandbox.Game.Entities.EnvironmentItems.MyEnvironmentItems, Sandbox.Game.Entities.MyMeteor, Sandbox.Game.Weapons.MyAutomaticRifleGun, Sandbox.Game.Entities.MyFracturedPiece, Sandbox.Game.Entities.MyAreaMarker, and Sandbox.Game.Entities.MyRope.
Definition at line 1400 of file MyEntity.cs.
|
inline |
Implements VRage.ModAPI.IMyEntity.
Definition at line 833 of file MyEntity.cs.
|
inline |
Implements VRage.ModAPI.IMyEntity.
Definition at line 592 of file MyEntity.cs.
|
inline |
Return top most parent of this entity
Implements VRage.ModAPI.IMyEntity.
Definition at line 324 of file MyEntity.cs.
|
inline |
Definition at line 812 of file MyEntity.cs.
|
inlinevirtual |
Implements VRage.ModAPI.IMyEntity.
Reimplemented in Sandbox.Game.Entities.Character.MyCharacter, Sandbox.Game.Entities.MyCameraBlock, and Sandbox.Game.Entities.MyControllableSphere.
Definition at line 669 of file MyEntity.cs.
|
inline |
|
inlinevirtual |
Reimplemented in Sandbox.Game.Entities.Character.MyCharacter, Sandbox.Game.Entities.MyCubeGrid, Sandbox.Game.Entities.MyGhostCharacter, Sandbox.Game.Entities.MyPlanet, Sandbox.Game.Entities.MyManipulationTool, Sandbox.Game.Entities.MyHandToolBase, Sandbox.Game.Entities.MyFracturedPiece, Sandbox.Game.Entities.EnvironmentItems.MyEnvironmentItems, Sandbox.Game.Weapons.MyHandDrill, Sandbox.Game.Entities.MyFloatingObject, Sandbox.Game.Weapons.MyAutomaticRifleGun, Sandbox.Game.Entities.MyRope, Sandbox.Game.Weapons.MyWelder, Sandbox.Game.Weapons.MyAngleGrinder, Sandbox.Game.Entities.MyAreaMarker, Sandbox.Game.Entities.MyVoxelMap, Sandbox.Game.Weapons.MyBlockPlacerBase, Sandbox.Game.Weapons.MyBaseInventoryItemEntity, Sandbox.Game.Entities.MyInventoryBagEntity, Sandbox.Game.Gui.MyDebugEntity, and Sandbox.Game.Weapons.MyAmmoMagazine.
Definition at line 1044 of file MyEntity.cs.
|
inlinevirtual |
Reimplemented in Sandbox.Game.Entities.MySkinnedEntity.
Definition at line 1149 of file MyEntity.cs.
delegate MyObjectBuilder_EntityBase VRage.Game.Entity.MyEntity.MyEntityFactoryCreateObjectBuilderDelegate | ( | MyEntity | entity | ) |
delegate bool VRage.Game.Entity.MyEntity.MyWeldingGroupsGroupExistsDelegate | ( | MyEntity | entity | ) |
|
inlinevirtual |
Called when [activated] which for entity means that was added to scene.
source | The source of activation. |
Implements VRage.ModAPI.IMyEntity.
Reimplemented in Sandbox.Game.Entities.Character.MyCharacter, Sandbox.Game.Entities.MyCubeGrid, Sandbox.Game.Entities.Cube.MyShipConnector, Sandbox.Game.Entities.Blocks.MyProgrammableBlock, Sandbox.Game.Entities.Blocks.MySensorBlock, Sandbox.Game.Entities.MyConveyorSorter, Sandbox.Game.Entities.MyFracturedPiece, Sandbox.Game.Entities.MyCubeBlock, Sandbox.Game.Entities.MyPlanet, SpaceEngineers.Game.Entities.Blocks.MyLandingGear, Sandbox.Game.Entities.Cube.MyLaserAntenna, Sandbox.Game.Entities.MyJumpDrive, SpaceEngineers.Game.Entities.Blocks.MyAirVent, Sandbox.Game.Entities.Cube.MyWarhead, SpaceEngineers.Game.Entities.Blocks.MyTimerBlock, Sandbox.Game.Weapons.MySmallMissileLauncher, Sandbox.Game.Entities.Blocks.MyGasGenerator, Sandbox.Game.Weapons.MyShipToolBase, Sandbox.Game.Entities.Blocks.MyGasTank, Sandbox.Game.Entities.MyCameraBlock, Sandbox.Game.Weapons.MyEngineerToolBase, Sandbox.Game.Entities.Cube.MyBeacon, Sandbox.Game.Entities.MyBatteryBlock, Sandbox.Game.Entities.Cube.MyRadioAntenna, Sandbox.Game.Entities.Blocks.MyProjectorBase, Sandbox.Game.Entities.MyAirtightDoorGeneric, Sandbox.Game.Entities.MyFloatingObject, Sandbox.Game.Entities.Blocks.MyPistonBase, Sandbox.Game.Entities.MyCompoundCubeBlock, SpaceEngineers.Game.Entities.Blocks.MySpaceBall, Sandbox.Game.Entities.MyReactor, SpaceEngineers.Game.Entities.Blocks.MyGravityGeneratorBase, SpaceEngineers.Game.Entities.Blocks.MyShipMergeBlock, SpaceEngineers.Game.Entities.Blocks.MyVirtualMass, and Sandbox.Game.Entities.MyConveyorConnector.
Definition at line 888 of file MyEntity.cs.
|
inlineprotectedvirtual |
Definition at line 581 of file MyEntity.cs.
|
inlineprotectedvirtual |
Reimplemented in Sandbox.Game.Entities.Blocks.MyGasGenerator, Sandbox.Game.Entities.MyConveyorSorter, Sandbox.Game.Entities.Blocks.MyGasTank, Sandbox.Game.Entities.Cube.MyShipConnector, Sandbox.Game.Entities.MyReactor, Sandbox.Game.Entities.Blocks.MyCollector, Sandbox.Game.Weapons.MySmallMissileLauncher, Sandbox.Game.Weapons.MySmallGatlingGun, Sandbox.Game.Weapons.MyShipDrill, and Sandbox.Game.Entities.MyCargoContainer.
Definition at line 1549 of file MyEntity.cs.
|
inlineprotectedvirtual |
Reimplemented in Sandbox.Game.Entities.Blocks.MyGasGenerator, Sandbox.Game.Entities.MyConveyorSorter, Sandbox.Game.Entities.Blocks.MyGasTank, Sandbox.Game.Entities.Cube.MyShipConnector, Sandbox.Game.Entities.MyReactor, Sandbox.Game.Entities.Blocks.MyCollector, Sandbox.Game.Weapons.MySmallMissileLauncher, Sandbox.Game.Weapons.MySmallGatlingGun, Sandbox.Game.Weapons.MyShipDrill, and Sandbox.Game.Entities.MyCargoContainer.
Definition at line 1551 of file MyEntity.cs.
|
inlinevirtual |
Implements VRage.ModAPI.IMyEntity.
Reimplemented in Sandbox.Game.Entities.Character.MyCharacter, Sandbox.Game.Entities.MyCubeGrid, Sandbox.Game.Entities.Cube.MyShipConnector, Sandbox.Game.Entities.Blocks.MyPistonBase, Sandbox.Game.Entities.Blocks.MyMechanicalConnectionBlockBase, Sandbox.Game.Entities.MyFracturedPiece, Sandbox.Game.Entities.MyCubeBlock, Sandbox.Game.Entities.MyPlanet, SpaceEngineers.Game.Entities.Blocks.MyLandingGear, Sandbox.Game.Entities.Cube.MyWarhead, Sandbox.Game.Weapons.MyShipToolBase, Sandbox.Game.Weapons.MyEngineerToolBase, Sandbox.Game.Entities.Cube.MyRadioAntenna, Sandbox.Game.Entities.MyCompoundCubeBlock, SpaceEngineers.Game.Entities.Blocks.MySpaceBall, SpaceEngineers.Game.Entities.Blocks.MyGravityGeneratorBase, SpaceEngineers.Game.Entities.Blocks.MyShipMergeBlock, Sandbox.Game.Entities.MyConveyorConnector, and Sandbox.Game.Entities.Cube.MyFunctionalBlock.
Definition at line 942 of file MyEntity.cs.
|
inlinevirtual |
Method is called defacto from Update, preparation fo Draw
Reimplemented in Sandbox.Game.Entities.MyCubeGrid.
Definition at line 1440 of file MyEntity.cs.
|
inline |
Definition at line 1005 of file MyEntity.cs.
|
inlinevirtual |
Reimplemented in Sandbox.Game.Entities.MyCubeBlock.
Definition at line 1175 of file MyEntity.cs.
|
inline |
Implements VRage.ModAPI.IMyEntity.
Definition at line 986 of file MyEntity.cs.
|
inlinevirtual |
Reimplemented in Sandbox.Game.Entities.MyCubeGrid, and Sandbox.Game.Entities.Character.MyCharacter.
Definition at line 1603 of file MyEntity.cs.
|
inline |
Sets the emissive value of a specific emissive material on entity.
emissiveName | The name of the emissive material (ie. "Emissive0") |
emissivity | Level of emissivity (0 is off, 1 is full brightness) |
emissivePartColor | Color to emit |
Implements VRage.ModAPI.IMyEntity.
Definition at line 1457 of file MyEntity.cs.
|
inline |
Sets the emissive value of a specific emissive material on all entity subparts.
emissiveName | The name of the emissive material (ie. "Emissive0") |
emissivity | Level of emissivity (0 is off, 1 is full brightness). |
emissivePartColor | Color to emit |
Implements VRage.ModAPI.IMyEntity.
Definition at line 1462 of file MyEntity.cs.
|
inline |
Definition at line 674 of file MyEntity.cs.
|
inlinevirtual |
Definition at line 682 of file MyEntity.cs.
|
inline |
Definition at line 1483 of file MyEntity.cs.
|
inline |
Implements VRage.ModAPI.IMyEntity.
Definition at line 597 of file MyEntity.cs.
|
inlinevirtual |
Reimplemented in Sandbox.Game.Entities.Character.MyCharacter, Sandbox.Game.Entities.MyCubeGrid, Sandbox.Game.Weapons.MyLargeTurretBase, Sandbox.Game.Entities.MyCubeBlock, Sandbox.Game.Entities.Blocks.MyProgrammableBlock, Sandbox.Game.Entities.Blocks.MyProjectorBase, Sandbox.Game.Entities.Cube.MyLaserAntenna, Sandbox.Game.Entities.MyGhostCharacter, Sandbox.Game.Entities.Blocks.MyLightingBlock, Sandbox.Game.Weapons.MyWelder, Sandbox.Game.Entities.MyManipulationTool, Sandbox.Game.Entities.MyAdvancedDoor, Sandbox.Game.Entities.MyHandToolBase, SpaceEngineers.Game.Entities.Blocks.MyShipWelder, Sandbox.Game.Entities.MyJumpDrive, Sandbox.Game.Weapons.MyAutomaticRifleGun, Sandbox.Game.Weapons.MyShipDrill, Sandbox.Game.Weapons.MySmallMissileLauncher, Sandbox.Game.Weapons.MyEngineerToolBase, Sandbox.Game.Weapons.MySmallGatlingGun, Sandbox.Game.Entities.Cube.MyBeacon, Sandbox.Game.Weapons.MyShipToolBase, Sandbox.Game.Entities.Blocks.MyGasTank, Sandbox.Game.Entities.MyDoor, Sandbox.Game.Weapons.MyMissile, Sandbox.Game.Weapons.MyHandDrill, Sandbox.Game.Entities.MyCameraBlock, Sandbox.Game.Weapons.MyShipGrinder, Sandbox.Game.Weapons.MyAmmoBase, Sandbox.Game.Entities.MyAirtightDoorGeneric, Sandbox.Game.Entities.MyFloatingObject, Sandbox.Game.Weapons.MyUserControllableGun, Sandbox.Game.Weapons.MyAngleGrinder, SpaceEngineers.Game.Weapons.Guns.MyLargeMissileTurret, SpaceEngineers.Game.Weapons.Guns.MyLargeGatlingTurret, and SpaceEngineers.Game.Weapons.Guns.MyLargeInteriorTurret.
Definition at line 614 of file MyEntity.cs.
|
inlinevirtual |
Reimplemented in Sandbox.Game.Entities.Character.MyCharacter, Sandbox.Game.Entities.Blocks.MySensorBlock, Sandbox.Game.Entities.MyPlanet, Sandbox.Game.Entities.MyHandToolBase, SpaceEngineers.Game.Entities.Blocks.MyLandingGear, Sandbox.Game.Entities.Cube.MyLaserAntenna, Sandbox.Game.Entities.MyThrust, Sandbox.Game.Entities.MyFracturedPiece, Sandbox.Game.Weapons.MySmallGatlingGun, SpaceEngineers.Game.Entities.Blocks.MyTimerBlock, Sandbox.Game.Entities.Cube.MyRadioAntenna, Sandbox.Game.Weapons.MyShipToolBase, SpaceEngineers.Game.Entities.Blocks.MySpaceBall, Sandbox.Game.Entities.MyCameraBlock, and Sandbox.Game.Entities.MyVoxelMap.
Definition at line 637 of file MyEntity.cs.
|
inlinevirtual |
Reimplemented in Sandbox.Game.Entities.Character.MyCharacter, Sandbox.Game.Entities.MyCubeGrid, Sandbox.Game.Entities.EnvironmentItems.MyEnvironmentItems, Sandbox.Game.Weapons.MyLargeTurretBase, Sandbox.Game.Entities.MyPlanet, Sandbox.Game.Entities.Blocks.MyProjectorBase, SpaceEngineers.Game.Entities.Blocks.MyLandingGear, Sandbox.Game.Entities.MyThrust, Sandbox.Game.Entities.Cube.MyLaserAntenna, Sandbox.Game.Entities.Blocks.MyLightingBlock, Sandbox.Game.Entities.MyJumpDrive, Sandbox.Game.Entities.EnvironmentItems.MyTrees, Sandbox.Game.Entities.MyBatteryBlock, Sandbox.Game.Entities.Blocks.MyGasGenerator, Sandbox.Game.Weapons.MyShipDrill, SpaceEngineers.Game.Entities.Blocks.MyAirVent, Sandbox.Game.Weapons.MyShipGrinder, Sandbox.Game.Entities.MyReactor, and Sandbox.Game.Entities.MyInventoryBagEntity.
Definition at line 653 of file MyEntity.cs.
|
inlinevirtual |
Reimplemented in Sandbox.Game.Entities.Character.MyCharacter, Sandbox.Game.Entities.MyCubeGrid, Sandbox.Game.Weapons.MyLargeTurretBase, Sandbox.Game.Entities.Cube.MyMotorSuspension, Sandbox.Game.Entities.MyCubeBlock, SpaceEngineers.Game.Entities.Blocks.MyLandingGear, Sandbox.Game.Weapons.MySmallGatlingGun, Sandbox.Game.Entities.MyFracturedPiece, Sandbox.Game.Entities.Blocks.MyPistonBase, Sandbox.Game.Entities.MyThrust, SpaceEngineers.Game.Entities.Blocks.MyShipMergeBlock, SpaceEngineers.Game.Entities.Blocks.MySoundBlock, Sandbox.Game.Entities.MyAdvancedDoor, Sandbox.Game.Entities.MyManipulationTool, Sandbox.Game.Entities.Cube.MyMotorStator, Sandbox.Game.Entities.MyDoor, Sandbox.Game.Entities.Blocks.MyMechanicalConnectionBlockBase, Sandbox.Game.Entities.MyAirtightDoorGeneric, Sandbox.Game.Weapons.MyAmmoBase, SpaceEngineers.Game.Entities.Blocks.MyGravityGeneratorSphere, SpaceEngineers.Game.Entities.Blocks.MyGravityGeneratorBase, Sandbox.Game.Entities.Cube.MyFunctionalBlock, Sandbox.Game.Weapons.MyMissile, Sandbox.Game.Entities.MyInventoryBagEntity, and SpaceEngineers.Game.Entities.Blocks.MyVirtualMass.
Definition at line 609 of file MyEntity.cs.
|
inlinevirtual |
Called each 10th frame if registered for update10
Reimplemented in Sandbox.Game.Entities.Character.MyCharacter, Sandbox.Game.Entities.MyCubeGrid, Sandbox.Game.Entities.Cube.MyMotorSuspension, Sandbox.Game.Entities.MyCubeBlock, Sandbox.Game.Entities.Cube.MyProductionBlock, Sandbox.Game.Entities.Cube.MyShipConnector, Sandbox.Game.Entities.MyConveyorSorter, SpaceEngineers.Game.Entities.Blocks.MyShipMergeBlock, Sandbox.Game.Entities.MyThrust, Sandbox.Game.Entities.Blocks.MyPistonBase, Sandbox.Game.Entities.Cube.MyTerminalBlock, Sandbox.Game.Weapons.MyShipDrill, SpaceEngineers.Game.Entities.Blocks.MyMedicalRoom, and Sandbox.Game.Entities.MyVoxelMap.
Definition at line 630 of file MyEntity.cs.
|
inlinevirtual |
Called each 100th frame if registered for update100
Reimplemented in Sandbox.Game.Entities.Character.MyCharacter, Sandbox.Game.Entities.MyCubeGrid, Sandbox.Game.Entities.MyFracturedPiece, Sandbox.Game.Entities.MyConveyorSorter, Sandbox.Game.Weapons.MyHandDrill, Sandbox.Game.Entities.Cube.MyAssembler, Sandbox.Game.Weapons.MySmallMissileLauncher, SpaceEngineers.Game.Entities.Blocks.MyOxygenFarm, Sandbox.Game.Entities.Cube.MyMotorBase, Sandbox.Game.Entities.Cube.MyOreDetector, Sandbox.Game.Entities.Blocks.MyCollector, SpaceEngineers.Game.Entities.Blocks.MySolarPanel, Sandbox.Game.Entities.Cube.MyRefinery, SpaceEngineers.Game.Entities.Blocks.MyUpgradeModule, Sandbox.Game.Entities.MyAirtightSlideDoor, Sandbox.Game.Entities.MyConveyorConnector, and SpaceEngineers.Game.Weapons.Guns.MyLargeConveyorTurretBase.
Definition at line 648 of file MyEntity.cs.
|
inline |
Implements VRage.ModAPI.IMyEntity.
Definition at line 991 of file MyEntity.cs.
|
inlinestaticprotected |
Definition at line 1473 of file MyEntity.cs.
|
inlinevirtual |
Reimplemented in Sandbox.Game.Entities.Character.MyCharacter, Sandbox.Game.Entities.MyCubeGrid, Sandbox.Game.Entities.Blocks.MyProjectorBase, Sandbox.Game.Weapons.MyLargeTurretBase, Sandbox.Game.Entities.Blocks.MyPistonBase, Sandbox.Game.Entities.MyCubeBlock, Sandbox.Game.Entities.MyPlanet, SpaceEngineers.Game.Entities.Blocks.MyShipMergeBlock, SpaceEngineers.Game.Entities.Blocks.MyLandingGear, Sandbox.Game.Entities.Blocks.MyProgrammableBlock, Sandbox.Game.Entities.Cube.MyLaserAntenna, Sandbox.Game.Entities.Cube.MyMotorSuspension, Sandbox.Game.Entities.MyGhostCharacter, Sandbox.Game.Entities.MyFracturedPiece, Sandbox.Game.Entities.Blocks.MyLightingBlock, Sandbox.Game.Entities.Cube.MyShipConnector, Sandbox.Game.Entities.MyJumpDrive, SpaceEngineers.Game.Entities.Blocks.MyTimerBlock, Sandbox.Game.Entities.Cube.MyRadioAntenna, SpaceEngineers.Game.Entities.Blocks.MySpaceBall, SpaceEngineers.Game.Entities.Blocks.MyButtonPanel, Sandbox.Game.Entities.Blocks.MyCollector, Sandbox.Game.Entities.MyVoxelMap, and Sandbox.Game.Weapons.MyUserControllableGun.
Definition at line 603 of file MyEntity.cs.
|
inlinevirtual |
Definition at line 621 of file MyEntity.cs.
|
static |
Definition at line 1563 of file MyEntity.cs.
|
static |
Definition at line 1579 of file MyEntity.cs.
|
static |
Definition at line 1595 of file MyEntity.cs.
bool VRage.Game.Entity.MyEntity.DebugAsyncLoading |
Definition at line 38 of file MyEntity.cs.
DebugCreatedBy VRage.Game.Entity.MyEntity.DebugCreatedBy |
Definition at line 39 of file MyEntity.cs.
MyDefinitionId VRage.Game.Entity.MyEntity.DefinitionId = null |
Definition at line 32 of file MyEntity.cs.
int VRage.Game.Entity.MyEntity.GamePruningProxyId = MyVRageConstants.PRUNING_PROXY_ID_UNITIALIZED |
Definition at line 127 of file MyEntity.cs.
|
static |
Definition at line 1598 of file MyEntity.cs.
|
protected |
Definition at line 44 of file MyEntity.cs.
float VRage.Game.Entity.MyEntity.m_massChangeForCollisions = 1f |
Definition at line 42 of file MyEntity.cs.
|
protected |
Definition at line 124 of file MyEntity.cs.
bool VRage.Game.Entity.MyEntity.m_positionResetFromServer |
Definition at line 68 of file MyEntity.cs.
Vector3 VRage.Game.Entity.MyEntity.m_serverAngularVelocity |
Definition at line 66 of file MyEntity.cs.
Vector3 VRage.Game.Entity.MyEntity.m_serverLinearVelocity |
Definition at line 65 of file MyEntity.cs.
Quaternion VRage.Game.Entity.MyEntity.m_serverOrientation = new Quaternion() |
Definition at line 62 of file MyEntity.cs.
Definition at line 61 of file MyEntity.cs.
Definition at line 63 of file MyEntity.cs.
|
static |
Definition at line 1601 of file MyEntity.cs.
|
static |
Definition at line 1572 of file MyEntity.cs.
|
static |
Definition at line 1592 of file MyEntity.cs.
|
static |
Definition at line 1585 of file MyEntity.cs.
|
static |
Definition at line 1587 of file MyEntity.cs.
|
static |
Definition at line 1589 of file MyEntity.cs.
|
static |
Definition at line 1586 of file MyEntity.cs.
string VRage.Game.Entity.MyEntity.Name |
Definition at line 36 of file MyEntity.cs.
Dictionary<IMyReplicable, Action> VRage.Game.Entity.MyEntity.ReadyForReplicationAction = new Dictionary<IMyReplicable, Action>() |
Definition at line 234 of file MyEntity.cs.
|
static |
Definition at line 1564 of file MyEntity.cs.
bool VRage.Game.Entity.MyEntity.SentFromServer |
Definition at line 69 of file MyEntity.cs.
bool VRage.Game.Entity.MyEntity.StaticForPruningStructure = false |
Definition at line 129 of file MyEntity.cs.
int VRage.Game.Entity.MyEntity.TargetPruningProxyId = MyVRageConstants.PRUNING_PROXY_ID_UNITIALIZED |
Definition at line 130 of file MyEntity.cs.
int VRage.Game.Entity.MyEntity.TopMostPruningProxyId = MyVRageConstants.PRUNING_PROXY_ID_UNITIALIZED |
Definition at line 128 of file MyEntity.cs.
|
static |
Definition at line 1565 of file MyEntity.cs.
|
getprotected set |
Definition at line 190 of file MyEntity.cs.
|
get |
Definition at line 34 of file MyEntity.cs.
|
get |
Definition at line 464 of file MyEntity.cs.
|
getset |
Definition at line 452 of file MyEntity.cs.
|
getset |
Display Name for GUI etc. Override in descendant classes. Usually used to display in terminal or inventory controls.
Definition at line 1544 of file MyEntity.cs.
|
getset |
Entity id, can be set by subclasses (for example when using pool...)
Definition at line 148 of file MyEntity.cs.
|
getset |
Definition at line 12 of file MyEntity_ModAPI.cs.
|
getset |
Definition at line 139 of file MyEntity.cs.
|
get |
Returns true if this entity has got at least one inventory. Note that one aggregate inventory can contain zero simple inventories => zero will be returned even if GetInventoryBase() != null.
Definition at line 1533 of file MyEntity.cs.
|
getset |
Definition at line 339 of file MyEntity.cs.
|
getset |
Definition at line 394 of file MyEntity.cs.
|
getset |
Definition at line 363 of file MyEntity.cs.
|
get |
Iterate through inventories and return their count.
Definition at line 1516 of file MyEntity.cs.
|
get |
Definition at line 481 of file MyEntity.cs.
|
getset |
Definition at line 222 of file MyEntity.cs.
|
getset |
Definition at line 238 of file MyEntity.cs.
|
get |
Definition at line 411 of file MyEntity.cs.
|
get |
Definition at line 416 of file MyEntity.cs.
|
getprotected set |
Definition at line 191 of file MyEntity.cs.
|
get |
Definition at line 194 of file MyEntity.cs.
|
get |
Definition at line 431 of file MyEntity.cs.
|
get |
Definition at line 436 of file MyEntity.cs.
|
getset |
Definition at line 257 of file MyEntity.cs.
|
get |
|
getset |
Gets the physic component of the entity.
Definition at line 357 of file MyEntity.cs.
|
getset |
Definition at line 48 of file MyEntity.cs.
|
getset |
Definition at line 73 of file MyEntity.cs.
|
getset |
Definition at line 206 of file MyEntity.cs.
|
getset |
Definition at line 186 of file MyEntity.cs.
|
get |
Definition at line 475 of file MyEntity.cs.
|
getset |
Definition at line 385 of file MyEntity.cs.
|
getprotected set |
Definition at line 182 of file MyEntity.cs.
|
getset |
Definition at line 307 of file MyEntity.cs.
Action<MyEntity> VRage.Game.Entity.MyEntity.OnClose |
Definition at line 976 of file MyEntity.cs.
Action<MyEntity> VRage.Game.Entity.MyEntity.OnClosing |
Definition at line 977 of file MyEntity.cs.
Action<MyEntity> VRage.Game.Entity.MyEntity.OnMarkForClose |
This event may not be invoked at all, when calling MyEntities.CloseAll, marking is bypassed
Definition at line 975 of file MyEntity.cs.
Action<MyEntity> VRage.Game.Entity.MyEntity.OnPhysicsChanged |
Definition at line 979 of file MyEntity.cs.