Show / Hide Table of Contents

Class MyVoxelBase

Inheritance
System.Object
MyEntity
MyVoxelBase
MyPlanet
MyVoxelMap
Implements
IMyVoxelBase
IMyEntity
IMyEntity
IMyDecalProxy
Inherited Members
MyEntity.m_contactPoint
MyEntity.DefinitionId
MyEntity.DebugAsyncLoading
MyEntity.m_hudParams
MyEntity.m_positionResetFromServer
MyEntity.m_modelCollision
MyEntity.GamePruningProxyId
MyEntity.TopMostPruningProxyId
MyEntity.StaticForPruningStructure
MyEntity.TargetPruningProxyId
MyEntity.IsPreviewChanged
MyEntity.ReadyForReplicationAction
MyEntity.PropagateSubpartRotationThroughHieerarchy
MyEntity.ReplicationStarted
MyEntity.ReplicationEnded
MyEntity.OnEntityCloseRequest
MyEntity.InstantiateSubpartOverrideFunc
MyEntity.AddToGamePruningStructureExtCallBack
MyEntity.RemoveFromGamePruningStructureExtCallBack
MyEntity.UpdateGamePruningStructureExtCallBack
MyEntity.MyEntityFactoryCreateObjectBuilderExtCallback
MyEntity.CreateDefaultSyncEntityExtCallback
MyEntity.MyWeldingGroupsAddNodeExtCallback
MyEntity.MyWeldingGroupsRemoveNodeExtCallback
MyEntity.MyWeldingGroupsGetGroupNodesExtCallback
MyEntity.MyWeldingGroupsGroupExistsExtCallback
MyEntity.MyProceduralWorldGeneratorTrackEntityExtCallback
MyEntity.CreateStandardRenderComponentsExtCallback
MyEntity.InitComponentsExtCallback
MyEntity.MyEntitiesCreateFromObjectBuilderExtCallback
MyEntity.DebugDraw()
MyEntity.DebugDrawInvalidTriangles()
MyEntity.AddDebugRenderComponent(MyDebugRenderComponentBase)
MyEntity.ContainsDebugRenderComponent(Type)
MyEntity.TryGetDebugRenderComponent<T>(T)
MyEntity.RemoveDebugRenderComponent(Type)
MyEntity.RemoveDebugRenderComponent(MyDebugRenderComponentBase)
MyEntity.ClearDebugRenderComponents()
MyEntity.GetTopMostParent(Type)
MyEntity.GetHudParams(Boolean)
MyEntity.CanBeAddedToRender()
MyEntity.InitComponents()
MyEntity.InitComponentsForTesting()
MyEntity.Components_ComponentAdded(Type, IMyEntityComponentBase)
MyEntity.Components_ComponentRemoved(Type, IMyEntityComponentBase)
MyEntity.OnCreateSync()
MyEntity.CreateSync()
MyEntity.GetSubpart(String)
MyEntity.TryGetSubpart(String, MyEntitySubpart)
MyEntity.UpdateOnceBeforeFrame()
MyEntity.UpdateBeforeSimulation()
MyEntity.Simulate()
MyEntity.UpdateAfterSimulation()
MyEntity.UpdatingStopped()
MyEntity.UpdateBeforeSimulation10()
MyEntity.UpdateAfterSimulation10()
MyEntity.UpdateBeforeSimulation100()
MyEntity.UpdateAfterSimulation100()
MyEntity.GetFriendlyName()
MyEntity.GetViewMatrix()
MyEntity.Teleport(MatrixD, Object, Boolean)
MyEntity.DebugDrawPhysics()
MyEntity.GetIntersectionWithLineAndBoundingSphere(LineD, Single)
MyEntity.GetIntersectionWithSphere(BoundingSphereD)
MyEntity.GetIntersectionWithAABB(BoundingBoxD)
MyEntity.GetTrianglesIntersectingSphere(BoundingSphere, Nullable<Vector3>, Nullable<Single>, List<MyTriangle_Vertex_Normals>, Int32)
MyEntity.GetSmallestDistanceBetweenCameraAndBoundingSphere()
MyEntity.GetLargestDistanceBetweenCameraAndBoundingSphere()
MyEntity.GetDistanceBetweenCameraAndBoundingSphere()
MyEntity.GetDistanceBetweenPlayerPositionAndBoundingSphere()
MyEntity.GetDistanceBetweenCameraAndPosition()
MyEntity.GetBaseEntity()
MyEntity.OnAddedToScene(Object)
MyEntity.SetFadeOut(Boolean)
MyEntity.OnRemovedFromScene(Object)
MyEntity.AddToGamePruningStructure()
MyEntity.RemoveFromGamePruningStructure()
MyEntity.UpdateGamePruningStructure()
MyEntity.RaisePhysicsChanged()
MyEntity.Init(MyObjectBuilder_EntityBase)
MyEntity.BeforeGameLogicInit()
MyEntity.ClampToWorld()
MyEntity.Init(StringBuilder, String, MyEntity, Nullable<Single>, String)
MyEntity.RefreshModels(String, String)
MyEntity.Delete()
MyEntity.Closing()
MyEntity.Close()
MyEntity.BeforeSave()
MyEntity.PrepareForDraw()
MyEntity.BeforePaste()
MyEntity.AfterPaste()
MyEntity.SetEmissiveParts(String, Color, Single)
MyEntity.SetEmissivePartsForSubparts(String, Color, Single)
MyEntity.UpdateNamedEmissiveParts(UInt32, String, Color, Single)
MyEntity.InstantiateSubpart(MyModelDummy, MyEntitySubpart.Data)
MyEntity.GetCubeBlockParent(MyEntity)
MyEntity.ToString()
MyEntity.GetInventoryBase(Int32)
MyEntity.GetInventoryBase()
MyEntity.OnInventoryComponentAdded(MyInventoryBase)
MyEntity.OnInventoryComponentRemoved(MyInventoryBase)
MyEntity.SerializeControls(BitStream)
MyEntity.DeserializeControls(BitStream, Boolean)
MyEntity.ApplyLastControls()
MyEntity.ResetControls()
MyEntity.Pin()
MyEntity.Unpin()
MyEntity.UpdateSoundContactPoint(Int64, Vector3, Vector3, Vector3, Single)
MyEntity.IMyEntity.GetTopMostParent(Type)
MyEntity.IMyEntity.GetChildren(List<IMyEntity>, Func<IMyEntity, Boolean>)
MyEntity.IMyEntity.GetFriendlyName()
MyEntity.IMyEntity.Close()
MyEntity.IMyEntity.Delete()
MyEntity.IMyEntity.GetDiffuseColor()
MyEntity.IMyEntity.GetDistanceBetweenCameraAndBoundingSphere()
MyEntity.IMyEntity.GetDistanceBetweenCameraAndPosition()
MyEntity.IMyEntity.GetLargestDistanceBetweenCameraAndBoundingSphere()
MyEntity.IMyEntity.GetSmallestDistanceBetweenCameraAndBoundingSphere()
MyEntity.IMyEntity.GetIntersectionWithLineAndBoundingSphere(LineD, Single)
MyEntity.IMyEntity.GetIntersectionWithSphere(BoundingSphereD)
MyEntity.IMyEntity.GetInventory()
MyEntity.IMyEntity.GetInventory(Int32)
MyEntity.IMyEntity.GetTrianglesIntersectingSphere(BoundingSphere, Nullable<Vector3>, Nullable<Single>, List<MyTriangle_Vertex_Normals>, Int32)
MyEntity.IMyEntity.DoOverlapSphereTest(Single, Vector3D)
MyEntity.IMyEntity.GetObjectBuilder(Boolean)
MyEntity.IMyEntity.IsVisible()
MyEntity.IMyEntity.GetViewMatrix()
MyEntity.IMyEntity.GetWorldMatrixNormalizedInv()
MyEntity.IMyEntity.SetLocalMatrix(Matrix, Object)
MyEntity.IMyEntity.SetWorldMatrix(MatrixD, Object)
MyEntity.IMyEntity.SetPosition(Vector3D)
MyEntity.IMyEntity.EnableColorMaskForSubparts(Boolean)
MyEntity.IMyEntity.SetColorMaskForSubparts(Vector3)
MyEntity.IMyEntity.SetTextureChangesForSubparts(Dictionary<String, MyTextureChange>)
MyEntity.IMyEntity.SetTextureChangesForSubparts(Dictionary<MyStringId, MyTextureChange>)
MyEntity.IMyEntity.SetEmissiveParts(String, Color, Single)
MyEntity.IMyEntity.SetEmissivePartsForSubparts(String, Color, Single)
MyEntity.IMyEntity.GetInventory()
MyEntity.IMyEntity.GetInventory(Int32)
MyEntity.IMyEntity.GetPosition()
MyEntity.Components
MyEntity.Name
MyEntity.PositionComp
MyEntity.Render
MyEntity.GameLogic
MyEntity.EntityId
MyEntity.SyncObject
MyEntity.EntityStorage
MyEntity.Closed
MyEntity.MarkedForClose
MyEntity.MaxGlassDistSq
MyEntity.Save
MyEntity.IsPreview
MyEntity.IsReadyForReplication
MyEntity.NeedsUpdate
MyEntity.WorldMatrix
MyEntity.Parent
MyEntity.Hierarchy
MyEntity.IMyEntity.Hierarchy
MyEntity.IMyEntity.Physics
MyEntity.Physics
MyEntity.InvalidateOnMove
MyEntity.SyncFlag
MyEntity.NeedsWorldMatrix
MyEntity.InScene
MyEntity.IsVolumetric
MyEntity.LocationForHudMarker
MyEntity.Model
MyEntity.ModelCollision
MyEntity.DisplayName
MyEntity.DebugName
MyEntity.Subparts
MyEntity.IsCCDForProjectiles
MyEntity.Pinned
MyEntity.UpdateDuration
MyEntity.IsReplicated
MyEntity.InventoryCount
MyEntity.HasInventory
MyEntity.DisplayNameText
MyEntity.LastSnapshotFlags
MyEntity.Flags
MyEntity.IMyEntity.Parent
MyEntity.IMyEntity.Name
MyEntity.IMyEntity.DebugAsyncLoading
MyEntity.IMyEntity.DisplayName
MyEntity.IMyEntity.MarkedForClose
MyEntity.IMyEntity.Closed
MyEntity.IMyEntity.Model
MyEntity.IMyEntity.GameLogic
MyEntity.IMyEntity.NeedsUpdate
MyEntity.IMyEntity.NearFlag
MyEntity.IMyEntity.CastShadows
MyEntity.IMyEntity.FastCastShadowResolve
MyEntity.IMyEntity.NeedsResolveCastShadow
MyEntity.IMyEntity.MaxGlassDistSq
MyEntity.IMyEntity.NeedsDraw
MyEntity.IMyEntity.NeedsDrawFromParent
MyEntity.IMyEntity.Transparent
MyEntity.IMyEntity.ShadowBoxLod
MyEntity.IMyEntity.SkipIfTooSmall
MyEntity.IMyEntity.Storage
MyEntity.IMyEntity.Visible
MyEntity.IMyEntity.Save
MyEntity.IMyEntity.PersistentFlags
MyEntity.IMyEntity.InScene
MyEntity.IMyEntity.InvalidateOnMove
MyEntity.IMyEntity.IsCCDForProjectiles
MyEntity.IMyEntity.IsVolumetric
MyEntity.IMyEntity.LocalAABB
MyEntity.IMyEntity.LocalAABBHr
MyEntity.IMyEntity.LocalMatrix
MyEntity.IMyEntity.LocalVolume
MyEntity.IMyEntity.LocalVolumeOffset
MyEntity.IMyEntity.LocationForHudMarker
MyEntity.IMyEntity.Synchronized
MyEntity.IMyEntity.WorldMatrix
MyEntity.IMyEntity.WorldMatrixInvScaled
MyEntity.IMyEntity.WorldMatrixNormalizedInv
MyEntity.IMyEntity.ModelCollision
MyEntity.IMyEntity.HasInventory
MyEntity.IMyEntity.InventoryCount
MyEntity.IMyEntity.DisplayName
MyEntity.IMyEntity.Name
MyEntity.IMyEntity.WorldAABB
MyEntity.IMyEntity.WorldAABBHr
MyEntity.IMyEntity.WorldMatrix
MyEntity.IMyEntity.WorldVolume
MyEntity.IMyEntity.WorldVolumeHr
MyEntity.StopPhysicsActivation
MyEntity.OnMarkForClose
MyEntity.OnClose
MyEntity.OnClosing
MyEntity.OnModelRefresh
MyEntity.OnUpdateOnceBeforeNextFrame
MyEntity.OnDebugDraw
MyEntity.OnPhysicsChanged
MyEntity.OnPhysicsComponentChanged
MyEntity.AddedToScene
MyEntity.RemovedFromScene
MyEntity.OnTeleported
MyEntity.IMyEntity.OnClose
MyEntity.IMyEntity.OnClosing
MyEntity.IMyEntity.OnMarkForClose
MyEntity.IMyEntity.OnPhysicsChanged
Namespace: Sandbox.Game.Entities
Assembly: Sandbox.Game.dll
Syntax
public abstract class MyVoxelBase : MyEntity, IMyVoxelDrawable, IMyVoxelBase, IMyEntity, IMyEntity, IMyDecalProxy, IMyEventProxy, IMyEventOwner

