Sandbox.Game.Entities
MyVoxelBase
Assembly: Sandbox.Game.dll
public abstract class MyVoxelBase: MyEntity, IMyEntity, IMyEntity, IMyVoxelDrawable, IMyVoxelBase, IMyDecalProxy, IMyEventProxy, IMyEventOwner
Fields
Events
| Member | Description |
|---|---|
| RangeChanged | |
| AddedToScene | Inherited from MyEntity |
| OnClose | Called when Close() is called. Order 1) OnMarkForClose 2) OnClosing 3) OnClose . Inherited from IMyEntity |
| OnClose | Inherited from MyEntity |
| OnClosing | Called when Close() is called. Order 1) OnMarkForClose 2) OnClosing 3) OnClose . Inherited from IMyEntity |
| OnClosing | Inherited from MyEntity |
| OnDebugDraw | Inherited from MyEntity |
| OnMarkForClose | Called when Close() is called. Order 1) OnMarkForClose 2) OnClosing 3) OnClose . Inherited from IMyEntity |
| OnMarkForClose | This event may not be invoked at all, when calling MyEntities.CloseAll, marking is bypassed Inherited from MyEntity |
| OnModelRefresh | Inherited from MyEntity |
| OnPhysicsChanged | Called when havok rigid body physics are changed: inited, closed, modified. Inherited from IMyEntity |
| OnPhysicsChanged | Inherited from MyEntity |
| OnPhysicsComponentChanged | Inherited from MyEntity |
| OnTeleported | Inherited from MyEntity |
| OnUpdateOnceBeforeNextFrame | Inherited from MyEntity |
| RemovedFromScene | Inherited from MyEntity |
Properties
| Member | Description |
|---|---|
| AsteroidName | |
| BeforeContentChanged | |
| ContentChanged | |
| CreatedByUser | |
| DelayRigidBodyCreation | |
| IsGlobalEncounterAsteroid | |
| IsTransparentForJumpDrive | |
| Orientation | |
| PositionLeftBottomCorner | Position of left/bottom corner of this voxel map, in world space (not relative to sector) |
| RootVoxel | Gets root voxel, for asteroids and planets itself. For MyVoxelPhysics, should return owning planet. |
| ScaleGroup | |
| Size | Size of voxel map (in voxels) |
| SizeInMetres | Size of voxel map (in metres) |
| SizeInMetresHalf | |
| SizeMinusOne | |
| Storage | |
| StorageMax | |
| StorageMin | |
| StorageName | |
| VoxelSize | |
| CastShadows | Gets or sets flag CastShadows Inherited from IMyEntity |
| Closed | True if the block has been removed from the world. Inherited from IMyEntity |
| Closed | Inherited from MyEntity |
| Components | Gets blocks component logic container Inherited from IMyEntity |
| Components | Inherited from MyEntity |
| DebugAsyncLoading | Used for internal usage. Modders should not use it. Will be eventually removed Inherited from IMyEntity |
| DebugName | Inherited from MyEntity |
| DisplayName | Gets user friendly name of entity. May be null For block terminal name use DisplayNameText Inherited from IMyEntity |
| DisplayName | Gets or sets user friendly name of entity Inherited from IMyEntity |
| DisplayName | Inherited from MyEntity |
| DisplayNameText | Display Name for GUI etc. Override in descendant classes. Usually used to display in terminal or inventory controls. Inherited from MyEntity |
| EntityId | Id of entity Inherited from IMyEntity |
| EntityId | Uniq id of entity. Inherited from IMyEntity |
| EntityId | Entity id, can be set by subclasses (for example when using pool...) Inherited from MyEntity |
| EntityStorage | Inherited from MyEntity |
| FastCastShadowResolve | Gets or sets flag CastShadows Inherited from IMyEntity |
| Flags | Gets or set some behavior of entity. EntityFlags Inherited from IMyEntity |
| Flags | Inherited from MyEntity |
| GameLogic | Gets or sets game logic for object. If there is more than 1 game logic attached it should be wrapped into. Inherited from IMyEntity |
| GameLogic | Inherited from MyEntity |
| HasInventory | 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 GetInventory() != null. Inherited from IMyEntity |
| HasInventory | 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. Inherited from MyEntity |
| Hierarchy | Gets or sets Hierarchy component Inherited from IMyEntity |
| Hierarchy | Inherited from MyEntity |
| InScene | Gets or set if grid is InScene. Objects that are not in scene are not updated and drawn. Inherited from IMyEntity |
| InScene | Inherited from MyEntity |
| InvalidateOnMove | Gets if entity is invalidated on move When visual look of entity depends on position - then InvalidateOnMove should be true Inherited from IMyEntity |
| InvalidateOnMove | Inherited from MyEntity |
| InventoryCount | Returns the count of the number of inventories this entity has. Inherited from IMyEntity |
| InventoryCount | Iterate through inventories and return their count. Inherited from MyEntity |
| IsCCDForProjectiles | Inherited from MyEntity |
| IsPreview | Inherited from MyEntity |
| IsReadyForReplication | Inherited from MyEntity |
| IsReplicated | Inherited from MyEntity |
| IsTransparentForJumpDrive | Inherited from MyEntity |
| IsVolumetric | Always returns false Inherited from IMyEntity |
| IsVolumetric | Inherited from MyEntity |
| LastSnapshotFlags | Inherited from MyEntity |
| LocalAABB | Gets or sets local axis aligned bounding box. Same as LocalAABBHr , LocalAABB Inherited from IMyEntity |
| LocalAABBHr | Gets local axis aligned bounding box. Same as LocalAABB , LocalAABB Inherited from IMyEntity |
| LocalMatrix | Gets or sets local matrix. When entity, has parent, it's world coordinates are calculated from localMatrix and parent world matrix Inherited from IMyEntity |
| LocalVolume | Gets or sets local volume. Same as LocalVolume Inherited from IMyEntity |
| LocalVolumeOffset | Gets or sets local volume offset. Same as LocalVolumeOffset Inherited from IMyEntity |
| LocationForHudMarker | Inherited from MyEntity |
| MarkedForClose | Checked if Close() was called Inherited from IMyEntity |
| MarkedForClose | Inherited from MyEntity |
| MaxGlassDistSq | Not used in game anymore Inherited from IMyEntity |
| MaxGlassDistSq | Inherited from MyEntity |
| Model | Gets model of block Inherited from IMyEntity |
| Model | Inherited from MyEntity |
| ModelCollision | Gets collision model of block Inherited from IMyEntity |
| ModelCollision | Inherited from MyEntity |
| Name | Some entities can have uniq name, and game can find them by name TryGetEntityByName(string, out IMyEntity) Inherited from IMyEntity |
| Name | Uniq name of entity. Can be used to find entity by name Inherited from IMyEntity |
| Name | Inherited from MyEntity |
| NearFlag | Gets or sets flag Near Inherited from IMyEntity |
| NeedsDraw | Gets or sets flag NeedsDraw Inherited from IMyEntity |
| NeedsDrawFromParent | Gets or sets flag NeedsDrawFromParent Inherited from IMyEntity |
| NeedsResolveCastShadow | Gets or sets flag NeedsResolveCastShadow Inherited from IMyEntity |
| NeedsUpdate | Gets or sets how often the entity should be updated. Inherited from IMyEntity |
| NeedsUpdate | Inherited from MyEntity |
| NeedsWorldMatrix | Gets or sets if WorldMatrix should be calculated when parent WorldMatrix is changed. Inherited from IMyEntity |
| NeedsWorldMatrix | Inherited from MyEntity |
| Parent | Gets parent of entity or null, if this entity doesn't have parent. Ex: character sitting in cockpit, has parent - cockpit, cockpit has parent - cube grid, connected grids also has main grid, which would be parent for other grids. Inherited from IMyEntity |
| Parent | Gets or sets the parent. Inherited from MyEntity |
| PersistentFlags | Gets or sets persistent flags that are used in rendering. Inherited from IMyEntity |
| Physics | Gets or sets physics for object Inherited from IMyEntity |
| Physics | Inherited from MyEntity |
| Pinned | Inherited from MyEntity |
| PositionComp | Gets or sets position provider logic Inherited from IMyEntity |
| PositionComp | Inherited from MyEntity |
| PositionLeftBottomCorner | Inherited from IMyVoxelBase |
| Render | Gets or sets render logic Inherited from IMyEntity |
| Render | Inherited from MyEntity |
| Save | Gets or sets Save . Entity won't be saved if Save is false Inherited from IMyEntity |
| Save | Inherited from MyEntity |
| ShadowBoxLod | Gets or sets flag ShadowBoxLod Inherited from IMyEntity |
| SkipIfTooSmall | Gets or sets flag SkipIfTooSmall Inherited from IMyEntity |
| StopPhysicsActivation | Inherited from IMyEntity |
| StopPhysicsActivation | Inherited from MyEntity |
| Storage | Inherited from IMyVoxelBase |
| Storage | Custom storage for mods. Shared with all mods. Inherited from IMyEntity |
| Storage | Inherited from MyEntity |
| StorageName | Inherited from IMyVoxelBase |
| Subparts | Inherited from MyEntity |
| SyncFlag | Inherited from MyEntity |
| Synchronized | Gets or sets if the entity should be synced. Inherited from IMyEntity |
| SyncObject | Gets SyncObject used for synchronizing data over network with Inherited from IMyEntity |
| SyncObject | Inherited from MyEntity |
| Transparent | Gets or sets Transparency . When setting true entity would be 25% transparent Inherited from IMyEntity |
| UpdateDuration | Inherited from MyEntity |
| Visible | Gets or sets flag Visible Inherited from IMyEntity |
| WorldAABB | Gets world axis-aligned bounding box Inherited from IMyEntity |
| WorldAABBHr | Gets world axis-aligned bounding box Inherited from IMyEntity |
| WorldMatrix | Gets world matrix of this entity Inherited from IMyEntity |
| WorldMatrix | Gets or sets world matrix. Inherited from IMyEntity |
| WorldMatrix | Inherited from MyEntity |
| WorldMatrixInvScaled | Get scaled, inverted world matrix. Same as GetViewMatrix() , GetWorldMatrixNormalizedInv() , WorldMatrixNormalizedInv , but not normalized Inherited from IMyEntity |
| WorldMatrixNormalizedInv | Get normalized, inverted world matrix. Same as GetViewMatrix() , WorldMatrixNormalizedInv Inherited from IMyEntity |
| WorldVolume | Gets bounding sphere of this entity Inherited from IMyEntity |
| WorldVolumeHr | Gets bounding sphere of this entity Inherited from IMyEntity |
| IsCCDForProjectiles | Obsolete Inherited from IMyEntity |
| LocationForHudMarker | Obsolete Inherited from IMyEntity |
Constructors
| Member | Description |
|---|---|
| MyVoxelBase() | |
| MyEntity() | Inherited from MyEntity |
| MyEntity(bool) | Inherited from MyEntity |
Methods
Inheritance: MyEntity
Implements:
- IMyDecalProxy
- IMyEntity
- IMyEntity
- IMyEventOwner prohibited
- IMyEventProxy
- IMyVoxelBase
- IMyVoxelDrawable prohibited
Inheritors: