Class MyVoxelMap
Inheritance
System.Object
MyVoxelMap
Inherited Members
MyVoxelBase.IMyDecalProxy.AddDecals(MyHitInfo, MyStringHash, Vector3, Object, IMyDecalHandler, MyStringHash, MyStringHash, Boolean, MyDecalFlags, Int32, List<UInt32>)
Assembly: Sandbox.Game.dll
Syntax
[MyEntityType]
public class MyVoxelMap : MyVoxelBase, IMyVoxelDrawable, IMyDecalProxy, IMyEventProxy, IMyEventOwner, IMyVoxelMap, IMyVoxelBase, IMyEntity, IMyEntity
Constructors
MyVoxelMap()
Declaration
Properties
IsStaticForCluster
Declaration
public bool IsStaticForCluster { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
RootVoxel
Declaration
public override MyVoxelBase RootVoxel { get; }
Property Value
Overrides
Storage
Declaration
public override IMyStorage Storage { get; set; }
Property Value
| Type |
Description |
| VRage.Game.Voxels.IMyStorage |
|
Overrides
Methods
BeforeDelete()
Declaration
protected override void BeforeDelete()
Overrides
GetFriendlyName()
Declaration
public override string GetFriendlyName()
Returns
| Type |
Description |
| System.String |
|
Overrides
GetIntersectionWithAABB(ref BoundingBoxD)
Declaration
public override bool GetIntersectionWithAABB(ref BoundingBoxD aabb)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
GetIntersectionWithSphere(ref BoundingSphereD)
Declaration
public override bool GetIntersectionWithSphere(ref BoundingSphereD sphere)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
GetNewStorageName(String, Int64)
Declaration
public static string GetNewStorageName(string storageName, long entityId)
Parameters
| Type |
Name |
Description |
| System.String |
storageName |
|
| System.Int64 |
entityId |
|
Returns
| Type |
Description |
| System.String |
|
GetObjectBuilder(Boolean)
Declaration
public override MyObjectBuilder_EntityBase GetObjectBuilder(bool copy = false)
Parameters
| Type |
Name |
Description |
| System.Boolean |
copy |
|
Returns
Overrides
GetOrePriority()
Declaration
public override int GetOrePriority()
Returns
| Type |
Description |
| System.Int32 |
|
Overrides
Init(String, IMyStorage, MatrixD, Boolean)
Declaration
public override void Init(string storageName, IMyStorage storage, MatrixD worldMatrix, bool useVoxelOffset = true)
Parameters
| Type |
Name |
Description |
| System.String |
storageName |
|
| VRage.Game.Voxels.IMyStorage |
storage |
|
| MatrixD |
worldMatrix |
|
| System.Boolean |
useVoxelOffset |
|
Overrides
Init(MyObjectBuilder_EntityBase)
Declaration
public override void Init(MyObjectBuilder_EntityBase builder)
Parameters
Overrides
Init(MyObjectBuilder_EntityBase, IMyStorage)
Declaration
public override void Init(MyObjectBuilder_EntityBase builder, IMyStorage storage)
Parameters
Overrides
InitVoxelMap(MatrixD, Vector3I, Boolean)
Declaration
protected override void InitVoxelMap(MatrixD worldMatrix, Vector3I size, bool useOffset = true)
Parameters
| Type |
Name |
Description |
| MatrixD |
worldMatrix |
|
| Vector3I |
size |
|
| System.Boolean |
useOffset |
|
Overrides
IsOverlapOverThreshold(BoundingBoxD, Single)
Declaration
public override bool IsOverlapOverThreshold(BoundingBoxD worldAabb, float thresholdPercentage)
Parameters
| Type |
Name |
Description |
| BoundingBoxD |
worldAabb |
|
| System.Single |
thresholdPercentage |
|
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
UpdateAfterSimulation10()
Declaration
public override void UpdateAfterSimulation10()
Overrides
UpdateBeforeSimulation10()
Declaration
public override void UpdateBeforeSimulation10()
Overrides
UpdateOnceBeforeFrame()
Declaration
public override void UpdateOnceBeforeFrame()
Overrides
Explicit Interface Implementations
IMyVoxelMap.ClampVoxelCoord(ref Vector3I)
Declaration
void IMyVoxelMap.ClampVoxelCoord(ref Vector3I voxelCoord)
Parameters
| Type |
Name |
Description |
| Vector3I |
voxelCoord |
|
IMyVoxelMap.Close()
Declaration
IMyVoxelMap.DoOverlapSphereTest(Single, Vector3D)
Declaration
bool IMyVoxelMap.DoOverlapSphereTest(float sphereRadius, Vector3D spherePos)
Parameters
| Type |
Name |
Description |
| System.Single |
sphereRadius |
|
| Vector3D |
spherePos |
|
Returns
| Type |
Description |
| System.Boolean |
|
IMyVoxelMap.GetIntersectionWithSphere(ref BoundingSphereD)
Declaration
bool IMyVoxelMap.GetIntersectionWithSphere(ref BoundingSphereD sphere)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
IMyVoxelMap.GetObjectBuilder(Boolean)
Declaration
MyObjectBuilder_EntityBase IMyVoxelMap.GetObjectBuilder(bool copy)
Parameters
| Type |
Name |
Description |
| System.Boolean |
copy |
|
Returns
IMyVoxelMap.GetVoxelContentInBoundingBox(BoundingBoxD, out Single)
Declaration
float IMyVoxelMap.GetVoxelContentInBoundingBox(BoundingBoxD worldAabb, out float cellCount)
Parameters
| Type |
Name |
Description |
| BoundingBoxD |
worldAabb |
|
| System.Single |
cellCount |
|
Returns
| Type |
Description |
| System.Single |
|
IMyVoxelMap.GetVoxelCoordinateFromMeters(Vector3D)
Declaration
Vector3I IMyVoxelMap.GetVoxelCoordinateFromMeters(Vector3D pos)
Parameters
Returns
IMyVoxelMap.Init(MyObjectBuilder_EntityBase)
Declaration
void IMyVoxelMap.Init(MyObjectBuilder_EntityBase builder)
Parameters
Implements
Extension Methods