Constructors

MyVoxelBase()

Declaration
public MyVoxelBase()

Fields

BoulderInfo

Declaration
public Nullable<MyBoulderInformation> BoulderInfo
Field Value
Type Description
System.Nullable<MyBoulderInformation>

CreateStorageCopyOnWrite

Declaration
public bool CreateStorageCopyOnWrite
Field Value
Type Description
System.Boolean

IsSeedOpen

Declaration
public Nullable<bool> IsSeedOpen
Field Value
Type Description
System.Nullable<System.Boolean>

m_storageMax

Declaration
protected Vector3I m_storageMax
Field Value
Type Description
Vector3I

m_storageMin

Declaration
protected Vector3I m_storageMin
Field Value
Type Description
Vector3I

m_tempStorage

Declaration
protected static MyStorageData m_tempStorage
Field Value
Type Description
MyStorageData

VoxelMapPruningProxyId

Declaration
public int VoxelMapPruningProxyId
Field Value
Type Description
System.Int32

Properties

AsteroidName

Declaration
public string AsteroidName { get; set; }
Property Value
Type Description
System.String

BeforeContentChanged

Declaration
public bool BeforeContentChanged { get; set; }
Property Value
Type Description
System.Boolean

ContentChanged

Declaration
public bool ContentChanged { get; set; }
Property Value
Type Description
System.Boolean

CreatedByUser

Declaration
public bool CreatedByUser { get; set; }
Property Value
Type Description
System.Boolean

DelayRigidBodyCreation

Declaration
public bool DelayRigidBodyCreation { get; set; }
Property Value
Type Description
System.Boolean

IsGlobalEncounterAsteroid

Declaration
public bool IsGlobalEncounterAsteroid { get; set; }
Property Value
Type Description
System.Boolean

m_storage

Declaration
protected IMyStorage m_storage { get; set; }
Property Value
Type Description
VRage.Game.Voxels.IMyStorage

Orientation

Declaration
public Matrix Orientation { get; }
Property Value
Type Description
Matrix

PositionLeftBottomCorner

Position of left/bottom corner of this voxel map, in world space (not relative to sector)

Declaration
public virtual Vector3D PositionLeftBottomCorner { get; set; }
Property Value
Type Description
Vector3D

RootVoxel

Gets root voxel, for asteroids and planets itself. For MyVoxelPhysics, should return owning planet.

Declaration
public abstract MyVoxelBase RootVoxel { get; }
Property Value
Type Description
MyVoxelBase

ScaleGroup

Declaration
public virtual MyClipmapScaleEnum ScaleGroup { get; }
Property Value
Type Description
MyClipmapScaleEnum

Size

Size of voxel map (in voxels)

Declaration
public Vector3I Size { get; }
Property Value
Type Description
Vector3I

SizeInMetres

Size of voxel map (in metres)

Declaration
public Vector3 SizeInMetres { get; protected set; }
Property Value
Type Description
Vector3

SizeInMetresHalf

Declaration
public Vector3 SizeInMetresHalf { get; protected set; }
Property Value
Type Description
Vector3

SizeMinusOne

Declaration
public Vector3I SizeMinusOne { get; }
Property Value
Type Description
Vector3I

Storage

Declaration
public virtual IMyStorage Storage { get; set; }
Property Value
Type Description
VRage.Game.Voxels.IMyStorage

StorageMax

Declaration
public Vector3I StorageMax { get; }
Property Value
Type Description
Vector3I

StorageMin

Declaration
public Vector3I StorageMin { get; }
Property Value
Type Description
Vector3I

StorageName

Declaration
public string StorageName { get; protected set; }
Property Value
Type Description
System.String

VoxelSize

Declaration
public float VoxelSize { get; }
Property Value
Type Description
System.Single

Methods

add_RangeChanged(MyVoxelBase.StorageChanged)

Declaration
public void add_RangeChanged(MyVoxelBase.StorageChanged value)
Parameters
Type Name Description
MyVoxelBase.StorageChanged value

AreAllAabbCornersInside(ref MatrixD, BoundingBoxD)

Declaration
public bool AreAllAabbCornersInside(ref MatrixD aabbWorldTransform, BoundingBoxD aabb)
Parameters
Type Name Description
MatrixD aabbWorldTransform
BoundingBoxD aabb
Returns
Type Description
System.Boolean

BeforeDelete()

Declaration
protected override void BeforeDelete()
Overrides
MyEntity.BeforeDelete()

BroadcastShipCutout(in MyShipMiningSystem.NetworkCutoutData)

Declaration
public void BroadcastShipCutout(in MyShipMiningSystem.NetworkCutoutData data)
Parameters
Type Name Description
Sandbox.Game.GameSystems.MyShipMiningSystem.NetworkCutoutData data

CountPointsInside(Vector3D*, Int32, Boolean)

Declaration
public int CountPointsInside(Vector3D*worldPoints, int pointCount, bool stopWhenFound = false)
Parameters
Type Name Description
Vector3D* worldPoints
System.Int32 pointCount
System.Boolean stopWhenFound
Returns
Type Description
System.Int32

CreateVoxelMeteorCrater(Vector3D, Single, Vector3, MyVoxelMaterialDefinition)

Declaration
public void CreateVoxelMeteorCrater(Vector3D center, float radius, Vector3 direction, MyVoxelMaterialDefinition material)
Parameters
Type Name Description
Vector3D center
System.Single radius
Vector3 direction
MyVoxelMaterialDefinition material

CutOutShapeWithProperties(MyShape, out Single, out MyVoxelMaterialDefinition, Dictionary<MyVoxelMaterialDefinition, Int32>, Boolean, Boolean, Boolean, Boolean)

Declaration
public void CutOutShapeWithProperties(MyShape shape, out float voxelsCountInPercent, out MyVoxelMaterialDefinition voxelMaterial, Dictionary<MyVoxelMaterialDefinition, int> exactCutOutMaterials = null, bool updateSync = false, bool onlyCheck = false, bool applyDamageMaterial = false, bool onlyApplyMaterial = false)
Parameters
Type Name Description
Sandbox.Engine.Voxels.MyShape shape
System.Single voxelsCountInPercent
MyVoxelMaterialDefinition voxelMaterial
System.Collections.Generic.Dictionary<MyVoxelMaterialDefinition, System.Int32> exactCutOutMaterials
System.Boolean updateSync
System.Boolean onlyCheck
System.Boolean applyDamageMaterial
System.Boolean onlyApplyMaterial

CutOutShapeWithPropertiesAsync(MyVoxelBase.OnCutOutResults, MyShape, Boolean, Boolean, Boolean, Boolean, Boolean)

Declaration
public void CutOutShapeWithPropertiesAsync(MyVoxelBase.OnCutOutResults results, MyShape shape, bool updateSync = false, bool onlyCheck = false, bool applyDamageMaterial = false, bool onlyApplyMaterial = false, bool skipCache = true)
Parameters
Type Name Description
MyVoxelBase.OnCutOutResults results
Sandbox.Engine.Voxels.MyShape shape
System.Boolean updateSync
System.Boolean onlyCheck
System.Boolean applyDamageMaterial
System.Boolean onlyApplyMaterial
System.Boolean skipCache

DoOverlapSphereTest(Single, Vector3D)

Declaration
public override bool DoOverlapSphereTest(float sphereRadius, Vector3D spherePos)
Parameters
Type Name Description
System.Single sphereRadius
Vector3D spherePos
Returns
Type Description
System.Boolean
Overrides
MyEntity.DoOverlapSphereTest(Single, Vector3D)

FindOutsidePosition(Vector3D, Single)

Find a storage local position that is outside of voxel content within a given radius.

Declaration
public virtual Vector3D FindOutsidePosition(Vector3D localPosition, float radius)
Parameters
Type Name Description
Vector3D localPosition
System.Single radius
Returns
Type Description
Vector3D

GetContainedVoxelCoords(ref BoundingBoxD, out Vector3I, out Vector3I)

Declaration
public bool GetContainedVoxelCoords(ref BoundingBoxD worldAabb, out Vector3I min, out Vector3I max)
Parameters
Type Name Description
BoundingBoxD worldAabb
Vector3I min
Vector3I max
Returns
Type Description
System.Boolean

GetFilledStorageBounds(out Vector3I, out Vector3I)

Declaration
public void GetFilledStorageBounds(out Vector3I min, out Vector3I max)
Parameters
Type Name Description
Vector3I min
Vector3I max

GetIntersectionWithLine(ref LineD, out Nullable<MyIntersectionResultLineTriangleEx>, IntersectionFlags)

Declaration
public override bool GetIntersectionWithLine(ref LineD worldLine, out Nullable<MyIntersectionResultLineTriangleEx> t, IntersectionFlags flags)
Parameters
Type Name Description
LineD worldLine
System.Nullable<VRage.Game.Models.MyIntersectionResultLineTriangleEx> t
IntersectionFlags flags
Returns
Type Description
System.Boolean
Overrides
MyEntity.GetIntersectionWithLine(ref LineD, out Nullable<MyIntersectionResultLineTriangleEx>, IntersectionFlags)

GetIntersectionWithLine(ref LineD, out Nullable<Vector3D>, Boolean, IntersectionFlags)

Declaration
public override bool GetIntersectionWithLine(ref LineD worldLine, out Nullable<Vector3D> v, bool useCollisionModel = true, IntersectionFlags flags)
Parameters
Type Name Description
LineD worldLine
System.Nullable<Vector3D> v
System.Boolean useCollisionModel
IntersectionFlags flags
Returns
Type Description
System.Boolean
Overrides
MyEntity.GetIntersectionWithLine(ref LineD, out Nullable<Vector3D>, Boolean, IntersectionFlags)

GetMaterialAt(ref Vector3D)

Declaration
public MyVoxelMaterialDefinition GetMaterialAt(ref Vector3D worldPosition)
Parameters
Type Name Description
Vector3D worldPosition
Returns
Type Description
MyVoxelMaterialDefinition

GetMaterialsInShape(MyShape, Int32)

Declaration
public HashSet<byte> GetMaterialsInShape(MyShape shape, int lod = 0)
Parameters
Type Name Description
Sandbox.Engine.Voxels.MyShape shape
System.Int32 lod
Returns
Type Description
System.Collections.Generic.HashSet<System.Byte>

GetObjectBuilder(Boolean)

Declaration
public override MyObjectBuilder_EntityBase GetObjectBuilder(bool copy = false)
Parameters
Type Name Description
System.Boolean copy
Returns
Type Description
MyObjectBuilder_EntityBase
Overrides
MyEntity.GetObjectBuilder(Boolean)

GetOrePriority()

Declaration
public virtual int GetOrePriority()
Returns
Type Description
System.Int32

GetVoxelContentInBoundingBox_Fast(BoundingBoxD, MatrixD, Boolean, Single)

Calculates amount of volume of a bounding box in voxels.

Declaration
public MyTuple<float, float> GetVoxelContentInBoundingBox_Fast(BoundingBoxD localAabb, MatrixD worldMatrix, bool stopIfFindAtLeastOneContent = false, float threshold = 0.1F)
Parameters
Type Name Description
BoundingBoxD localAabb

Local bounding box to query for.

MatrixD worldMatrix

World matrix of the bounding box.

System.Boolean stopIfFindAtLeastOneContent
System.Single threshold

Wipes out TOO small voxels

Returns
Type Description
VRage.MyTuple<System.Single, System.Single>

Pair of floats where 1st value is Volume amount and 2nd value is ratio of Volume amount to Whole volume.

GetVoxelRangeTypeInBoundingBox(BoundingBoxD)

Declaration
public MyVoxelContentConstitution GetVoxelRangeTypeInBoundingBox(BoundingBoxD worldAabb)
Parameters
Type Name Description
BoundingBoxD worldAabb
Returns
Type Description
MyVoxelContentConstitution

Init(String, IMyStorage, MatrixD, Boolean)

Declaration
public virtual 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

Init(String, IMyStorage, Vector3D)

Declaration
public void Init(string storageName, IMyStorage storage, Vector3D positionMinCorner)
Parameters
Type Name Description
System.String storageName
VRage.Game.Voxels.IMyStorage storage
Vector3D positionMinCorner

Init(MyObjectBuilder_EntityBase, IMyStorage)

Declaration
public abstract void Init(MyObjectBuilder_EntityBase builder, IMyStorage storage)
Parameters
Type Name Description
MyObjectBuilder_EntityBase builder
VRage.Game.Voxels.IMyStorage storage

InitVoxelMap(MatrixD, Vector3I, Boolean)

Declaration
protected virtual void InitVoxelMap(MatrixD worldMatrix, Vector3I size, bool useOffset = true)
Parameters
Type Name Description
MatrixD worldMatrix
Vector3I size
System.Boolean useOffset

IntersectStorage(ref BoundingBox, Boolean)

Declaration
public ContainmentType IntersectStorage(ref BoundingBox box, bool lazy = true)
Parameters
Type Name Description
BoundingBox box
System.Boolean lazy
Returns
Type Description
ContainmentType

IsAnyAabbCornerInside(ref MatrixD, BoundingBoxD)

Declaration
public bool IsAnyAabbCornerInside(ref MatrixD aabbWorldTransform, BoundingBoxD aabb)
Parameters
Type Name Description
MatrixD aabbWorldTransform
BoundingBoxD aabb
Returns
Type Description
System.Boolean

IsAnyOfPointInside(Vector3D[])

Declaration
public bool IsAnyOfPointInside(Vector3D[] worldPoints)
Parameters
Type Name Description
Vector3D[] worldPoints
Returns
Type Description
System.Boolean

IsBoxIntersectingBoundingBoxOfThisVoxelMap(ref BoundingBoxD)

Declaration
public bool IsBoxIntersectingBoundingBoxOfThisVoxelMap(ref BoundingBoxD boundingBox)
Parameters
Type Name Description
BoundingBoxD boundingBox
Returns
Type Description
System.Boolean

IsForbiddenEntity(MyEntity)

Declaration
public static bool IsForbiddenEntity(MyEntity entity)
Parameters
Type Name Description
MyEntity entity
Returns
Type Description
System.Boolean

IsOverlapOverThreshold(BoundingBoxD, Single)

Declaration
public virtual bool IsOverlapOverThreshold(BoundingBoxD worldAabb, float thresholdPercentage = 0.9F)
Parameters
Type Name Description
BoundingBoxD worldAabb
System.Single thresholdPercentage
Returns
Type Description
System.Boolean

OnRangeChanged(Vector3I, Vector3I, MyStorageDataTypeFlags)

Declaration
protected void OnRangeChanged(Vector3I voxelRangeMin, Vector3I voxelRangeMax, MyStorageDataTypeFlags changedData)
Parameters
Type Name Description
Vector3I voxelRangeMin
Vector3I voxelRangeMax
MyStorageDataTypeFlags changedData

OnReplicationEnded()

Declaration
public override void OnReplicationEnded()
Overrides
MyEntity.OnReplicationEnded()

OnReplicationStarted()

Declaration
public override void OnReplicationStarted()
Overrides
MyEntity.OnReplicationStarted()

OverlapsSphereLocal(Single, Vector3D)

Declaration
protected bool OverlapsSphereLocal(float sphereRadius, Vector3D spherePos)
Parameters
Type Name Description
System.Single sphereRadius
Vector3D spherePos
Returns
Type Description
System.Boolean

PerformCutOutSphereFast(Vector3D, Single, Boolean)

Declaration
[Event(null, 1156)]
[Reliable]
[Broadcast]
public void PerformCutOutSphereFast(Vector3D center, float radius, bool notify)
Parameters
Type Name Description
Vector3D center
System.Single radius
System.Boolean notify

remove_RangeChanged(MyVoxelBase.StorageChanged)

Declaration
public void remove_RangeChanged(MyVoxelBase.StorageChanged value)
Parameters
Type Name Description
MyVoxelBase.StorageChanged value

RequestVoxelCutoutSphere(Vector3D, Single, Boolean, Boolean)

Declaration
public void RequestVoxelCutoutSphere(Vector3D center, float radius, bool createDebris, bool damage)
Parameters
Type Name Description
Vector3D center
System.Single radius
System.Boolean createDebris
System.Boolean damage

RequestVoxelOperationBox(BoundingBoxD, MatrixD, Byte, MyVoxelBase.OperationType)

Declaration
public void RequestVoxelOperationBox(BoundingBoxD box, MatrixD Transformation, byte material, MyVoxelBase.OperationType Type)
Parameters
Type Name Description
BoundingBoxD box
MatrixD Transformation
System.Byte material
MyVoxelBase.OperationType Type

RequestVoxelOperationCapsule(Vector3D, Vector3D, Single, MatrixD, Byte, MyVoxelBase.OperationType)

Declaration
public void RequestVoxelOperationCapsule(Vector3D A, Vector3D B, float radius, MatrixD Transformation, byte material, MyVoxelBase.OperationType Type)
Parameters
Type Name Description
Vector3D A
Vector3D B
System.Single radius
MatrixD Transformation
System.Byte material
MyVoxelBase.OperationType Type

RequestVoxelOperationElipsoid(Vector3, MatrixD, Byte, MyVoxelBase.OperationType)

Declaration
public void RequestVoxelOperationElipsoid(Vector3 radius, MatrixD Transformation, byte material, MyVoxelBase.OperationType Type)
Parameters
Type Name Description
Vector3 radius
MatrixD Transformation
System.Byte material
MyVoxelBase.OperationType Type

RequestVoxelOperationRamp(BoundingBoxD, Vector3D, Double, MatrixD, Byte, MyVoxelBase.OperationType)

Declaration
public void RequestVoxelOperationRamp(BoundingBoxD box, Vector3D rampNormal, double rampNormalW, MatrixD Transformation, byte material, MyVoxelBase.OperationType Type)
Parameters
Type Name Description
BoundingBoxD box
Vector3D rampNormal
System.Double rampNormalW
MatrixD Transformation
System.Byte material
MyVoxelBase.OperationType Type

RequestVoxelOperationSphere(Vector3D, Single, Byte, MyVoxelBase.OperationType)

Declaration
public void RequestVoxelOperationSphere(Vector3D center, float radius, byte material, MyVoxelBase.OperationType Type)
Parameters
Type Name Description
Vector3D center
System.Single radius
System.Byte material
MyVoxelBase.OperationType Type

RevertVoxelAccess(Vector3I, MyStorageDataTypeFlags)

Declaration
[Event(null, 1137)]
[Reliable]
[ServerInvoked]
[BroadcastExcept]
public void RevertVoxelAccess(Vector3I key, MyStorageDataTypeFlags flags)
Parameters
Type Name Description
Vector3I key
MyStorageDataTypeFlags flags

WorldPositionChanged(Object)

Declaration
protected void WorldPositionChanged(object source)
Parameters
Type Name Description
System.Object source

Events

RangeChanged

Declaration
public event MyVoxelBase.StorageChanged RangeChanged
Event Type
Type Description
MyVoxelBase.StorageChanged

Explicit Interface Implementations

IMyDecalProxy.AddDecals(ref MyHitInfo, MyStringHash, Vector3, Object, IMyDecalHandler, MyStringHash, MyStringHash, Boolean, MyDecalFlags, Int32, List<UInt32>)

Declaration
void IMyDecalProxy.AddDecals(ref MyHitInfo hitInfo, MyStringHash source, Vector3 forwardDirection, object customdata, IMyDecalHandler decalHandler, MyStringHash physicalMaterial, MyStringHash voxelMaterial, bool isTrail, MyDecalFlags flags, int aliveUntil, List<uint> decals)
Parameters
Type Name Description
MyHitInfo hitInfo
MyStringHash source
Vector3 forwardDirection
System.Object customdata
IMyDecalHandler decalHandler
MyStringHash physicalMaterial
MyStringHash voxelMaterial
System.Boolean isTrail
VRageRender.MyDecalFlags flags
System.Int32 aliveUntil
System.Collections.Generic.List<System.UInt32> decals

IMyVoxelBase.Storage

Declaration
IMyStorage IMyVoxelBase.Storage { get; }
Returns
Type Description
IMyStorage

IMyVoxelBase.StorageName

Declaration
string IMyVoxelBase.StorageName { get; }
Returns
Type Description
System.String

Implements

IMyVoxelBase
IMyEntity
IMyEntity
IMyDecalProxy

Extension Methods

MyEntityInventoryOwnerExtensions.InventoryOwnerType(MyEntity)
MyEntityExtensions.GetPhysicsBody(MyEntity)
MyEntityExtensions.UpdateGamePruningStructure(MyEntity)
MyEntityExtensions.AddToGamePruningStructure(MyEntity)
MyEntityExtensions.RemoveFromGamePruningStructure(MyEntity)
MyEntityExtensions.EntityFactoryCreateObjectBuilder(MyEntity)
MyEntityExtensions.CreateDefaultSyncEntity(MyEntity)
MyEntityExtensions.AddNodeToWeldingGroups(MyEntity)
MyEntityExtensions.RemoveNodeFromWeldingGroups(MyEntity)
MyEntityExtensions.GetWeldingGroupNodes(MyEntity, List<MyEntity>)
MyEntityExtensions.WeldingGroupExists(MyEntity)
MyEntityExtensions.ProceduralWorldGeneratorTrackEntity(MyEntity)
MyEntityExtensions.TryGetInventory(MyEntity, out MyInventoryBase)
MyEntityExtensions.TryGetInventory(MyEntity, out MyInventory)
MyEntityExtensions.GetInventory(MyEntity, Int32)
VoxelBaseExtensions.GetMaterialAt(MyVoxelBase, ref Vector3D)
MyEntityContainerEventExtensions.RaiseEntityEvent(MyEntity, MyStringHash, MyEntityContainerEventExtensions.EntityEventParams)
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