Show / Hide Table of Contents

Class MyCubeGrid

Grid - small ship, large ship, station Cubes (armor, walls...) are merge and rendered by this entity Blocks (turret, thrusts...) are rendered as child entities

Inheritance
System.Object
MyEntity
MyCubeGrid
Implements
IMyShootOrigin
IMyParallelUpdateable
IMyCubeGrid
IMyEntity
IMyCubeGrid
IMyEntity
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.OnCreateSync()
MyEntity.CreateSync()
MyEntity.GetSubpart(String)
MyEntity.TryGetSubpart(String, MyEntitySubpart)
MyEntity.Simulate()
MyEntity.UpdatingStopped()
MyEntity.GetFriendlyName()
MyEntity.GetViewMatrix()
MyEntity.DebugDrawPhysics()
MyEntity.GetIntersectionWithLine(LineD, Nullable<Vector3D>, Boolean, IntersectionFlags)
MyEntity.GetIntersectionWithLineAndBoundingSphere(LineD, Single)
MyEntity.GetIntersectionWithAABB(BoundingBoxD)
MyEntity.GetTrianglesIntersectingSphere(BoundingSphere, Nullable<Vector3>, Nullable<Single>, List<MyTriangle_Vertex_Normals>, Int32)
MyEntity.DoOverlapSphereTest(Single, Vector3D)
MyEntity.GetSmallestDistanceBetweenCameraAndBoundingSphere()
MyEntity.GetLargestDistanceBetweenCameraAndBoundingSphere()
MyEntity.GetDistanceBetweenCameraAndBoundingSphere()
MyEntity.GetDistanceBetweenPlayerPositionAndBoundingSphere()
MyEntity.GetDistanceBetweenCameraAndPosition()
MyEntity.GetBaseEntity()
MyEntity.SetFadeOut(Boolean)
MyEntity.AddToGamePruningStructure()
MyEntity.RemoveFromGamePruningStructure()
MyEntity.UpdateGamePruningStructure()
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.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.GetInventoryBase(Int32)
MyEntity.GetInventoryBase()
MyEntity.OnInventoryComponentAdded(MyInventoryBase)
MyEntity.OnInventoryComponentRemoved(MyInventoryBase)
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.EntityId
MyEntity.SyncObject
MyEntity.Storage
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.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
[StaticEventOwner]
[MyEntityType]
public class MyCubeGrid : MyEntity, IMyGridConnectivityTest, IMyEventProxy, IMyEventOwner, IMySyncedEntity, IMyShootOrigin, IMyParallelUpdateable, IMyCubeGrid, IMyEntity, IMyCubeGrid, IMyEntity

Constructors

MyCubeGrid()

Declaration
public MyCubeGrid()

Fields

BeingCreatedInSplit

Declaration
public bool BeingCreatedInSplit
Field Value
Type Description
System.Boolean

BlockCounter

Declaration
public readonly MyCubeGrid.BlockTypeCounter BlockCounter
Field Value
Type Description
MyCubeGrid.BlockTypeCounter

BlocksCounters

Declaration
public Dictionary<MyObjectBuilderType, int> BlocksCounters
Field Value
Type Description
System.Collections.Generic.Dictionary<MyObjectBuilderType, System.Int32>

BlocksWaitingOnAttachUpdate

Declaration
public HashSet<MyMechanicalConnectionBlockBase> BlocksWaitingOnAttachUpdate
Field Value
Type Description
System.Collections.Generic.HashSet<Sandbox.Game.Entities.Blocks.MyMechanicalConnectionBlockBase>

CloseGrid

Declaration
public bool CloseGrid
Field Value
Type Description
System.Boolean

ControlledFromTurret

Declaration
public bool ControlledFromTurret
Field Value
Type Description
System.Boolean

CreatePhysics

Declaration
public bool CreatePhysics
Field Value
Type Description
System.Boolean

DebugUpdateHistoryDuration

Number of gameplay frames to keep the update history for. Defaults to 120 frames.

Declaration
public static int DebugUpdateHistoryDuration
Field Value
Type Description
System.Int32

GridGeneralDamageModifier

Declaration
public readonly Sync<float, SyncDirection.FromServer> GridGeneralDamageModifier
Field Value
Type Description
VRage.Sync.Sync<System.Single, VRage.Sync.SyncDirection.FromServer>

GridPresenceUpdate

Declaration
public Action<bool> GridPresenceUpdate
Field Value
Type Description
System.Action<System.Boolean>

HasMechanicalTopPenindingReattach

Declaration
public bool HasMechanicalTopPenindingReattach
Field Value
Type Description
System.Boolean

HasShipSoundEvents

Declaration
public bool HasShipSoundEvents
Field Value
Type Description
System.Boolean

IdentityAuthorshipBlockCount

Declaration
public Dictionary<long, int> IdentityAuthorshipBlockCount
Field Value
Type Description
System.Collections.Generic.Dictionary<System.Int64, System.Int32>

InternalInitFinished

Declaration
public bool InternalInitFinished
Field Value
Type Description
System.Boolean

IsAccessibleForProgrammableBlock

Declaration
public bool IsAccessibleForProgrammableBlock
Field Value
Type Description
System.Boolean

m_occupiedBlocks

Declaration
public HashSet<MyCockpit> m_occupiedBlocks
Field Value
Type Description
System.Collections.Generic.HashSet<MyCockpit>

m_playedTime

Grid play time with player. Used by respawn ship.

Declaration
public int m_playedTime
Field Value
Type Description
System.Int32

MainCockpit

Declaration
public MyTerminalBlock MainCockpit
Field Value
Type Description
Sandbox.Game.Entities.Cube.MyTerminalBlock

MainRemoteControl

Declaration
public MyTerminalBlock MainRemoteControl
Field Value
Type Description
Sandbox.Game.Entities.Cube.MyTerminalBlock

MassSyncProperty

This is updated only when a player is sitting in the cockpit and autopilot is enabled.

Declaration
public readonly Sync<float, SyncDirection.FromServer> MassSyncProperty
Field Value
Type Description
VRage.Sync.Sync<System.Single, VRage.Sync.SyncDirection.FromServer>

NpcClaimSecondsRemaining

Declaration
public int NpcClaimSecondsRemaining
Field Value
Type Description
System.Int32

NpcClaimSecondsRemainingUpdateRequestTime

Declaration
public long NpcClaimSecondsRemainingUpdateRequestTime
Field Value
Type Description
System.Int64

NpcClaimSecondsRemainingUpdateTime

Declaration
public long NpcClaimSecondsRemainingUpdateTime
Field Value
Type Description
System.Int64

NumberOfReactors

Declaration
public int NumberOfReactors
Field Value
Type Description
System.Int32

OnLockToolbarPosition

Declaration
public const int OnLockToolbarPosition = 0
Field Value
Type Description
System.Int32

OnUnLockToolbarPosition

Declaration
public const int OnUnLockToolbarPosition = 1
Field Value
Type Description
System.Int32

Projector

Declaration
public MyProjectorBase Projector
Field Value
Type Description
Sandbox.Game.Entities.Blocks.MyProjectorBase

WorkPriority

Declaration
public static WorkPriority WorkPriority
Field Value
Type Description
ParallelTasks.WorkPriority

XSymmetryOdd

Declaration
public bool XSymmetryOdd
Field Value
Type Description
System.Boolean

XSymmetryPlane

Declaration
public Nullable<Vector3I> XSymmetryPlane
Field Value
Type Description
System.Nullable<Vector3I>

YSymmetryOdd

Declaration
public bool YSymmetryOdd
Field Value
Type Description
System.Boolean

YSymmetryPlane

Declaration
public Nullable<Vector3I> YSymmetryPlane
Field Value
Type Description
System.Nullable<Vector3I>

ZSymmetryOdd

Declaration
public bool ZSymmetryOdd
Field Value
Type Description
System.Boolean

ZSymmetryPlane

Declaration
public Nullable<Vector3I> ZSymmetryPlane
Field Value
Type Description
System.Nullable<Vector3I>

Properties

AllowPrediction

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

BigOwners

players that have the maximum number of functional blocks in cube grid

Declaration
public List<long> BigOwners { get; }
Property Value
Type Description
System.Collections.Generic.List<System.Int64>

BlocksCount

Declaration
public int BlocksCount { get; }
Property Value
Type Description
System.Int32

BlocksDestructionEnabled

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

BlocksForDraw

Declaration
public ConcurrentCachingHashSet<MyCubeBlock> BlocksForDraw { get; }
Property Value
Type Description
ConcurrentCachingHashSet<MyCubeBlock>

BlocksPCU

Declaration
public int BlocksPCU { get; set; }
Property Value
Type Description
System.Int32

ClosestParentId

Declaration
public long ClosestParentId { get; set; }
Property Value
Type Description
System.Int64

ConveyorSystem

Declaration
public IMyGridConveyorSystem ConveyorSystem { get; }
Property Value
Type Description
IMyGridConveyorSystem

CubeBlocks

Declaration
public HashSet<MySlimBlock> CubeBlocks { get; }
Property Value
Type Description
System.Collections.Generic.HashSet<Sandbox.Game.Entities.Cube.MySlimBlock>

DampenersEnabled

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

Decoys

Declaration
public HashSetReader<MyDecoy> Decoys { get; }
Property Value
Type Description
HashSetReader<Sandbox.Game.Entities.Blocks.MyDecoy>

DestructibleBlocks

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

DirtyBlocks

Declaration
public ConcurrentCachingHashSet<Vector3I> DirtyBlocks { get; }
Property Value
Type Description
ConcurrentCachingHashSet<Vector3I>

Editable

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

EntityThrustComponent

Declaration
public MyEntityThrustComponent EntityThrustComponent { get; }
Property Value
Type Description
Sandbox.Game.GameSystems.MyEntityThrustComponent

ForceDisablePrediction

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

GameLogic

Declaration
public override MyGameLogicComponent GameLogic { get; set; }
Property Value
Type Description
MyGameLogicComponent
Overrides
MyEntity.GameLogic

GetAmmoDefinition

Declaration
public MyDefinitionBase GetAmmoDefinition { get; }
Property Value
Type Description
MyDefinitionBase

GridCounter

Declaration
public static int GridCounter { get; }
Property Value
Type Description
System.Int32

GridPresenceTier

Declaration
public MyUpdateTiersGridPresence GridPresenceTier { get; set; }
Property Value
Type Description
MyUpdateTiersGridPresence

GridScale

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

GridSize

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

GridSizeEnum

Declaration
public MyCubeSize GridSizeEnum { get; set; }
Property Value
Type Description
MyCubeSize

GridSizeHalf

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

GridSizeHalfVector

Declaration
public Vector3 GridSizeHalfVector { get; }
Property Value
Type Description
Vector3

GridSizeQuarter

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

GridSizeQuarterVector

Declaration
public Vector3 GridSizeQuarterVector { get; }
Property Value
Type Description
Vector3

GridSizeR

Reciprocal of gridsize

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

GridSystems

Declaration
public MyCubeGridSystems GridSystems { get; }
Property Value
Type Description
Sandbox.Game.Entities.Cube.MyCubeGridSystems

HasCubeGridRender

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

HasMechanicalBlocksWaitingOnAttachUpdate

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

Immune

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

InitFromClipboard

True if created from Sandbox.Game.Entities.Cube.MyGridClipboard. Set earlier than IsProjected, before blocks/ec are handled

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

Inventories

Declaration
public HashSet<MyCubeBlock> Inventories { get; }
Property Value
Type Description
System.Collections.Generic.HashSet<MyCubeBlock>

IsBlockAreaChange

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

IsBlockTrasferInProgress

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

IsClientPredicted

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

IsClientPredictedCar

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

IsClientPredictedWheel

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

IsGenerated

Gets or sets is generated, used for economy stations

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

IsLargeDestroyInProgress

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

IsMarkedForEarlyDeactivation

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

IsNpcSpawnedGrid

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

IsParked

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

IsPowered

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

IsRespawnGrid

Gets or sets indication if a grid coresponds to a respawn ship/cart.

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

IsSmokeParticleActive

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

IsSolarOccluded

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

IsSplit

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

IsStatic

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

IsUnsupportedStation

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

LastUpdates

Declaration
public IEnumerable<KeyValuePair<MyCubeGrid.DebugUpdateRecord, MyCubeGrid.DebugUpdateStats>> LastUpdates { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<MyCubeGrid.DebugUpdateRecord, MyCubeGrid.DebugUpdateStats>>

LinearVelocity

Declaration
public Vector3 LinearVelocity { get; }
Property Value
Type Description
Vector3

LocalCoordSystem

Local coord system under which this cube exists. (its id)

Declaration
public long LocalCoordSystem { get; set; }
Property Value
Type Description
System.Int64

LockedByCount

Declaration
public int LockedByCount { get; }
Property Value
Type Description
System.Int32

MarkedAsTrash

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

Mass

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

Max

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

MaxShootRange

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

Min

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

NaturalGravity

Declaration
public Vector3 NaturalGravity { get; }
Property Value
Type Description
Vector3

NumberOfGridColors

Return how many colors are on grid

Declaration
public int NumberOfGridColors { get; }
Property Value
Type Description
System.Int32

OccupiedBlocks

Declaration
public HashSetReader<MyCockpit> OccupiedBlocks { get; }
Property Value
Type Description
HashSetReader<MyCockpit>

Physics

Declaration
public MyGridPhysics Physics { get; set; }
Property Value
Type Description
Sandbox.Game.Entities.Cube.MyGridPhysics

PlayerPresenceTier

Declaration
public MyUpdateTiersPlayerPresence PlayerPresenceTier { get; set; }
Property Value
Type Description
MyUpdateTiersPlayerPresence

RenderData

Declaration
public MyCubeGridRenderData RenderData { get; }
Property Value
Type Description
Sandbox.Game.Entities.Cube.MyCubeGridRenderData

RvoAgentId

Declaration
public int RvoAgentId { get; set; }
Property Value
Type Description
System.Int32

ShapeCount

Declaration
public int ShapeCount { get; }
Property Value
Type Description
System.Int32

ShootOrigin

Declaration
public Vector3D ShootOrigin { get; }
Property Value
Type Description
Vector3D

ShowAiInfo

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

ShowAntennaGizmos

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

ShowCenterOfMass

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

ShowGravityGizmos

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

ShowGridPivot

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

ShowSenzorGizmos

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

SmallOwners

players that have at least one block in cube grid

Declaration
public List<long> SmallOwners { get; }
Property Value
Type Description
System.Collections.Generic.List<System.Int64>

Speed

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

SyncType

Declaration
public SyncType SyncType { get; set; }
Property Value
Type Description
VRage.Sync.SyncType

TrashHighlightCounter

Declaration
public int TrashHighlightCounter { get; }
Property Value
Type Description
System.Int32

UnsafeBlocks

Declaration
public HashSetReader<MyCubeBlock> UnsafeBlocks { get; }
Property Value
Type Description
HashSetReader<MyCubeBlock>

UpdateFlags

Declaration
public MyParallelUpdateFlags UpdateFlags { get; }
Property Value
Type Description
MyParallelUpdateFlags

UsesTargetingList

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

Methods

ActivatePhysics()

Declaration
public void ActivatePhysics()

AddDirtyBone(Vector3I, Vector3I)

Declaration
public void AddDirtyBone(Vector3I gridPosition, Vector3I boneOffset)
Parameters
Type Name Description
Vector3I gridPosition
Vector3I boneOffset

AnnounceRemoveSplit(List<MySlimBlock>)

Declaration
public void AnnounceRemoveSplit(List<MySlimBlock> blocks)
Parameters
Type Name Description
System.Collections.Generic.List<Sandbox.Game.Entities.Cube.MySlimBlock> blocks

ApplyDestructionDeformation(MySlimBlock, Single, Nullable<MyHitInfo>, Int64)

Declaration
public void ApplyDestructionDeformation(MySlimBlock block, float damage = 1F, Nullable<MyHitInfo> hitInfo = null, long attackerId = 0L)
Parameters
Type Name Description
Sandbox.Game.Entities.Cube.MySlimBlock block
System.Single damage
System.Nullable<MyHitInfo> hitInfo
System.Int64 attackerId

ApplyLastControls()

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

BeforeDelete()

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

BreakGridGroupLink(GridLinkTypeEnum, Int64, MyCubeGrid, MyCubeGrid)

Declaration
public static bool BreakGridGroupLink(GridLinkTypeEnum type, long linkId, MyCubeGrid parent, MyCubeGrid child)
Parameters
Type Name Description
GridLinkTypeEnum type
System.Int64 linkId
MyCubeGrid parent
MyCubeGrid child
Returns
Type Description
System.Boolean

BuildBlockRequestInternal(MyCubeGrid.MyBlockVisuals, MyCubeGrid.MyBlockLocation, MyObjectBuilder_CubeBlock, Int64, Boolean, Int64, UInt64, Boolean)

Declaration
public void BuildBlockRequestInternal(MyCubeGrid.MyBlockVisuals visuals, MyCubeGrid.MyBlockLocation location, MyObjectBuilder_CubeBlock blockObjectBuilder, long builderEntityId, bool instantBuild, long ownerId, ulong sender, bool isProjection = false)
Parameters
Type Name Description
MyCubeGrid.MyBlockVisuals visuals
MyCubeGrid.MyBlockLocation location
MyObjectBuilder_CubeBlock blockObjectBuilder
System.Int64 builderEntityId
System.Boolean instantBuild
System.Int64 ownerId
System.UInt64 sender
System.Boolean isProjection

BuildBlocks(ref MyCubeGrid.MyBlockBuildArea, Int64, Int64)

Network friendly alternative for building block

Declaration
public void BuildBlocks(ref MyCubeGrid.MyBlockBuildArea area, long builderEntityId, long ownerId)
Parameters
Type Name Description
MyCubeGrid.MyBlockBuildArea area
System.Int64 builderEntityId
System.Int64 ownerId

BuildBlocks(Vector3, MyStringHash, HashSet<MyCubeGrid.MyBlockLocation>, Int64, Int64)

Builds many same blocks, used when building lines or planes.

Declaration
public void BuildBlocks(Vector3 colorMaskHsv, MyStringHash skinId, HashSet<MyCubeGrid.MyBlockLocation> locations, long builderEntityId, long ownerId)
Parameters
Type Name Description
Vector3 colorMaskHsv
MyStringHash skinId
System.Collections.Generic.HashSet<MyCubeGrid.MyBlockLocation> locations
System.Int64 builderEntityId
System.Int64 ownerId

BuildBlocksClient(MyCubeGrid.MyBlockVisuals, HashSet<MyCubeGrid.MyBlockLocation>, Int64, Boolean, Int64)

Declaration
[Event(null, 4215)]
[Reliable]
[Broadcast]
public void BuildBlocksClient(MyCubeGrid.MyBlockVisuals visuals, HashSet<MyCubeGrid.MyBlockLocation> locations, long builderEntityId, bool instantBuild, long ownerId)
Parameters
Type Name Description
MyCubeGrid.MyBlockVisuals visuals
System.Collections.Generic.HashSet<MyCubeGrid.MyBlockLocation> locations
System.Int64 builderEntityId
System.Boolean instantBuild
System.Int64 ownerId

BuildBlocksFailedNotify()

Declaration
[Event(null, 4208)]
[Reliable]
[Client]
public void BuildBlocksFailedNotify()

BuildBlockSucess(MyCubeGrid.MyBlockVisuals, MyCubeGrid.MyBlockLocation, MyObjectBuilder_CubeBlock, Int64, Boolean, Int64)

Declaration
[Event(null, 4087)]
[Reliable]
[Broadcast]
public void BuildBlockSucess(MyCubeGrid.MyBlockVisuals visuals, MyCubeGrid.MyBlockLocation location, [DynamicObjectBuilder(false)] MyObjectBuilder_CubeBlock blockObjectBuilder, long builderEntityId, bool instantBuild, long ownerId)
Parameters
Type Name Description
MyCubeGrid.MyBlockVisuals visuals
MyCubeGrid.MyBlockLocation location
MyObjectBuilder_CubeBlock blockObjectBuilder
System.Int64 builderEntityId
System.Boolean instantBuild
System.Int64 ownerId

BuildGeneratedBlock(MyCubeGrid.MyBlockLocation, Vector3, MyStringHash)

Declaration
public MySlimBlock BuildGeneratedBlock(MyCubeGrid.MyBlockLocation location, Vector3 colorMaskHsv, MyStringHash skinId)
Parameters
Type Name Description
MyCubeGrid.MyBlockLocation location
Vector3 colorMaskHsv
MyStringHash skinId
Returns
Type Description
Sandbox.Game.Entities.Cube.MySlimBlock

CalculateMergeTransform(MyCubeGrid, Vector3I)

Declaration
public MatrixI CalculateMergeTransform(MyCubeGrid gridToMerge, Vector3I gridOffset)
Parameters
Type Name Description
MyCubeGrid gridToMerge
Vector3I gridOffset
Returns
Type Description
MatrixI

CanAddCube(Vector3I, Nullable<MyBlockOrientation>, MyCubeBlockDefinition, Boolean)

Declaration
public bool CanAddCube(Vector3I pos, Nullable<MyBlockOrientation> orientation, MyCubeBlockDefinition definition, bool ignoreSame = false)
Parameters
Type Name Description
Vector3I pos
System.Nullable<MyBlockOrientation> orientation
MyCubeBlockDefinition definition
System.Boolean ignoreSame
Returns
Type Description
System.Boolean

CanAddCubes(Vector3I, Vector3I)

Declaration
public bool CanAddCubes(Vector3I min, Vector3I max)
Parameters
Type Name Description
Vector3I min
Vector3I max
Returns
Type Description
System.Boolean

CanAddCubes(Vector3I, Vector3I, Nullable<MyBlockOrientation>, MyCubeBlockDefinition)

Declaration
public bool CanAddCubes(Vector3I min, Vector3I max, Nullable<MyBlockOrientation> orientation, MyCubeBlockDefinition definition)
Parameters
Type Name Description
Vector3I min
Vector3I max
System.Nullable<MyBlockOrientation> orientation
MyCubeBlockDefinition definition
Returns
Type Description
System.Boolean

CanAddOtherBlockInMultiBlock(Vector3I, Vector3I, MyBlockOrientation, MyCubeBlockDefinition, Nullable<Int32>)

Checks if the given block can be added to place where multiblock area (note that even if some parts of multiblock are destroyed then they still occupy - virtually - its place).

Declaration
public bool CanAddOtherBlockInMultiBlock(Vector3I min, Vector3I max, MyBlockOrientation orientation, MyCubeBlockDefinition definition, Nullable<int> ignoreMultiblockId)
Parameters
Type Name Description
Vector3I min
Vector3I max
MyBlockOrientation orientation
MyCubeBlockDefinition definition
System.Nullable<System.Int32> ignoreMultiblockId
Returns
Type Description
System.Boolean

CanBeTeleported(MyGridJumpDriveSystem, out MyGridJumpDriveSystem.MyJumpFailReason)

Declaration
public bool CanBeTeleported(MyGridJumpDriveSystem jumpingSystem, out MyGridJumpDriveSystem.MyJumpFailReason reason)
Parameters
Type Name Description
Sandbox.Game.GameSystems.MyGridJumpDriveSystem jumpingSystem
Sandbox.Game.GameSystems.MyGridJumpDriveSystem.MyJumpFailReason reason
Returns
Type Description
System.Boolean

CancelPendingTransferRequestsServerSide(Guid, Int64, Int64)

Declaration
[Event(null, 11932)]
[Reliable]
[Server]
public static void CancelPendingTransferRequestsServerSide(Guid requestBatchGuid, long gridId, long ownerId)
Parameters
Type Name Description
System.Guid requestBatchGuid
System.Int64 gridId
System.Int64 ownerId

CanHavePhysics()

Returns true when grid have at least one block which has physics (e.g. interior lights have no physics)

Declaration
public bool CanHavePhysics()
Returns
Type Description
System.Boolean

CanHavePhysics(List<MySlimBlock>, Int32, Int32)

Returns true when grid have at least one block which has physics (lights has no physics)

Declaration
public static bool CanHavePhysics(List<MySlimBlock> blocks, int offset, int count)
Parameters
Type Name Description
System.Collections.Generic.List<Sandbox.Game.Entities.Cube.MySlimBlock> blocks
System.Int32 offset
System.Int32 count
Returns
Type Description
System.Boolean

CanMergeCubes(MyCubeGrid, Vector3I)

Declaration
public bool CanMergeCubes(MyCubeGrid gridToMerge, Vector3I gridOffset)
Parameters
Type Name Description
MyCubeGrid gridToMerge
Vector3I gridOffset
Returns
Type Description
System.Boolean

CanPasteGrid()

Declaration
public static bool CanPasteGrid()
Returns
Type Description
System.Boolean

CanPlaceBlock(Vector3I, Vector3I, MyBlockOrientation, MyCubeBlockDefinition, UInt64, Nullable<Int32>, Boolean, Boolean)

Declaration
public bool CanPlaceBlock(Vector3I min, Vector3I max, MyBlockOrientation orientation, MyCubeBlockDefinition definition, ulong placingPlayer = 0UL, Nullable<int> ignoreMultiblockId = null, bool ignoreFracturedPieces = false, bool isProjection = false)
Parameters
Type Name Description
Vector3I min
Vector3I max
MyBlockOrientation orientation
MyCubeBlockDefinition definition
System.UInt64 placingPlayer
System.Nullable<System.Int32> ignoreMultiblockId
System.Boolean ignoreFracturedPieces
System.Boolean isProjection
Returns
Type Description
System.Boolean

CanPlaceBlock(Vector3I, Vector3I, MyBlockOrientation, MyCubeBlockDefinition, ref MyGridPlacementSettings, UInt64, Nullable<Int32>, Boolean, Boolean)

Declaration
public bool CanPlaceBlock(Vector3I min, Vector3I max, MyBlockOrientation orientation, MyCubeBlockDefinition definition, ref MyGridPlacementSettings gridSettings, ulong placingPlayer = 0UL, Nullable<int> ignoreMultiblockId = null, bool ignoreFracturedPieces = false, bool isProjection = false)
Parameters
Type Name Description
Vector3I min
Vector3I max
MyBlockOrientation orientation
MyCubeBlockDefinition definition
VRage.Game.ObjectBuilders.Definitions.SessionComponents.MyGridPlacementSettings gridSettings
System.UInt64 placingPlayer
System.Nullable<System.Int32> ignoreMultiblockId
System.Boolean ignoreFracturedPieces
System.Boolean isProjection
Returns
Type Description
System.Boolean

ChangeColorAndSkin(MySlimBlock, Nullable<Vector3>, Nullable<MyStringHash>)

Declaration
public bool ChangeColorAndSkin(MySlimBlock block, Nullable<Vector3> newHSV = null, Nullable<MyStringHash> skinSubtypeId = null)
Parameters
Type Name Description
Sandbox.Game.Entities.Cube.MySlimBlock block
System.Nullable<Vector3> newHSV
System.Nullable<MyStringHash> skinSubtypeId
Returns
Type Description
System.Boolean

ChangeDisplayNameRequest(String)

Declaration
public void ChangeDisplayNameRequest(string displayName)
Parameters
Type Name Description
System.String displayName

ChangeGridOwner(Int64, MyOwnershipShareModeEnum)

Declaration
public void ChangeGridOwner(long playerId, MyOwnershipShareModeEnum shareMode)
Parameters
Type Name Description
System.Int64 playerId
MyOwnershipShareModeEnum shareMode

ChangeGridOwnership(Int64, MyOwnershipShareModeEnum)

Declaration
public void ChangeGridOwnership(long playerId, MyOwnershipShareModeEnum shareMode)
Parameters
Type Name Description
System.Int64 playerId
MyOwnershipShareModeEnum shareMode

ChangeOwner(MyCubeBlock, Int64, Int64)

Declaration
public void ChangeOwner(MyCubeBlock block, long oldOwner, long newOwner)
Parameters
Type Name Description
MyCubeBlock block
System.Int64 oldOwner
System.Int64 newOwner

ChangeOwnerRequest(MyCubeGrid, MyCubeBlock, Int64, MyOwnershipShareModeEnum)

Declaration
public void ChangeOwnerRequest(MyCubeGrid grid, MyCubeBlock block, long playerId, MyOwnershipShareModeEnum shareMode)
Parameters
Type Name Description
MyCubeGrid grid
MyCubeBlock block
System.Int64 playerId
MyOwnershipShareModeEnum shareMode

ChangeOwnersRequest(MyOwnershipShareModeEnum, Dictionary<MyCubeGrid, List<MyCubeGrid.MySingleOwnershipRequest>>)

Declaration
public static void ChangeOwnersRequest(MyOwnershipShareModeEnum shareMode, Dictionary<MyCubeGrid, List<MyCubeGrid.MySingleOwnershipRequest>> requests)
Parameters
Type Name Description
MyOwnershipShareModeEnum shareMode
System.Collections.Generic.Dictionary<MyCubeGrid, System.Collections.Generic.List<MyCubeGrid.MySingleOwnershipRequest>> requests

ChangePowerProducerState(MyMultipleEnabledEnum, Boolean)

Declaration
public void ChangePowerProducerState(MyMultipleEnabledEnum enabledState, bool localGridOnly = false)
Parameters
Type Name Description
VRage.MyMultipleEnabledEnum enabledState
System.Boolean localGridOnly

ChangePowerProducerStateInternal(MyMultipleEnabledEnum, Int64, Boolean)

Declaration
public void ChangePowerProducerStateInternal(MyMultipleEnabledEnum enabledState, long identityId, bool localGridOnly = false)
Parameters
Type Name Description
VRage.MyMultipleEnabledEnum enabledState
System.Int64 identityId
System.Boolean localGridOnly

ChangeShareRequest(MyOwnershipShareModeEnum, Dictionary<MyCubeGrid, List<MyCubeGrid.MySingleOwnershipRequest>>)

Declaration
public static void ChangeShareRequest(MyOwnershipShareModeEnum shareMode, Dictionary<MyCubeGrid, List<MyCubeGrid.MySingleOwnershipRequest>> requests)
Parameters
Type Name Description
MyOwnershipShareModeEnum shareMode
System.Collections.Generic.Dictionary<MyCubeGrid, System.Collections.Generic.List<MyCubeGrid.MySingleOwnershipRequest>> requests

CheckAreaConnectivity(MyCubeGrid, ref MyCubeGrid.MyBlockBuildArea, List<Vector3UByte>, HashSet<Vector3UByte>)

Declaration
public static void CheckAreaConnectivity(MyCubeGrid grid, ref MyCubeGrid.MyBlockBuildArea area, List<Vector3UByte> validOffsets, HashSet<Vector3UByte> resultFailList)
Parameters
Type Name Description
MyCubeGrid grid
MyCubeGrid.MyBlockBuildArea area
System.Collections.Generic.List<Vector3UByte> validOffsets
System.Collections.Generic.HashSet<Vector3UByte> resultFailList

CheckConnectivity(IMyGridConnectivityTest, MyCubeBlockDefinition, MyCubeBlockDefinition.MountPoint[], ref Quaternion, ref Vector3I)

Performs check whether cube block given by its definition, rotation and position is connected to some other block in a given grid.

Declaration
public static bool CheckConnectivity(IMyGridConnectivityTest grid, MyCubeBlockDefinition def, MyCubeBlockDefinition.MountPoint[] mountPoints, ref Quaternion rotation, ref Vector3I position)
Parameters
Type Name Description
Sandbox.Game.Entities.Cube.IMyGridConnectivityTest grid

Grid in which the check is performed.

MyCubeBlockDefinition def
MyCubeBlockDefinition.MountPoint[] mountPoints
Quaternion rotation

Rotation of the cube block within grid.

Vector3I position

Position of the cube block within grid.

Returns
Type Description
System.Boolean

True when there is a connectable neighbor connected by a mount point, otherwise false.

CheckConnectivitySmallBlockToLargeGrid(MyCubeGrid, MyCubeBlockDefinition, ref Quaternion, ref Vector3I)

Performs check whether small cube block given by its definition, rotation can be connected to large grid. Function checks whether a mount point on placed block exists in opposite direction than addNomal.

Declaration
public static bool CheckConnectivitySmallBlockToLargeGrid(MyCubeGrid grid, MyCubeBlockDefinition def, ref Quaternion rotation, ref Vector3I addNormal)
Parameters
Type Name Description
MyCubeGrid grid

Grid in which the check is performed.

MyCubeBlockDefinition def

Definition of small cube block for checking.

Quaternion rotation

Rotation of the small cube block.

Vector3I addNormal

Grid hit normal.

Returns
Type Description
System.Boolean

True when small block can be connected, otherwise false.

CheckMergeConnectivity(MyCubeGrid, MyCubeGrid, Vector3I)

Declaration
public static bool CheckMergeConnectivity(MyCubeGrid hitGrid, MyCubeGrid gridToMerge, Vector3I gridOffset)
Parameters
Type Name Description
MyCubeGrid hitGrid
MyCubeGrid gridToMerge
Vector3I gridOffset
Returns
Type Description
System.Boolean

CheckMountPointsForSide(MyCubeBlockDefinition, MyCubeBlockDefinition.MountPoint[], ref MyBlockOrientation, ref Vector3I, ref Vector3I, MyCubeBlockDefinition, MyCubeBlockDefinition.MountPoint[], ref MyBlockOrientation, ref Vector3I)

Checkes whether blocks A and B have matching mount point on one of their sides. Each block is given by its definition, rotation and position in grid. Position has to be relative to same center. Also, normal relative to block A specifies wall which is used for checking.

Declaration
public static bool CheckMountPointsForSide(MyCubeBlockDefinition defA, MyCubeBlockDefinition.MountPoint[] mountPointsA, ref MyBlockOrientation orientationA, ref Vector3I positionA, ref Vector3I normalA, MyCubeBlockDefinition defB, MyCubeBlockDefinition.MountPoint[] mountPointsB, ref MyBlockOrientation orientationB, ref Vector3I positionB)
Parameters
Type Name Description
MyCubeBlockDefinition defA
MyCubeBlockDefinition.MountPoint[] mountPointsA
MyBlockOrientation orientationA
Vector3I positionA
Vector3I normalA
MyCubeBlockDefinition defB
MyCubeBlockDefinition.MountPoint[] mountPointsB
MyBlockOrientation orientationB
Vector3I positionB
Returns
Type Description
System.Boolean

CheckMountPointsForSide(List<MyCubeBlockDefinition.MountPoint>, ref MyBlockOrientation, ref Vector3I, MyDefinitionId, ref Vector3I, List<MyCubeBlockDefinition.MountPoint>, ref MyBlockOrientation, ref Vector3I, MyDefinitionId)

Checkes whether blocks A and B have matching mount point on one of their sides. Each block is given by its definition, rotation and position in grid. Position has to be relative to same center. Also, normal relative to block A specifies wall which is used for checking.

Declaration
public static bool CheckMountPointsForSide(List<MyCubeBlockDefinition.MountPoint> transormedA, ref MyBlockOrientation orientationA, ref Vector3I positionA, MyDefinitionId idA, ref Vector3I normalA, List<MyCubeBlockDefinition.MountPoint> transormedB, ref MyBlockOrientation orientationB, ref Vector3I positionB, MyDefinitionId idB)
Parameters
Type Name Description
System.Collections.Generic.List<MyCubeBlockDefinition.MountPoint> transormedA
MyBlockOrientation orientationA
Vector3I positionA
MyDefinitionId idA
Vector3I normalA
System.Collections.Generic.List<MyCubeBlockDefinition.MountPoint> transormedB
MyBlockOrientation orientationB
Vector3I positionB
MyDefinitionId idB
Returns
Type Description
System.Boolean

CheckNeighborMountPoints(Vector3, Vector3, MyCubeBlockDefinition.MountPoint, ref Vector3I, MyCubeBlockDefinition, Vector3I, MyCubeBlockDefinition, MyCubeBlockDefinition.MountPoint[], MyBlockOrientation, List<MyCubeBlockDefinition.MountPoint>)

Declaration
public static bool CheckNeighborMountPoints(Vector3 currentMin, Vector3 currentMax, MyCubeBlockDefinition.MountPoint thisMountPoint, ref Vector3I thisMountPointTransformedNormal, MyCubeBlockDefinition thisDefinition, Vector3I neighborPosition, MyCubeBlockDefinition neighborDefinition, MyCubeBlockDefinition.MountPoint[] neighborMountPoints, MyBlockOrientation neighborOrientation, List<MyCubeBlockDefinition.MountPoint> otherMountPoints)
Parameters
Type Name Description
Vector3 currentMin
Vector3 currentMax
MyCubeBlockDefinition.MountPoint thisMountPoint
Vector3I thisMountPointTransformedNormal
MyCubeBlockDefinition thisDefinition
Vector3I neighborPosition
MyCubeBlockDefinition neighborDefinition
MyCubeBlockDefinition.MountPoint[] neighborMountPoints
MyBlockOrientation neighborOrientation
System.Collections.Generic.List<MyCubeBlockDefinition.MountPoint> otherMountPoints
Returns
Type Description
System.Boolean

CheckNeighborMountPointsForCompound(Vector3, Vector3, MyCubeBlockDefinition.MountPoint, ref Vector3I, MyCubeBlockDefinition, Vector3I, MyCubeBlockDefinition, MyCubeBlockDefinition.MountPoint[], MyBlockOrientation, List<MyCubeBlockDefinition.MountPoint>)

Declaration
public static bool CheckNeighborMountPointsForCompound(Vector3 currentMin, Vector3 currentMax, MyCubeBlockDefinition.MountPoint thisMountPoint, ref Vector3I thisMountPointTransformedNormal, MyCubeBlockDefinition thisDefinition, Vector3I neighborPosition, MyCubeBlockDefinition neighborDefinition, MyCubeBlockDefinition.MountPoint[] neighborMountPoints, MyBlockOrientation neighborOrientation, List<MyCubeBlockDefinition.MountPoint> otherMountPoints)
Parameters
Type Name Description
Vector3 currentMin
Vector3 currentMax
MyCubeBlockDefinition.MountPoint thisMountPoint
Vector3I thisMountPointTransformedNormal
MyCubeBlockDefinition thisDefinition
Vector3I neighborPosition
MyCubeBlockDefinition neighborDefinition
MyCubeBlockDefinition.MountPoint[] neighborMountPoints
MyBlockOrientation neighborOrientation
System.Collections.Generic.List<MyCubeBlockDefinition.MountPoint> otherMountPoints
Returns
Type Description
System.Boolean

CheckPredictionFlagScheduling()

Declaration
public void CheckPredictionFlagScheduling()

ClearSymmetries()

Declaration
public void ClearSymmetries()

ClientPredictionStaticCheck()

Declaration
public void ClientPredictionStaticCheck()

ColorBlocks(Vector3I, Vector3I, Vector3, Boolean)

Color block in area. Verry slow.

Declaration
public void ColorBlocks(Vector3I min, Vector3I max, Vector3 newHSV, bool playSound)
Parameters
Type Name Description
Vector3I min
Vector3I max
Vector3 newHSV
System.Boolean playSound

ColorGrid(Vector3, Boolean)

Declaration
public void ColorGrid(Vector3 newHSV, bool playSound)
Parameters
Type Name Description
Vector3 newHSV
System.Boolean playSound

ColorGridOrBlockRequestValidation()

Declaration
public bool ColorGridOrBlockRequestValidation()
Returns
Type Description
System.Boolean

CompetetiveContainerOpened(Int64, Int32, Color)

Declaration
[Event(null, 12774)]
[Reliable]
[Server]
public void CompetetiveContainerOpened(long entityId, int time, Color color)
Parameters
Type Name Description
System.Int64 entityId
System.Int32 time
Color color

Components_ComponentAdded(Type, IMyEntityComponentBase)

Declaration
protected override void Components_ComponentAdded(Type t, IMyEntityComponentBase c)
Parameters
Type Name Description
System.Type t
VRage.Game.Components.Interfaces.IMyEntityComponentBase c
Overrides
MyEntity.Components_ComponentAdded(Type, IMyEntityComponentBase)

Components_ComponentRemoved(Type, IMyEntityComponentBase)

Declaration
protected override void Components_ComponentRemoved(Type t, IMyEntityComponentBase c)
Parameters
Type Name Description
System.Type t
VRage.Game.Components.Interfaces.IMyEntityComponentBase c
Overrides
MyEntity.Components_ComponentRemoved(Type, IMyEntityComponentBase)

ContainerOpened(Int64)

Declaration
[Event(null, 12766)]
[Reliable]
[Server]
public void ContainerOpened(long entityId)
Parameters
Type Name Description
System.Int64 entityId

ConvertFracturedBlocksToComponents()

Declaration
public void ConvertFracturedBlocksToComponents()

ConvertPrefabsToObjs()

Declaration
public static void ConvertPrefabsToObjs()

ConvertToStatic()

Conversion to Unsupported station. For generic conversion to static use physics component. Sets up the Unsupported station state.

Declaration
[Event(null, 6046)]
[Reliable]
[ServerInvoked]
[Broadcast]
public void ConvertToStatic()

CreateFracturedBlock(MyObjectBuilder_FracturedBlock, Vector3I)

Declaration
public MyFracturedBlock CreateFracturedBlock(MyObjectBuilder_FracturedBlock fracturedBlockBuilder, Vector3I position)
Parameters
Type Name Description
MyObjectBuilder_FracturedBlock fracturedBlockBuilder
Vector3I position
Returns
Type Description
Sandbox.Game.Entities.Cube.MyFracturedBlock

CreateGridGroupLink(GridLinkTypeEnum, Int64, MyCubeGrid, MyCubeGrid)

Declaration
public static void CreateGridGroupLink(GridLinkTypeEnum type, long linkId, MyCubeGrid parent, MyCubeGrid child)
Parameters
Type Name Description
GridLinkTypeEnum type
System.Int64 linkId
MyCubeGrid parent
MyCubeGrid child

CreateSplit(MyCubeGrid, List<MySlimBlock>, Boolean, Int64)

Declaration
public static MyCubeGrid CreateSplit(MyCubeGrid originalGrid, List<MySlimBlock> blocks, bool sync = true, long newEntityId = 0L)
Parameters
Type Name Description
MyCubeGrid originalGrid
System.Collections.Generic.List<Sandbox.Game.Entities.Cube.MySlimBlock> blocks
System.Boolean sync
System.Int64 newEntityId
Returns
Type Description
MyCubeGrid

CreateSplit_Implementation(List<Vector3I>, Int64)

Declaration
[Event(null, 1707)]
[Reliable]
[Broadcast]
public void CreateSplit_Implementation(List<Vector3I> blocks, long newEntityId)
Parameters
Type Name Description
System.Collections.Generic.List<Vector3I> blocks
System.Int64 newEntityId

CreateSplits(MyCubeGrid, List<MySlimBlock>, List<MyDisconnectHelper.Group>, MyCubeGrid.MyTestDisconnectsReason, Boolean)

SplitBlocks list can contain null when received from network

Declaration
public static void CreateSplits(MyCubeGrid originalGrid, List<MySlimBlock> splitBlocks, List<MyDisconnectHelper.Group> groups, MyCubeGrid.MyTestDisconnectsReason reason, bool sync = true)
Parameters
Type Name Description
MyCubeGrid originalGrid
System.Collections.Generic.List<Sandbox.Game.Entities.Cube.MySlimBlock> splitBlocks
System.Collections.Generic.List<Sandbox.Game.Entities.Cube.MyDisconnectHelper.Group> groups
MyCubeGrid.MyTestDisconnectsReason reason
System.Boolean sync

CreateSplits_Implementation(List<Vector3I>, List<MyDisconnectHelper.Group>)

Declaration
[Event(null, 1849)]
[Reliable]
[Broadcast]
public void CreateSplits_Implementation(List<Vector3I> blocks, List<MyDisconnectHelper.Group> groups)
Parameters
Type Name Description
System.Collections.Generic.List<Vector3I> blocks
System.Collections.Generic.List<Sandbox.Game.Entities.Cube.MyDisconnectHelper.Group> groups

CubeExists(Vector3I)

Declaration
public bool CubeExists(Vector3I pos)
Parameters
Type Name Description
Vector3I pos
Returns
Type Description
System.Boolean

DebugFormatMethodName(MethodInfo)

Declaration
public static string DebugFormatMethodName(MethodInfo method)
Parameters
Type Name Description
System.Reflection.MethodInfo method
Returns
Type Description
System.String

DepressurizeEffect(Vector3I, Vector3I)

Declaration
[Event(null, 12531)]
[Reliable]
[ServerInvoked]
[Broadcast]
public void DepressurizeEffect(Vector3I from, Vector3I to)
Parameters
Type Name Description
Vector3I from
Vector3I to

DepressurizeEffect_Implementation(Vector3I, Vector3I)

Declaration
public void DepressurizeEffect_Implementation(Vector3I from, Vector3I to)
Parameters
Type Name Description
Vector3I from
Vector3I to

DeSchedule(MyCubeGrid.UpdateQueue, Action)

Schedule an update.

Declaration
public void DeSchedule(MyCubeGrid.UpdateQueue queue, Action callback)
Parameters
Type Name Description
MyCubeGrid.UpdateQueue queue
System.Action callback

DeserializeControls(BitStream, Boolean)

Declaration
public override void DeserializeControls(BitStream stream, bool outOfOrder)
Parameters
Type Name Description
VRage.Library.Collections.BitStream stream
System.Boolean outOfOrder
Overrides
MyEntity.DeserializeControls(BitStream, Boolean)

DetectDisconnectsAfterFrame()

Declaration
public void DetectDisconnectsAfterFrame()

DetectMerge(MySlimBlock, MyCubeGrid, List<MyEntity>, Boolean)

Tries to merge this grid with any other grid Merges grids only when both are static Returns the merged grid (which does not necessarily have to be this grid)

Declaration
public MyCubeGrid DetectMerge(MySlimBlock block, MyCubeGrid ignore = null, List<MyEntity> nearEntities = null, bool newGrid = false)
Parameters
Type Name Description
Sandbox.Game.Entities.Cube.MySlimBlock block
MyCubeGrid ignore
System.Collections.Generic.List<MyEntity> nearEntities
System.Boolean newGrid
Returns
Type Description
MyCubeGrid

DismountAllCockpits()

Declaration
public void DismountAllCockpits()

DoDamage(Single, MyHitInfo, Nullable<Vector3>, Int64)

Declaration
public void DoDamage(float damage, MyHitInfo hitInfo, Nullable<Vector3> localPos = null, long attackerId = 0L)
Parameters
Type Name Description
System.Single damage
MyHitInfo hitInfo
System.Nullable<Vector3> localPos
System.Int64 attackerId

EnqueueDestroyedBlock(Vector3I)

Declaration
public void EnqueueDestroyedBlock(Vector3I position)
Parameters
Type Name Description
Vector3I position

EnqueueDestroyedBlockWithId(Vector3I, Nullable<UInt16>)

Declaration
public void EnqueueDestroyedBlockWithId(Vector3I position, Nullable<ushort> compoundId)
Parameters
Type Name Description
Vector3I position
System.Nullable<System.UInt16> compoundId

EnqueueDestructionDeformationBlock(Vector3I)

Declaration
public void EnqueueDestructionDeformationBlock(Vector3I position)
Parameters
Type Name Description
Vector3I position

EnqueueRemovedBlock(Vector3I)

Declaration
public void EnqueueRemovedBlock(Vector3I position)
Parameters
Type Name Description
Vector3I position

EnqueueRemovedBlockWithId(Vector3I, Nullable<UInt16>)

Server method, adds removed block with compound id into queue

Declaration
public void EnqueueRemovedBlockWithId(Vector3I position, Nullable<ushort> compoundId)
Parameters
Type Name Description
Vector3I position
System.Nullable<System.UInt16> compoundId

ExportObject(MyCubeGrid, Boolean, Boolean)

Declaration
public static void ExportObject(MyCubeGrid baseGrid, bool convertModelsFromSBC, bool exportObjAndSBC = false)
Parameters
Type Name Description
MyCubeGrid baseGrid
System.Boolean convertModelsFromSBC
System.Boolean exportObjAndSBC

FindBlocksBuiltByID(Int64)

Find all blocks built by a specific player..

Declaration
public HashSet<MySlimBlock> FindBlocksBuiltByID(long identityID)
Parameters
Type Name Description
System.Int64 identityID
Returns
Type Description
System.Collections.Generic.HashSet<Sandbox.Game.Entities.Cube.MySlimBlock>

FindBlocksBuiltByID(Int64, HashSet<MySlimBlock>)

Declaration
public HashSet<MySlimBlock> FindBlocksBuiltByID(long identityID, HashSet<MySlimBlock> builtBlocks)
Parameters
Type Name Description
System.Int64 identityID
System.Collections.Generic.HashSet<Sandbox.Game.Entities.Cube.MySlimBlock> builtBlocks
Returns
Type Description
System.Collections.Generic.HashSet<Sandbox.Game.Entities.Cube.MySlimBlock>

FixSkeleton(MySlimBlock, Boolean)

Declaration
public void FixSkeleton(MySlimBlock cubeBlock, bool simplePhysicsUpdateOnly = false)
Parameters
Type Name Description
Sandbox.Game.Entities.Cube.MySlimBlock cubeBlock
System.Boolean simplePhysicsUpdateOnly

FixTargetCube(out Vector3I, Vector3)

Iterate over all the neighbors of the cube and return when one of them exists.

Declaration
public void FixTargetCube(out Vector3I cube, Vector3 fractionalGridPosition)
Parameters
Type Name Description
Vector3I cube
Vector3 fractionalGridPosition

FixTargetCubeLite(out Vector3I, Vector3D)

Declaration
public void FixTargetCubeLite(out Vector3I cube, Vector3D fractionalGridPosition)
Parameters
Type Name Description
Vector3I cube
Vector3D fractionalGridPosition

GetArmorSkinItem(MyStringHash)

Declaration
public static MyGameInventoryItem GetArmorSkinItem(MyStringHash skinId)
Parameters
Type Name Description
MyStringHash skinId
Returns
Type Description
VRage.GameServices.MyGameInventoryItem

GetBiggestGridInGroup()

Returns biggest grid in physical group by AABB volume

Declaration
public MyCubeGrid GetBiggestGridInGroup()
Returns
Type Description
MyCubeGrid

GetBlocks()

Declaration
public HashSet<MySlimBlock> GetBlocks()
Returns
Type Description
System.Collections.Generic.HashSet<Sandbox.Game.Entities.Cube.MySlimBlock>

GetBlocksForTool(ref BoundingSphereD, HashSet<MySlimBlock>)

Declaration
public void GetBlocksForTool(ref BoundingSphereD sphere, HashSet<MySlimBlock> blocks)
Parameters
Type Name Description
BoundingSphereD sphere
System.Collections.Generic.HashSet<Sandbox.Game.Entities.Cube.MySlimBlock> blocks

GetBlocksInMultiBlock(Int32, HashSet<Tuple<MySlimBlock, Nullable<UInt16>>>)

Writes multiblocks (compound block and block ID) to outMultiBlocks collection with the same multiblockId.

Declaration
public void GetBlocksInMultiBlock(int multiBlockId, HashSet<Tuple<MySlimBlock, Nullable<ushort>>> outMultiBlocks)
Parameters
Type Name Description
System.Int32 multiBlockId
System.Collections.Generic.HashSet<System.Tuple<Sandbox.Game.Entities.Cube.MySlimBlock, System.Nullable<System.UInt16>>> outMultiBlocks

GetBlocksInsideSphere(ref BoundingSphereD, HashSet<MySlimBlock>, Boolean)

Declaration
public void GetBlocksInsideSphere(ref BoundingSphereD sphere, HashSet<MySlimBlock> blocks, bool checkTriangles = false)
Parameters
Type Name Description
BoundingSphereD sphere
System.Collections.Generic.HashSet<Sandbox.Game.Entities.Cube.MySlimBlock> blocks
System.Boolean checkTriangles

GetBlocksInsideSphereInternal(ref BoundingSphereD, HashSet<MySlimBlock>, MyCubeGrid.GridQueryAccuracy, Boolean, HashSet<Vector3I>)

Declaration
public void GetBlocksInsideSphereInternal(ref BoundingSphereD sphere, HashSet<MySlimBlock> blocks, MyCubeGrid.GridQueryAccuracy queryAccuracy, bool useOptimization = true, HashSet<Vector3I> visitedPositions = null)
Parameters
Type Name Description
BoundingSphereD sphere
System.Collections.Generic.HashSet<Sandbox.Game.Entities.Cube.MySlimBlock> blocks
MyCubeGrid.GridQueryAccuracy queryAccuracy
System.Boolean useOptimization
System.Collections.Generic.HashSet<Vector3I> visitedPositions

GetBlocksInsideSpheres(ref BoundingSphereD, ref BoundingSphereD, ref BoundingSphereD, HashSet<MySlimBlock>, HashSet<MySlimBlock>, HashSet<MySlimBlock>, Boolean, Single, ref MatrixD)

Optimized version where spheres are sorted from smallest to largest

Declaration
public void GetBlocksInsideSpheres(ref BoundingSphereD sphere1, ref BoundingSphereD sphere2, ref BoundingSphereD sphere3, HashSet<MySlimBlock> blocks1, HashSet<MySlimBlock> blocks2, HashSet<MySlimBlock> blocks3, bool respectDeformationRatio, float detectionBlockHalfSize, ref MatrixD invWorldGrid)
Parameters
Type Name Description
BoundingSphereD sphere1
BoundingSphereD sphere2
BoundingSphereD sphere3
System.Collections.Generic.HashSet<Sandbox.Game.Entities.Cube.MySlimBlock> blocks1
System.Collections.Generic.HashSet<Sandbox.Game.Entities.Cube.MySlimBlock> blocks2
System.Collections.Generic.HashSet<Sandbox.Game.Entities.Cube.MySlimBlock> blocks3
System.Boolean respectDeformationRatio
System.Single detectionBlockHalfSize
MatrixD invWorldGrid

GetBlocksIntersectingOBB(in BoundingBoxD, in MatrixD, List<MySlimBlock>)

Declaration
public void GetBlocksIntersectingOBB(in BoundingBoxD box, in MatrixD boxTransform, List<MySlimBlock> blocks)
Parameters
Type Name Description
BoundingBoxD box
MatrixD boxTransform
System.Collections.Generic.List<Sandbox.Game.Entities.Cube.MySlimBlock> blocks

GetClosestCorner(Vector3I, Vector3)

Returns cube corner which is closest to position

Declaration
public Vector3 GetClosestCorner(Vector3I gridPos, Vector3 position)
Parameters
Type Name Description
Vector3I gridPos
Vector3 position
Returns
Type Description
Vector3

GetConnectedGrids(GridLinkTypeEnum, Action<MyCubeGrid>)

Iterate over all grids connected to this grid

Declaration
public void GetConnectedGrids(GridLinkTypeEnum type, Action<MyCubeGrid> action)
Parameters
Type Name Description
GridLinkTypeEnum type

Type of connection

System.Action<MyCubeGrid> action

Action would be called per each connected grid

GetConnectedGrids(GridLinkTypeEnum, List<MyCubeGrid>)

Get all grids connected to this grid

Declaration
public List<MyCubeGrid> GetConnectedGrids(GridLinkTypeEnum type, List<MyCubeGrid> list = null)
Parameters
Type Name Description
GridLinkTypeEnum type

Type of connection

System.Collections.Generic.List<MyCubeGrid> list

Cache list, you can keep it null, then new List will be allocated

Returns
Type Description
System.Collections.Generic.List<MyCubeGrid>

GetCubeBlock(Vector3I)

Declaration
public MySlimBlock GetCubeBlock(Vector3I pos)
Parameters
Type Name Description
Vector3I pos
Returns
Type Description
Sandbox.Game.Entities.Cube.MySlimBlock

GetCubeBlock(Vector3I, Nullable<UInt16>)

Declaration
public MySlimBlock GetCubeBlock(Vector3I pos, Nullable<ushort> compoundId)
Parameters
Type Name Description
Vector3I pos
System.Nullable<System.UInt16> compoundId
Returns
Type Description
Sandbox.Game.Entities.Cube.MySlimBlock

GetCubeParts(MyCubeBlockDefinition, Vector3I, Matrix, Single, List<String>, List<MatrixD>, List<Vector3>, List<Vector4UByte>, Boolean)

Declaration
public static void GetCubeParts(MyCubeBlockDefinition block, Vector3I inputPosition, Matrix rotation, float gridSize, List<string> outModels, List<MatrixD> outLocalMatrices, List<Vector3> outLocalNormals, List<Vector4UByte> outPatternOffsets, bool topologyCheck)
Parameters
Type Name Description
MyCubeBlockDefinition block
Vector3I inputPosition
Matrix rotation
System.Single gridSize
System.Collections.Generic.List<System.String> outModels
System.Collections.Generic.List<MatrixD> outLocalMatrices
System.Collections.Generic.List<Vector3> outLocalNormals
System.Collections.Generic.List<Vector4UByte> outPatternOffsets
System.Boolean topologyCheck

GetCurrentMass(out Single, out Single, GridLinkTypeEnum)

Declaration
public float GetCurrentMass(out float baseMass, out float physicalMass, GridLinkTypeEnum linking)
Parameters
Type Name Description
System.Single baseMass
System.Single physicalMass
GridLinkTypeEnum linking
Returns
Type Description
System.Single

GetCurrentMass(GridLinkTypeEnum)

Declaration
public float GetCurrentMass(GridLinkTypeEnum linking)
Parameters
Type Name Description
GridLinkTypeEnum linking
Returns
Type Description
System.Single

GetDebugUpdateInfo(List<MyCubeGrid.DebugUpdateRecord>)

Get a debug friendly list of all scheduled update methods in this grid.

Declaration
public void GetDebugUpdateInfo(List<MyCubeGrid.DebugUpdateRecord> gridDebugUpdateInfo)
Parameters
Type Name Description
System.Collections.Generic.List<MyCubeGrid.DebugUpdateRecord> gridDebugUpdateInfo

GetExistingCubeForBoneDeformations(ref Vector3I, ref MyDamageInformation)

Declaration
public MySlimBlock GetExistingCubeForBoneDeformations(ref Vector3I cube, ref MyDamageInformation damageInfo)
Parameters
Type Name Description
Vector3I cube
MyDamageInformation damageInfo
Returns
Type Description
Sandbox.Game.Entities.Cube.MySlimBlock

GetExistingCubes(Vector3I, Vector3I, Dictionary<Vector3I, MySlimBlock>, Nullable<MyDamageInformation>)

Declaration
public void GetExistingCubes(Vector3I boneMin, Vector3I boneMax, Dictionary<Vector3I, MySlimBlock> resultSet, Nullable<MyDamageInformation> damageInfo = null)
Parameters
Type Name Description
Vector3I boneMin
Vector3I boneMax
System.Collections.Generic.Dictionary<Vector3I, Sandbox.Game.Entities.Cube.MySlimBlock> resultSet
System.Nullable<MyDamageInformation> damageInfo

GetFatBlockCount<T>()

Return how much fat blocks defined by T is pressent in grid.

Declaration
public int GetFatBlockCount<T>()
    where T : MyCubeBlock
Returns
Type Description
System.Int32
Type Parameters
Name Description
T

Type of Fatblock

GetFatBlocks()

Declaration
public ListReader<MyCubeBlock> GetFatBlocks()
Returns
Type Description
ListReader<MyCubeBlock>

GetFatBlocks<T>()

Declaration
public MyFatBlockReader<T> GetFatBlocks<T>()
    where T : MyCubeBlock
Returns
Type Description
Sandbox.Game.Entities.Cube.MyFatBlockReader<T>
Type Parameters
Name Description
T

GetFirstBlockOfType<T>()

Declaration
public T GetFirstBlockOfType<T>()
    where T : MyCubeBlock
Returns
Type Description
T
Type Parameters
Name Description
T

GetGridGroup(GridLinkTypeEnum)

Declaration
public IMyGridGroupData GetGridGroup(GridLinkTypeEnum linkTypeEnum)
Parameters
Type Name Description
GridLinkTypeEnum linkTypeEnum
Returns
Type Description
IMyGridGroupData

GetIntersectionWithLine(ref LineD, ref MyCubeGrid.MyCubeGridHitInfo, IntersectionFlags)

Declaration
public bool GetIntersectionWithLine(ref LineD line, ref MyCubeGrid.MyCubeGridHitInfo info, IntersectionFlags flags)
Parameters
Type Name Description
LineD line
MyCubeGrid.MyCubeGridHitInfo info
IntersectionFlags flags
Returns
Type Description
System.Boolean

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

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

GetIntersectionWithSphere(ref BoundingSphereD)

Declaration
public override bool GetIntersectionWithSphere(ref BoundingSphereD sphere)
Parameters
Type Name Description
BoundingSphereD sphere
Returns
Type Description
System.Boolean
Overrides
MyEntity.GetIntersectionWithSphere(ref BoundingSphereD)

GetLineIntersection(ref LineD, out MyCubeGrid, out Vector3I, out Double, Func<MyCubeGrid, Boolean>)

Declaration
public static bool GetLineIntersection(ref LineD line, out MyCubeGrid grid, out Vector3I position, out double distanceSquared, Func<MyCubeGrid, bool> condition = null)
Parameters
Type Name Description
LineD line
MyCubeGrid grid
Vector3I position
System.Double distanceSquared
System.Func<MyCubeGrid, System.Boolean> condition
Returns
Type Description
System.Boolean

GetLineIntersectionExact(ref LineD, out MyCubeGrid, out Vector3I, out Double)

Declaration
public static bool GetLineIntersectionExact(ref LineD line, out MyCubeGrid grid, out Vector3I position, out double distanceSquared)
Parameters
Type Name Description
LineD line
MyCubeGrid grid
Vector3I position
System.Double distanceSquared
Returns
Type Description
System.Boolean

GetLineIntersectionExactAll(ref LineD, out Double, out MySlimBlock)

Returns closest line (in world space) intersection with all cubes.

Declaration
public Nullable<Vector3D> GetLineIntersectionExactAll(ref LineD line, out double distance, out MySlimBlock intersectedBlock)
Parameters
Type Name Description
LineD line
System.Double distance
Sandbox.Game.Entities.Cube.MySlimBlock intersectedBlock
Returns
Type Description
System.Nullable<Vector3D>

GetLineIntersectionExactGrid(ref LineD, ref Vector3I, ref Double)

Declaration
public bool GetLineIntersectionExactGrid(ref LineD line, ref Vector3I position, ref double distanceSquared)
Parameters
Type Name Description
LineD line
Vector3I position
System.Double distanceSquared
Returns
Type Description
System.Boolean

GetLineIntersectionExactGrid(ref LineD, ref Vector3I, ref Double, Nullable<MyPhysics.HitInfo>)

Declaration
public bool GetLineIntersectionExactGrid(ref LineD line, ref Vector3I position, ref double distanceSquared, Nullable<MyPhysics.HitInfo> hitInfo)
Parameters
Type Name Description
LineD line
Vector3I position
System.Double distanceSquared
System.Nullable<Sandbox.Engine.Physics.MyPhysics.HitInfo> hitInfo
Returns
Type Description
System.Boolean

GetLineWidthForGizmo(IMyGizmoDrawableObject, BoundingBox)

Declaration
protected static float GetLineWidthForGizmo(IMyGizmoDrawableObject block, BoundingBox box)
Parameters
Type Name Description
IMyGizmoDrawableObject block
BoundingBox box
Returns
Type Description
System.Single

GetMaxThrustInDirection(Base6Directions.Direction)

Declaration
public float GetMaxThrustInDirection(Base6Directions.Direction direction)
Parameters
Type Name Description
Base6Directions.Direction direction
Returns
Type Description
System.Single

GetMultiBlockInfo(Int32)

Declaration
public MyCubeGridMultiBlockInfo GetMultiBlockInfo(int multiBlockId)
Parameters
Type Name Description
System.Int32 multiBlockId
Returns
Type Description
Sandbox.Game.Entities.Cube.MyCubeGridMultiBlockInfo

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)

GetOwnerLoginTimeSeconds()

Declaration
public float GetOwnerLoginTimeSeconds()
Returns
Type Description
System.Single

GetOwnerLogoutTimeSeconds()

Declaration
public float GetOwnerLogoutTimeSeconds()
Returns
Type Description
System.Single

GetPhysicalGroupAABB()

Declaration
public BoundingBoxD GetPhysicalGroupAABB()
Returns
Type Description
BoundingBoxD

GetShapesFromPosition(Vector3I)

Declaration
public List<HkShape> GetShapesFromPosition(Vector3I pos)
Parameters
Type Name Description
Vector3I pos
Returns
Type Description
System.Collections.Generic.List<Havok.HkShape>

GetTargetedBlock(Vector3D)

Declaration
public MySlimBlock GetTargetedBlock(Vector3D position)
Parameters
Type Name Description
Vector3D position

In world coordinates

Returns
Type Description
Sandbox.Game.Entities.Cube.MySlimBlock

GetTargetedBlockLite(Vector3D)

Declaration
public MySlimBlock GetTargetedBlockLite(Vector3D position)
Parameters
Type Name Description
Vector3D position

In world coordinates

Returns
Type Description
Sandbox.Game.Entities.Cube.MySlimBlock

GetTargetEntity()

Obtain entity that player is aiming/looking at.

Declaration
public static MyEntity GetTargetEntity()
Returns
Type Description
MyEntity

GetTargetGrid()

Obtain grid that player is aiming/looking at.

Declaration
public static MyCubeGrid GetTargetGrid()
Returns
Type Description
MyCubeGrid

GridIntegerToWorld(Single, Vector3I, MatrixD)

Declaration
public static Vector3D GridIntegerToWorld(float gridSize, Vector3I gridCoords, MatrixD worldMatrix)
Parameters
Type Name Description
System.Single gridSize
Vector3I gridCoords
MatrixD worldMatrix
Returns
Type Description
Vector3D

GridIntegerToWorld(Vector3D)

Declaration
public Vector3D GridIntegerToWorld(Vector3D gridCoords)
Parameters
Type Name Description
Vector3D gridCoords
Returns
Type Description
Vector3D

GridIntegerToWorld(Vector3I)

Declaration
public Vector3D GridIntegerToWorld(Vector3I gridCoords)
Parameters
Type Name Description
Vector3I gridCoords
Returns
Type Description
Vector3D

GunShooting()

Declaration
public void GunShooting()

HandleRemovalOfOwnershipTransferRequests()

Declaration
public static void HandleRemovalOfOwnershipTransferRequests()

HasMainCockpit()

Declaration
public bool HasMainCockpit()
Returns
Type Description
System.Boolean

HasMainRemoteControl()

Declaration
public bool HasMainRemoteControl()
Returns
Type Description
System.Boolean

HasStandAloneBlocks()

Returns true when grid have at least one stand alone block

Declaration
public bool HasStandAloneBlocks()
Returns
Type Description
System.Boolean

HasStandAloneBlocks(List<MySlimBlock>, Int32, Int32)

Returns true when grid have at least one stand alone block

Declaration
public static bool HasStandAloneBlocks(List<MySlimBlock> blocks, int offset, int count)
Parameters
Type Name Description
System.Collections.Generic.List<Sandbox.Game.Entities.Cube.MySlimBlock> blocks
System.Int32 offset
System.Int32 count
Returns
Type Description
System.Boolean

HierarchyUpdated(MyCubeGrid)

Declaration
public void HierarchyUpdated(MyCubeGrid root)
Parameters
Type Name Description
MyCubeGrid root

Init(MyObjectBuilder_EntityBase)

Declaration
public override void Init(MyObjectBuilder_EntityBase objectBuilder)
Parameters
Type Name Description
MyObjectBuilder_EntityBase objectBuilder
Overrides
MyEntity.Init(MyObjectBuilder_EntityBase)

InvokeDepressurizeEffect(Vector3I, Vector3I)

Declaration
public void InvokeDepressurizeEffect(Vector3I from, Vector3I to)
Parameters
Type Name Description
Vector3I from
Vector3I to

IsAabbInsideVoxel(MatrixD, BoundingBoxD, MyGridPlacementSettings)

Checks if aabb is in voxel. If settings provided it will return false if penetration settings allow for it.

Declaration
public static bool IsAabbInsideVoxel(MatrixD worldMatrix, BoundingBoxD localAabb, MyGridPlacementSettings settings)
Parameters
Type Name Description
MatrixD worldMatrix

World matrix of the aabb.

BoundingBoxD localAabb

Local aabb

VRage.Game.ObjectBuilders.Definitions.SessionComponents.MyGridPlacementSettings settings

Game settings

Returns
Type Description
System.Boolean

IsConnectedTo(MyCubeGrid, GridLinkTypeEnum)

Checks if 2 grids are connected

Declaration
public bool IsConnectedTo(MyCubeGrid testGrid, GridLinkTypeEnum type)
Parameters
Type Name Description
MyCubeGrid testGrid

Grid to test

GridLinkTypeEnum type

Type of connection

Returns
Type Description
System.Boolean

IsDirty()

Declaration
public bool IsDirty()
Returns
Type Description
System.Boolean

IsGizmoDrawingEnabled()

Declaration
public bool IsGizmoDrawingEnabled()
Returns
Type Description
System.Boolean

IsGridInCompleteState(MyCubeGrid)

Declaration
public static bool IsGridInCompleteState(MyCubeGrid grid)
Parameters
Type Name Description
MyCubeGrid grid
Returns
Type Description
System.Boolean

IsInSameLogicalGroupAs(IMyCubeGrid)

Declaration
public bool IsInSameLogicalGroupAs(IMyCubeGrid other)
Parameters
Type Name Description
IMyCubeGrid other
Returns
Type Description
System.Boolean

IsInVoxels(MySlimBlock, Boolean, Boolean)

Declaration
public static bool IsInVoxels(MySlimBlock block, bool checkForPhysics = true, bool isVolumetric = false)
Parameters
Type Name Description
Sandbox.Game.Entities.Cube.MySlimBlock block
System.Boolean checkForPhysics
System.Boolean isVolumetric
Returns
Type Description
System.Boolean

IsMainCockpit(MyTerminalBlock)

Declaration
public bool IsMainCockpit(MyTerminalBlock cockpit)
Parameters
Type Name Description
Sandbox.Game.Entities.Cube.MyTerminalBlock cockpit
Returns
Type Description
System.Boolean

IsMainRemoteControl(MyTerminalBlock)

Declaration
public bool IsMainRemoteControl(MyTerminalBlock remoteControl)
Parameters
Type Name Description
Sandbox.Game.Entities.Cube.MyTerminalBlock remoteControl
Returns
Type Description
System.Boolean

IsRoomAtPositionAirtight(Vector3I)

Declaration
public bool IsRoomAtPositionAirtight(Vector3I pos)
Parameters
Type Name Description
Vector3I pos
Returns
Type Description
System.Boolean

IsSameConstructAs(IMyCubeGrid)

Declaration
public bool IsSameConstructAs(IMyCubeGrid other)
Parameters
Type Name Description
IMyCubeGrid other
Returns
Type Description
System.Boolean

IsTouchingAnyNeighbor(Vector3I, Vector3I)

Declaration
public bool IsTouchingAnyNeighbor(Vector3I min, Vector3I max)
Parameters
Type Name Description
Vector3I min
Vector3I max
Returns
Type Description
System.Boolean

JumpWithWheels(Boolean)

Declaration
public void JumpWithWheels(bool initiate)
Parameters
Type Name Description
System.Boolean initiate

KillAllCharacters(MyCubeGrid, Boolean)

Declaration
public static void KillAllCharacters(MyCubeGrid grid, bool removePilot = true)
Parameters
Type Name Description
MyCubeGrid grid
System.Boolean removePilot

LocalToGridInteger(Vector3)

Declaration
public Vector3I LocalToGridInteger(Vector3 localCoords)
Parameters
Type Name Description
Vector3 localCoords
Returns
Type Description
Vector3I

LogHierarchy()

Declaration
public void LogHierarchy()

MarkAsTrash()

Declaration
public void MarkAsTrash()

MechanicalConnectionBlockAttachUpdateStatusChanged(MyMechanicalConnectionBlockBase)

Declaration
public void MechanicalConnectionBlockAttachUpdateStatusChanged(MyMechanicalConnectionBlockBase mechConBlock)
Parameters
Type Name Description
Sandbox.Game.Entities.Blocks.MyMechanicalConnectionBlockBase mechConBlock

MergeGrid_MergeBlock(MyCubeGrid, Vector3I, Boolean)

Called from MergeBlock to initialte merge of two grids

Declaration
public MyCubeGrid MergeGrid_MergeBlock(MyCubeGrid gridToMerge, Vector3I gridOffset, bool checkMergeOrder = true)
Parameters
Type Name Description
MyCubeGrid gridToMerge
Vector3I gridOffset
System.Boolean checkMergeOrder
Returns
Type Description
MyCubeGrid

ModifyGroup(MyBlockGroup)

Declaration
public void ModifyGroup(MyBlockGroup group)
Parameters
Type Name Description
Sandbox.Game.GameSystems.MyBlockGroup group

MultiplyBlockSkeleton(MySlimBlock, Single, Boolean)

Declaration
public void MultiplyBlockSkeleton(MySlimBlock block, float factor, bool updateSync = false)
Parameters
Type Name Description
Sandbox.Game.Entities.Cube.MySlimBlock block
System.Single factor
System.Boolean updateSync

OnAddedToScene(Object)

Declaration
public override void OnAddedToScene(object source)
Parameters
Type Name Description
System.Object source
Overrides
MyEntity.OnAddedToScene(Object)

OnChangeOwnersRequestConfirmation(Guid, Int64, Boolean)

Declaration
[Event(null, 11894)]
[Reliable]
[Server]
public static void OnChangeOwnersRequestConfirmation(Guid requestBatchGuid, long gridId, bool confirmation)
Parameters
Type Name Description
System.Guid requestBatchGuid
System.Int64 gridId
System.Boolean confirmation

OnClosedMessageBox(MyGuiScreenMessageBox.ResultEnum)

Declaration
public void OnClosedMessageBox(MyGuiScreenMessageBox.ResultEnum result)
Parameters
Type Name Description
Sandbox.Graphics.GUI.MyGuiScreenMessageBox.ResultEnum result

OnConvertedToStationRequest()

Declaration
[Event(null, 11181)]
[Reliable]
[Server]
public void OnConvertedToStationRequest()

OnConvertToDynamic()

Conversion from Unsupported station. For generic conversion to dynamic use physics component. Sets up the Unsupported station state.

Declaration
[Event(null, 6011)]
[Reliable]
[ServerInvoked]
[Broadcast]
public void OnConvertToDynamic()

OnGridPresenceUpdate(Boolean)

Declaration
public void OnGridPresenceUpdate(bool isAnyGridPresent)
Parameters
Type Name Description
System.Boolean isAnyGridPresent

OnIntegrityChanged(MySlimBlock, Boolean)

Declaration
public void OnIntegrityChanged(MySlimBlock block, bool handWelded)
Parameters
Type Name Description
Sandbox.Game.Entities.Cube.MySlimBlock block
System.Boolean handWelded

OnLogHierarchy()

Declaration
[Event(null, 12520)]
[Reliable]
[Server]
public void OnLogHierarchy()

OnRemovedFromScene(Object)

Declaration
public override void OnRemovedFromScene(object source)
Parameters
Type Name Description
System.Object source
Overrides
MyEntity.OnRemovedFromScene(Object)

OnReplicationEnded()

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

OnReplicationStarted()

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

OnTerminalOpened()

Declaration
public void OnTerminalOpened()

PackFiles(String, String)

Declaration
public static void PackFiles(string path, string objectName)
Parameters
Type Name Description
System.String path
System.String objectName

PasteBlocksToGrid(List<MyObjectBuilder_CubeGrid>, Int64, Boolean, Boolean, List<UInt64>)

Declaration
public void PasteBlocksToGrid(List<MyObjectBuilder_CubeGrid> gridsToMerge, long inventoryEntityId, bool multiBlock, bool instantBuild, [Nullable] List<ulong> clientDLCIDs = null)
Parameters
Type Name Description
System.Collections.Generic.List<MyObjectBuilder_CubeGrid> gridsToMerge
System.Int64 inventoryEntityId
System.Boolean multiBlock
System.Boolean instantBuild
System.Collections.Generic.List<System.UInt64> clientDLCIDs

PlacePrefabsToWorld()

Declaration
public static void PlacePrefabsToWorld()

PlacePrefabToWorld(MyObjectBuilder_CubeGrid[], Vector3D, List<MyCubeGrid>)

Declaration
public static void PlacePrefabToWorld(MyObjectBuilder_CubeGrid[] currentPrefab, Vector3D position, List<MyCubeGrid> createdGrids = null)
Parameters
Type Name Description
MyObjectBuilder_CubeGrid[] currentPrefab
Vector3D position
System.Collections.Generic.List<MyCubeGrid> createdGrids

Players_PlayerRemoved(MyPlayer.PlayerId)

Declaration
public static void Players_PlayerRemoved(MyPlayer.PlayerId obj)
Parameters
Type Name Description
Sandbox.Game.World.MyPlayer.PlayerId obj

PlayParticleBroadcast(String, Boolean)

Declaration
[Event(null, 12702)]
[Reliable]
[ServerInvoked]
[Broadcast]
public void PlayParticleBroadcast(string particleName, bool smoke)
Parameters
Type Name Description
System.String particleName
System.Boolean smoke

Preload()

Declaration
public static void Preload()

PrepareForDraw()

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

PrepareMultiBlockInfos()

Declaration
public void PrepareMultiBlockInfos()

RaiseGridChanged()

Declaration
public void RaiseGridChanged()

RaisePhysicsChanged()

Declaration
public void RaisePhysicsChanged()

RayCastBlocks(Vector3D, Vector3D)

Obtains position of first hit block.

Declaration
public Nullable<Vector3I> RayCastBlocks(Vector3D worldStart, Vector3D worldEnd)
Parameters
Type Name Description
Vector3D worldStart
Vector3D worldEnd
Returns
Type Description
System.Nullable<Vector3I>

RayCastCells(Vector3D, Vector3D, List<Vector3I>, Nullable<Vector3I>, Boolean, Boolean)

Obtains positions of grid cells regardless of whether these cells are taken up by blocks or not.

Declaration
public void RayCastCells(Vector3D worldStart, Vector3D worldEnd, List<Vector3I> outHitPositions, Nullable<Vector3I> gridSizeInflate = null, bool havokWorld = false, bool clearOutHitPositions = true)
Parameters
Type Name Description
Vector3D worldStart
Vector3D worldEnd
System.Collections.Generic.List<Vector3I> outHitPositions
System.Nullable<Vector3I> gridSizeInflate
System.Boolean havokWorld
System.Boolean clearOutHitPositions

RayCastStaticCells(Vector3D, Vector3D, List<Vector3I>, Single, Nullable<Vector3I>, Boolean)

Obtains positions of static grid cells regardless of whether these cells are taken up by blocks or not. Usefull when placing block on voxel.

Declaration
public static void RayCastStaticCells(Vector3D worldStart, Vector3D worldEnd, List<Vector3I> outHitPositions, float gridSize, Nullable<Vector3I> gridSizeInflate = null, bool havokWorld = false)
Parameters
Type Name Description
Vector3D worldStart
Vector3D worldEnd
System.Collections.Generic.List<Vector3I> outHitPositions
System.Single gridSize
System.Nullable<Vector3I> gridSizeInflate
System.Boolean havokWorld

RazeBlock(Vector3I, UInt64)

user is used only if called on server, when called from client, sender steam id will be used

Declaration
public void RazeBlock(Vector3I position, ulong user = 0UL)
Parameters
Type Name Description
Vector3I position
System.UInt64 user

RazeBlockInCompoundBlock(List<Tuple<Vector3I, UInt16>>)

Declaration
public void RazeBlockInCompoundBlock(List<Tuple<Vector3I, ushort>> locationsAndIds)
Parameters
Type Name Description
System.Collections.Generic.List<System.Tuple<Vector3I, System.UInt16>> locationsAndIds

RazeBlocks(List<Vector3I>, Int64, UInt64)

Razes blocks (unbuild) user is used only if locally invoked, if invoked from client, sender steam id is used

Declaration
public void RazeBlocks(List<Vector3I> locations, long builderEntityId = 0L, ulong user = 0UL)
Parameters
Type Name Description
System.Collections.Generic.List<Vector3I> locations
System.Int64 builderEntityId
System.UInt64 user

RazeBlocks(ref Vector3I, ref Vector3UByte, Int64)

Declaration
public void RazeBlocks(ref Vector3I pos, ref Vector3UByte size, long builderEntityId = 0L)
Parameters
Type Name Description
Vector3I pos
Vector3UByte size
System.Int64 builderEntityId

RazeBlocksClient(List<Vector3I>)

Declaration
[Event(null, 4903)]
[Reliable]
[Broadcast]
public void RazeBlocksClient(List<Vector3I> locations)
Parameters
Type Name Description
System.Collections.Generic.List<Vector3I> locations

RazeBlocksDelayed(ref Vector3I, ref Vector3UByte, Int64)

Declaration
public void RazeBlocksDelayed(ref Vector3I pos, ref Vector3UByte size, long builderEntityId)
Parameters
Type Name Description
Vector3I pos
Vector3UByte size
System.Int64 builderEntityId

RazeBlocksRequest(List<Vector3I>, Int64, UInt64)

user is used only if locally invoked, if invoked from client, sender steam id is used

Declaration
[Event(null, 4871)]
[Reliable]
[Server]
public void RazeBlocksRequest(List<Vector3I> locations, long builderEntityId = 0L, ulong user = 0UL)
Parameters
Type Name Description
System.Collections.Generic.List<Vector3I> locations
System.Int64 builderEntityId
System.UInt64 user

RazeGeneratedBlocks(List<MySlimBlock>)

Declaration
public void RazeGeneratedBlocks(List<MySlimBlock> generatedBlocks)
Parameters
Type Name Description
System.Collections.Generic.List<Sandbox.Game.Entities.Cube.MySlimBlock> generatedBlocks

RazeGeneratedBlocks(List<Vector3I>)

Declaration
public void RazeGeneratedBlocks(List<Vector3I> locations)
Parameters
Type Name Description
System.Collections.Generic.List<Vector3I> locations

RazeGeneratedBlocksInCompoundBlock(List<Tuple<Vector3I, UInt16>>)

Declaration
public void RazeGeneratedBlocksInCompoundBlock(List<Tuple<Vector3I, ushort>> locationsAndIds)
Parameters
Type Name Description
System.Collections.Generic.List<System.Tuple<Vector3I, System.UInt16>> locationsAndIds

RecalculateGravity()

Declaration
public void RecalculateGravity()

RecalculateOwners()

Declaration
public void RecalculateOwners()

ReceiveHandbrakeRequestResult(MyCubeGrid.HandbrakeToggleResult, String)

Declaration
[Event(null, 11289)]
[Reliable]
[Client]
public void ReceiveHandbrakeRequestResult(MyCubeGrid.HandbrakeToggleResult result, string message)
Parameters
Type Name Description
MyCubeGrid.HandbrakeToggleResult result
System.String message

ReceiveParkRequestResult(MyCubeGrid.HandbrakeToggleResult, String)

Declaration
[Event(null, 11343)]
[Reliable]
[Client]
public void ReceiveParkRequestResult(MyCubeGrid.HandbrakeToggleResult result, string message)
Parameters
Type Name Description
MyCubeGrid.HandbrakeToggleResult result
System.String message

RegisterDecoy(MyDecoy)

Declaration
public void RegisterDecoy(MyDecoy block)
Parameters
Type Name Description
Sandbox.Game.Entities.Blocks.MyDecoy block

RegisterInventory(MyCubeBlock)

Declaration
public void RegisterInventory(MyCubeBlock block)
Parameters
Type Name Description
MyCubeBlock block

RegisterOccupiedBlock(MyCockpit)

Declaration
public void RegisterOccupiedBlock(MyCockpit block)
Parameters
Type Name Description
MyCockpit block

RegisterUnsafeBlock(MyCubeBlock)

Declaration
public void RegisterUnsafeBlock(MyCubeBlock block)
Parameters
Type Name Description
MyCubeBlock block

RemoveBlock(MySlimBlock, Boolean)

Declaration
public void RemoveBlock(MySlimBlock block, bool updatePhysics = false)
Parameters
Type Name Description
Sandbox.Game.Entities.Cube.MySlimBlock block
System.Boolean updatePhysics

RemoveBlocksBuiltByIDs(List<Int64>)

Remove all blocks from the grid built by specific player

Declaration
[Event(null, 3972)]
[Reliable]
[ServerInvoked]
[Broadcast]
public void RemoveBlocksBuiltByIDs(List<long> identityIDs)
Parameters
Type Name Description
System.Collections.Generic.List<System.Int64> identityIDs

RemoveBlockWithId(MySlimBlock, Boolean)

Declaration
public void RemoveBlockWithId(MySlimBlock block, bool updatePhysics = false)
Parameters
Type Name Description
Sandbox.Game.Entities.Cube.MySlimBlock block
System.Boolean updatePhysics

RemoveBlockWithId(Vector3I, Nullable<UInt16>, Boolean)

Declaration
public void RemoveBlockWithId(Vector3I position, Nullable<ushort> compoundId, bool updatePhysics = false)
Parameters
Type Name Description
Vector3I position
System.Nullable<System.UInt16> compoundId
System.Boolean updatePhysics

RemoveContainerDropComponent(Int64)

Declaration
[Event(null, 12726)]
[Reliable]
[ServerInvoked]
[Broadcast]
public void RemoveContainerDropComponent(long blockId)
Parameters
Type Name Description
System.Int64 blockId

RemoveDestroyedBlock(MySlimBlock, Int64)

Removes destroyed block, applies damage and deformation to close blocks Won't update physics!

Declaration
public void RemoveDestroyedBlock(MySlimBlock block, long attackerId = 0L)
Parameters
Type Name Description
Sandbox.Game.Entities.Cube.MySlimBlock block
System.Int64 attackerId

RemoveNPCBlocks()

Declaration
public void RemoveNPCBlocks()

RemoveSplit(MyCubeGrid, List<MySlimBlock>, Int32, Int32, Boolean)

Declaration
public static void RemoveSplit(MyCubeGrid originalGrid, List<MySlimBlock> blocks, int offset, int count, bool sync = true)
Parameters
Type Name Description
MyCubeGrid originalGrid
System.Collections.Generic.List<Sandbox.Game.Entities.Cube.MySlimBlock> blocks
System.Int32 offset
System.Int32 count
System.Boolean sync

RequestConversionToShip(Action)

Declaration
public void RequestConversionToShip(Action result)
Parameters
Type Name Description
System.Action result

RequestConversionToStation()

Declaration
public void RequestConversionToStation()

RequestFillStockpile(Vector3I, MyInventory)

Declaration
public void RequestFillStockpile(Vector3I blockPosition, MyInventory fromInventory)
Parameters
Type Name Description
Vector3I blockPosition
MyInventory fromInventory

RequestJump(Vector3D, Int64, Single, Nullable<Int64>)

Declaration
public void RequestJump(Vector3D jumpTarget, long userId, float jumpDriveDelay = 10F, Nullable<long> driveEntityId = null)
Parameters
Type Name Description
Vector3D jumpTarget
System.Int64 userId
System.Single jumpDriveDelay
System.Nullable<System.Int64> driveEntityId

ResetBlockSkeleton(MySlimBlock, Boolean)

Declaration
public void ResetBlockSkeleton(MySlimBlock block, bool updateSync = false)
Parameters
Type Name Description
Sandbox.Game.Entities.Cube.MySlimBlock block
System.Boolean updateSync

ResetControls()

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

ResetInfoGizmos()

Declaration
public static void ResetInfoGizmos()

Schedule(MyCubeGrid.UpdateQueue, Action, Int32, Boolean)

Remove a scheduled update.

Declaration
public void Schedule(MyCubeGrid.UpdateQueue queue, Action callback, int priority = 2147483647, bool parallel = false)
Parameters
Type Name Description
MyCubeGrid.UpdateQueue queue
System.Action callback
System.Int32 priority
System.Boolean parallel

SendAbortJump()

Declaration
public void SendAbortJump()

SendFractureComponentRepaired(MySlimBlock, Int64)

Declaration
public void SendFractureComponentRepaired(MySlimBlock mySlimBlock, long toolOwner)
Parameters
Type Name Description
Sandbox.Game.Entities.Cube.MySlimBlock mySlimBlock
System.Int64 toolOwner

SendGridCloseRequest()

Use only for cut request

Declaration
public void SendGridCloseRequest()

SendHudNotificationAfterPaste()

Declaration
[Event(null, 10857)]
[Reliable]
[Client]
public static void SendHudNotificationAfterPaste()

SendIntegrityChanged(MySlimBlock, MyIntegrityChangeEnum, Int64)

Declaration
public void SendIntegrityChanged(MySlimBlock mySlimBlock, MyIntegrityChangeEnum integrityChangeType, long toolOwner)
Parameters
Type Name Description
Sandbox.Game.Entities.Cube.MySlimBlock mySlimBlock
MyIntegrityChangeEnum integrityChangeType
System.Int64 toolOwner

SendReflectorState(MyMultipleEnabledEnum)

Declaration
public void SendReflectorState(MyMultipleEnabledEnum value)
Parameters
Type Name Description
VRage.MyMultipleEnabledEnum value

SendRemovedBlocks()

Declaration
public void SendRemovedBlocks()

SendRemovedBlocksWithIds()

Declaration
public void SendRemovedBlocksWithIds()

SendStockpileChanged(MySlimBlock, List<MyStockpileItem>)

Declaration
public void SendStockpileChanged(MySlimBlock mySlimBlock, List<MyStockpileItem> list)
Parameters
Type Name Description
Sandbox.Game.Entities.Cube.MySlimBlock mySlimBlock
System.Collections.Generic.List<MyStockpileItem> list

SerializeControls(BitStream)

Declaration
public override void SerializeControls(BitStream stream)
Parameters
Type Name Description
VRage.Library.Collections.BitStream stream
Overrides
MyEntity.SerializeControls(BitStream)

SetBlockDirty(MySlimBlock)

Declaration
public void SetBlockDirty(MySlimBlock cubeBlock)
Parameters
Type Name Description
Sandbox.Game.Entities.Cube.MySlimBlock cubeBlock

SetCubeDirty(Vector3I)

Declaration
public void SetCubeDirty(Vector3I pos)
Parameters
Type Name Description
Vector3I pos

SetMainCockpit(MyTerminalBlock)

Declaration
public void SetMainCockpit(MyTerminalBlock cockpit)
Parameters
Type Name Description
Sandbox.Game.Entities.Cube.MyTerminalBlock cockpit

SetMainRemoteControl(MyTerminalBlock)

Declaration
public void SetMainRemoteControl(MyTerminalBlock remoteControl)
Parameters
Type Name Description
Sandbox.Game.Entities.Cube.MyTerminalBlock remoteControl

SetSolarOcclusion(Boolean)

Declaration
public void SetSolarOcclusion(bool isOccluded)
Parameters
Type Name Description
System.Boolean isOccluded

ShowMessageGridsRemovedWhilePasting()

Declaration
[Event(null, 1893)]
[Reliable]
[Client]
public static void ShowMessageGridsRemovedWhilePasting()

ShowMessageGridsRemovedWhilePastingInternal()

Declaration
public static void ShowMessageGridsRemovedWhilePastingInternal()

ShowPasteFailedOperation()

Declaration
[Event(null, 10851)]
[Reliable]
[Client]
public static void ShowPasteFailedOperation()

SkinBlocks(Vector3I, Vector3I, Nullable<Vector3>, Nullable<MyStringHash>, Boolean)

Skin block in area. Verry slow.

Declaration
public void SkinBlocks(Vector3I min, Vector3I max, Nullable<Vector3> newHSV, Nullable<MyStringHash> newSkin, bool playSound)
Parameters
Type Name Description
Vector3I min
Vector3I max
System.Nullable<Vector3> newHSV
System.Nullable<MyStringHash> newSkin
System.Boolean playSound

SkinGrid(Vector3, MyStringHash, Boolean, Boolean, Boolean)

Declaration
public void SkinGrid(Vector3 newHSV, MyStringHash newSkin, bool playSound, bool applyColor, bool applySkin)
Parameters
Type Name Description
Vector3 newHSV
MyStringHash newSkin
System.Boolean playSound
System.Boolean applyColor
System.Boolean applySkin

SplitByPlane(PlaneD)

Declaration
public MyCubeGrid SplitByPlane(PlaneD plane)
Parameters
Type Name Description
PlaneD plane
Returns
Type Description
MyCubeGrid

StartConverting(Boolean)

Declaration
public static void StartConverting(bool placeOnly)
Parameters
Type Name Description
System.Boolean placeOnly

StartReplay()

Declaration
public void StartReplay()

StaticGlobalGrid_UGToWorld(Vector3D, Single, Boolean)

Converts static global uniform grid coordinate to world coordinate. Grid size is already used inside calculation.

Declaration
public static Vector3D StaticGlobalGrid_UGToWorld(Vector3D ugPos, float gridSize, bool staticGridAlignToCenter)
Parameters
Type Name Description
Vector3D ugPos
System.Single gridSize
System.Boolean staticGridAlignToCenter
Returns
Type Description
Vector3D

StaticGlobalGrid_WorldToUG(Vector3D, Single, Boolean)

Converts world coordinate to static global grid uniform coordinate (virtual large grid in whole world which every large grid is snapped to). Grid size is already used inside calculation.

Declaration
public static Vector3D StaticGlobalGrid_WorldToUG(Vector3D worldPos, float gridSize, bool staticGridAlignToCenter)
Parameters
Type Name Description
Vector3D worldPos
System.Single gridSize
System.Boolean staticGridAlignToCenter
Returns
Type Description
Vector3D

StaticGlobalGrid_WorldToUGInt(Vector3D, Single, Boolean)

Converts world coordinate to static global grid uniform coordinate (virtual large grid in whole world which every large grid is snapped to). Grid size is already used inside calculation.

Declaration
public static Vector3I StaticGlobalGrid_WorldToUGInt(Vector3D worldPos, float gridSize, bool staticGridAlignToCenter)
Parameters
Type Name Description
Vector3D worldPos
System.Single gridSize
System.Boolean staticGridAlignToCenter
Returns
Type Description
Vector3I

StopReplay()

Declaration
public void StopReplay()

StopSmoke()

Declaration
[Event(null, 12750)]
[Reliable]
[ServerInvoked]
[Broadcast]
public void StopSmoke()

SwitchPower()

Declaration
public bool SwitchPower()
Returns
Type Description
System.Boolean

TargetingAddId(Int64)

Declaration
public void TargetingAddId(long id)
Parameters
Type Name Description
System.Int64 id

TargetingCanAttackGrid(Int64)

Declaration
public bool TargetingCanAttackGrid(long id)
Parameters
Type Name Description
System.Int64 id
Returns
Type Description
System.Boolean

TargetingRemoveId(Int64)

Declaration
public void TargetingRemoveId(long id)
Parameters
Type Name Description
System.Int64 id

TargetingSetWhitelist(Boolean)

Declaration
public void TargetingSetWhitelist(bool whitelist)
Parameters
Type Name Description
System.Boolean whitelist

Teleport(MatrixD, Object, Boolean)

Declaration
public override void Teleport(MatrixD worldMatrix, object source = null, bool ignoreAssert = false)
Parameters
Type Name Description
MatrixD worldMatrix
System.Object source
System.Boolean ignoreAssert
Overrides
MyEntity.Teleport(MatrixD, Object, Boolean)

TestBlockPlacementArea(MyCubeBlockDefinition, Nullable<MyBlockOrientation>, MatrixD, ref MyGridPlacementSettings, BoundingBoxD, Boolean, MyEntity, Boolean)

Declaration
public static bool TestBlockPlacementArea(MyCubeBlockDefinition blockDefinition, Nullable<MyBlockOrientation> blockOrientation, MatrixD worldMatrix, ref MyGridPlacementSettings settings, BoundingBoxD localAabb, bool dynamicBuildMode, MyEntity ignoredEntity = null, bool testVoxel = true)
Parameters
Type Name Description
MyCubeBlockDefinition blockDefinition
System.Nullable<MyBlockOrientation> blockOrientation
MatrixD worldMatrix
VRage.Game.ObjectBuilders.Definitions.SessionComponents.MyGridPlacementSettings settings
BoundingBoxD localAabb
System.Boolean dynamicBuildMode
MyEntity ignoredEntity
System.Boolean testVoxel
Returns
Type Description
System.Boolean

TestBlockPlacementArea(MyCubeGrid, ref MyGridPlacementSettings, MyBlockOrientation, MyCubeBlockDefinition, ref Vector3D, ref Quaternion, ref Vector3, ref BoundingBoxD, out MyCubeGrid, UInt64, MyEntity, Boolean, Boolean, Boolean, Boolean)

Declaration
public static bool TestBlockPlacementArea(MyCubeGrid targetGrid, ref MyGridPlacementSettings settings, MyBlockOrientation blockOrientation, MyCubeBlockDefinition blockDefinition, ref Vector3D translationObsolete, ref Quaternion rotation, ref Vector3 halfExtentsObsolete, ref BoundingBoxD localAabb, out MyCubeGrid touchingGrid, ulong placingPlayer = 0UL, MyEntity ignoredEntity = null, bool ignoreFracturedPieces = false, bool testVoxel = true, bool isProjected = false, bool forceCheck = false)
Parameters
Type Name Description
MyCubeGrid targetGrid
VRage.Game.ObjectBuilders.Definitions.SessionComponents.MyGridPlacementSettings settings
MyBlockOrientation blockOrientation
MyCubeBlockDefinition blockDefinition
Vector3D translationObsolete
Quaternion rotation
Vector3 halfExtentsObsolete
BoundingBoxD localAabb
MyCubeGrid touchingGrid
System.UInt64 placingPlayer
MyEntity ignoredEntity
System.Boolean ignoreFracturedPieces
System.Boolean testVoxel
System.Boolean isProjected
System.Boolean forceCheck
Returns
Type Description
System.Boolean

TestBlockPlacementArea(MyCubeGrid, ref MyGridPlacementSettings, MyBlockOrientation, MyCubeBlockDefinition, ref Vector3D, ref Quaternion, ref Vector3, ref BoundingBoxD, UInt64, MyEntity, Boolean)

Declaration
public static bool TestBlockPlacementArea(MyCubeGrid targetGrid, ref MyGridPlacementSettings settings, MyBlockOrientation blockOrientation, MyCubeBlockDefinition blockDefinition, ref Vector3D translation, ref Quaternion rotation, ref Vector3 halfExtents, ref BoundingBoxD localAabb, ulong placingPlayer = 0UL, MyEntity ignoredEntity = null, bool isProjected = false)
Parameters
Type Name Description
MyCubeGrid targetGrid
VRage.Game.ObjectBuilders.Definitions.SessionComponents.MyGridPlacementSettings settings
MyBlockOrientation blockOrientation
MyCubeBlockDefinition blockDefinition
Vector3D translation
Quaternion rotation
Vector3 halfExtents
BoundingBoxD localAabb
System.UInt64 placingPlayer
MyEntity ignoredEntity
System.Boolean isProjected
Returns
Type Description
System.Boolean

TestBlockPlacementAreaVanilla(MyCubeGrid, ref MyGridPlacementSettings, MyBlockOrientation, MyCubeBlockDefinition, ref Vector3D, ref Quaternion, ref Vector3, ref BoundingBoxD, out MyCubeGrid, UInt64, MyEntity, Boolean, Boolean, Boolean, Boolean)

Declaration
public static bool TestBlockPlacementAreaVanilla(MyCubeGrid targetGrid, ref MyGridPlacementSettings settings, MyBlockOrientation blockOrientation, MyCubeBlockDefinition blockDefinition, ref Vector3D translationObsolete, ref Quaternion rotation, ref Vector3 halfExtentsObsolete, ref BoundingBoxD localAabb, out MyCubeGrid touchingGrid, ulong placingPlayer = 0UL, MyEntity ignoredEntity = null, bool ignoreFracturedPieces = false, bool testVoxel = true, bool isProjected = false, bool forceCheck = false)
Parameters
Type Name Description
MyCubeGrid targetGrid
VRage.Game.ObjectBuilders.Definitions.SessionComponents.MyGridPlacementSettings settings
MyBlockOrientation blockOrientation
MyCubeBlockDefinition blockDefinition
Vector3D translationObsolete
Quaternion rotation
Vector3 halfExtentsObsolete
BoundingBoxD localAabb
MyCubeGrid touchingGrid
System.UInt64 placingPlayer
MyEntity ignoredEntity
System.Boolean ignoreFracturedPieces
System.Boolean testVoxel
System.Boolean isProjected
System.Boolean forceCheck
Returns
Type Description
System.Boolean

TestPlacementArea(MyCubeGrid, Boolean, ref MyGridPlacementSettings, BoundingBoxD, Boolean, MyEntity, Boolean, Boolean)

Declaration
public static bool TestPlacementArea(MyCubeGrid targetGrid, bool targetGridIsStatic, ref MyGridPlacementSettings settings, BoundingBoxD localAabb, bool dynamicBuildMode, MyEntity ignoredEntity = null, bool testVoxel = true, bool testPhysics = true)
Parameters
Type Name Description
MyCubeGrid targetGrid
System.Boolean targetGridIsStatic
VRage.Game.ObjectBuilders.Definitions.SessionComponents.MyGridPlacementSettings settings
BoundingBoxD localAabb
System.Boolean dynamicBuildMode
MyEntity ignoredEntity
System.Boolean testVoxel
System.Boolean testPhysics
Returns
Type Description
System.Boolean

TestPlacementArea(MyCubeGrid, ref MyGridPlacementSettings, BoundingBoxD, Boolean, MyEntity)

Declaration
public static bool TestPlacementArea(MyCubeGrid targetGrid, ref MyGridPlacementSettings settings, BoundingBoxD localAabb, bool dynamicBuildMode, MyEntity ignoredEntity = null)
Parameters
Type Name Description
MyCubeGrid targetGrid
VRage.Game.ObjectBuilders.Definitions.SessionComponents.MyGridPlacementSettings settings
BoundingBoxD localAabb
System.Boolean dynamicBuildMode
MyEntity ignoredEntity
Returns
Type Description
System.Boolean

TestPlacementAreaCube(MyCubeGrid, ref MyGridPlacementSettings, Vector3I, Vector3I, MyBlockOrientation, MyCubeBlockDefinition, out MyCubeGrid, UInt64, MyEntity, Boolean, Boolean, Boolean)

Test cube block placement area in grid.

Declaration
public static bool TestPlacementAreaCube(MyCubeGrid targetGrid, ref MyGridPlacementSettings settings, Vector3I min, Vector3I max, MyBlockOrientation blockOrientation, MyCubeBlockDefinition blockDefinition, out MyCubeGrid touchingGrid, ulong placingPlayer = 0UL, MyEntity ignoredEntity = null, bool ignoreFracturedPieces = false, bool isProjected = false, bool forceCheck = false)
Parameters
Type Name Description
MyCubeGrid targetGrid
VRage.Game.ObjectBuilders.Definitions.SessionComponents.MyGridPlacementSettings settings
Vector3I min
Vector3I max
MyBlockOrientation blockOrientation
MyCubeBlockDefinition blockDefinition
MyCubeGrid touchingGrid
System.UInt64 placingPlayer
MyEntity ignoredEntity
System.Boolean ignoreFracturedPieces
System.Boolean isProjected
System.Boolean forceCheck
Returns
Type Description
System.Boolean

TestPlacementAreaCube(MyCubeGrid, ref MyGridPlacementSettings, Vector3I, Vector3I, MyBlockOrientation, MyCubeBlockDefinition, UInt64, MyEntity, Boolean, Boolean, Boolean)

Declaration
public static bool TestPlacementAreaCube(MyCubeGrid targetGrid, ref MyGridPlacementSettings settings, Vector3I min, Vector3I max, MyBlockOrientation blockOrientation, MyCubeBlockDefinition blockDefinition, ulong placingPlayer = 0UL, MyEntity ignoredEntity = null, bool ignoreFracturedPieces = false, bool isProjected = false, bool forceCheck = false)
Parameters
Type Name Description
MyCubeGrid targetGrid
VRage.Game.ObjectBuilders.Definitions.SessionComponents.MyGridPlacementSettings settings
Vector3I min
Vector3I max
MyBlockOrientation blockOrientation
MyCubeBlockDefinition blockDefinition
System.UInt64 placingPlayer
MyEntity ignoredEntity
System.Boolean ignoreFracturedPieces
System.Boolean isProjected
System.Boolean forceCheck
Returns
Type Description
System.Boolean

TestPlacementAreaCubeNoAABBInflate(MyCubeGrid, ref MyGridPlacementSettings, Vector3I, Vector3I, MyBlockOrientation, MyCubeBlockDefinition, out MyCubeGrid, UInt64, MyEntity, Boolean)

Declaration
public static bool TestPlacementAreaCubeNoAABBInflate(MyCubeGrid targetGrid, ref MyGridPlacementSettings settings, Vector3I min, Vector3I max, MyBlockOrientation blockOrientation, MyCubeBlockDefinition blockDefinition, out MyCubeGrid touchingGrid, ulong placingPlayer = 0UL, MyEntity ignoredEntity = null, bool isProjected = false)
Parameters
Type Name Description
MyCubeGrid targetGrid
VRage.Game.ObjectBuilders.Definitions.SessionComponents.MyGridPlacementSettings settings
Vector3I min
Vector3I max
MyBlockOrientation blockOrientation
MyCubeBlockDefinition blockDefinition
MyCubeGrid touchingGrid
System.UInt64 placingPlayer
MyEntity ignoredEntity
System.Boolean isProjected
Returns
Type Description
System.Boolean

TestPlacementForWheel(HkShape, Quaternion, MatrixD, HkBodyCollision, MatrixD, MyCubeBlockDefinition)

Declaration
public static bool TestPlacementForWheel(HkShape shape, Quaternion shapeRotation, MatrixD worldMatrix, HkBodyCollision collison, MatrixD wheelMatrix, MyCubeBlockDefinition definition)
Parameters
Type Name Description
Havok.HkShape shape
Quaternion shapeRotation
MatrixD worldMatrix
Havok.HkBodyCollision collison
MatrixD wheelMatrix
MyCubeBlockDefinition definition
Returns
Type Description
System.Boolean

TestPlacementForWheelWhenPlacingWheel(MyAttachableTopBlockBase, MatrixD, Vector3D, List<HkBodyCollision>)

Declaration
public static bool TestPlacementForWheelWhenPlacingWheel(MyAttachableTopBlockBase rotorBlock, MatrixD rotation, Vector3D wheelPosition, List<HkBodyCollision> m_tmpList)
Parameters
Type Name Description
Sandbox.Game.Entities.Blocks.MyAttachableTopBlockBase rotorBlock
MatrixD rotation
Vector3D wheelPosition
System.Collections.Generic.List<Havok.HkBodyCollision> m_tmpList
Returns
Type Description
System.Boolean

TestPlacementVoxelMapOverlap(MyVoxelBase, ref MyGridPlacementSettings, ref BoundingBoxD, ref MatrixD, Boolean)

Declaration
public static bool TestPlacementVoxelMapOverlap(MyVoxelBase voxelMap, ref MyGridPlacementSettings settings, ref BoundingBoxD localAabb, ref MatrixD worldMatrix, bool touchingStaticGrid = false)
Parameters
Type Name Description
MyVoxelBase voxelMap
VRage.Game.ObjectBuilders.Definitions.SessionComponents.MyGridPlacementSettings settings
BoundingBoxD localAabb
MatrixD worldMatrix
System.Boolean touchingStaticGrid
Returns
Type Description
System.Boolean

TestVoxelPlacement(MyCubeBlockDefinition, MyGridPlacementSettings, Boolean, MatrixD, BoundingBoxD)

Declaration
public static bool TestVoxelPlacement(MyCubeBlockDefinition blockDefinition, MyGridPlacementSettings settingsCopy, bool dynamicBuildMode, MatrixD worldMatrix, BoundingBoxD localAabb)
Parameters
Type Name Description
MyCubeBlockDefinition blockDefinition
VRage.Game.ObjectBuilders.Definitions.SessionComponents.MyGridPlacementSettings settingsCopy
System.Boolean dynamicBuildMode
MatrixD worldMatrix
BoundingBoxD localAabb
Returns
Type Description
System.Boolean

ToggleHandbrakeRequest()

Declaration
[Event(null, 11268)]
[Reliable]
[Server]
public void ToggleHandbrakeRequest()

ToggleParkStateRequest()

Declaration
[Event(null, 11322)]
[Reliable]
[Server]
public void ToggleParkStateRequest()

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
MyEntity.ToString()

TransferBlockLimitsBuiltByID(Int64, MyBlockLimits, MyBlockLimits)

Declaration
public void TransferBlockLimitsBuiltByID(long author, MyBlockLimits oldLimits, MyBlockLimits newLimits)
Parameters
Type Name Description
System.Int64 author
Sandbox.Game.World.MyBlockLimits oldLimits
Sandbox.Game.World.MyBlockLimits newLimits

TransferBlocksBuiltByID(Int64, Int64)

Transfer all blocks built by a specific player to another player

Declaration
[Event(null, 3987)]
[Reliable]
[ServerInvoked]
[Broadcast]
public void TransferBlocksBuiltByID(long oldAuthor, long newAuthor)
Parameters
Type Name Description
System.Int64 oldAuthor
System.Int64 newAuthor

TransferBlocksBuiltByIDClient(Int64, Int64)

Declaration
public void TransferBlocksBuiltByIDClient(long oldAuthor, long newAuthor)
Parameters
Type Name Description
System.Int64 oldAuthor
System.Int64 newAuthor

TransformMountPoints(List<MyCubeBlockDefinition.MountPoint>, MyCubeBlockDefinition, MyCubeBlockDefinition.MountPoint[], ref MyBlockOrientation)

Fills passed lists with mount point data, which is transformed using orientation of the block.

Declaration
public static void TransformMountPoints(List<MyCubeBlockDefinition.MountPoint> outMountPoints, MyCubeBlockDefinition def, MyCubeBlockDefinition.MountPoint[] mountPoints, ref MyBlockOrientation orientation)
Parameters
Type Name Description
System.Collections.Generic.List<MyCubeBlockDefinition.MountPoint> outMountPoints

Output buffer.

MyCubeBlockDefinition def
MyCubeBlockDefinition.MountPoint[] mountPoints
MyBlockOrientation orientation

TryGetCube(Vector3I, out MyCube)

Declaration
public bool TryGetCube(Vector3I position, out MyCube cube)
Parameters
Type Name Description
Vector3I position
MyCube cube
Returns
Type Description
System.Boolean

TryPasteGrid_Implementation(MyCubeGrid.MyPasteGridParameters)

Declaration
[Event(null, 10763)]
[Reliable]
[Server]
public static void TryPasteGrid_Implementation(MyCubeGrid.MyPasteGridParameters parameters)
Parameters
Type Name Description
MyCubeGrid.MyPasteGridParameters parameters

TryRayCastGrid(ref LineD, out MyCubeGrid, out Vector3D)

Declaration
public static bool TryRayCastGrid(ref LineD worldRay, out MyCubeGrid hitGrid, out Vector3D worldHitPos)
Parameters
Type Name Description
LineD worldRay
MyCubeGrid hitGrid
Vector3D worldHitPos
Returns
Type Description
System.Boolean

UnregisterDecoy(MyDecoy)

Declaration
public void UnregisterDecoy(MyDecoy block)
Parameters
Type Name Description
Sandbox.Game.Entities.Blocks.MyDecoy block

UnregisterInventory(MyCubeBlock)

Declaration
public void UnregisterInventory(MyCubeBlock block)
Parameters
Type Name Description
MyCubeBlock block

UnregisterOccupiedBlock(MyCockpit)

Declaration
public void UnregisterOccupiedBlock(MyCockpit block)
Parameters
Type Name Description
MyCockpit block

UnregisterUnsafeBlock(MyCubeBlock)

Declaration
public void UnregisterUnsafeBlock(MyCubeBlock block)
Parameters
Type Name Description
MyCubeBlock block

UpdateAfterSimulation()

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

UpdateAfterSimulation10()

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

UpdateAfterSimulation100()

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

UpdateAfterSimulationParallel()

Declaration
public void UpdateAfterSimulationParallel()

UpdateBeforeSimulation()

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

UpdateBeforeSimulation10()

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

UpdateBeforeSimulation100()

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

UpdateBeforeSimulationParallel()

Declaration
public void UpdateBeforeSimulationParallel()

UpdateBlockNeighbours(MySlimBlock)

Declaration
public void UpdateBlockNeighbours(MySlimBlock block)
Parameters
Type Name Description
Sandbox.Game.Entities.Cube.MySlimBlock block

UpdateDirty(Action, Boolean)

Declaration
public void UpdateDirty(Action callback = null, bool immediate = false)
Parameters
Type Name Description
System.Action callback
System.Boolean immediate

UpdateDirtyInternal()

Declaration
public void UpdateDirtyInternal()

UpdateInstanceData()

Declaration
public void UpdateInstanceData()

UpdateOnceBeforeFrame()

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

UpdateOwnership(Int64, Boolean)

Declaration
public void UpdateOwnership(long ownerId, bool isFunctional)
Parameters
Type Name Description
System.Int64 ownerId
System.Boolean isFunctional

UpdateParticleContactPoint(Int64, ref Vector3, ref Vector3, ref Vector3, Single, Single, MyEntity.ContactPointData.ContactPointDataTypes)

Declaration
public void UpdateParticleContactPoint(long entityId, ref Vector3 relativePosition, ref Vector3 normal, ref Vector3 separatingVelocity, float separatingSpeed, float impulse, MyEntity.ContactPointData.ContactPointDataTypes flags)
Parameters
Type Name Description
System.Int64 entityId
Vector3 relativePosition
Vector3 normal
Vector3 separatingVelocity
System.Single separatingSpeed
System.Single impulse
MyEntity.ContactPointData.ContactPointDataTypes flags

UpdatePredictionFlag()

Declaration
public void UpdatePredictionFlag()

UpdateTimeOnClients(Int32)

Declaration
[Event(null, 1899)]
[Reliable]
[ServerInvoked]
[BroadcastTerminalInfo]
public void UpdateTimeOnClients(int secondsRemaining)
Parameters
Type Name Description
System.Int32 secondsRemaining

WillRemoveBlockSplitGrid(MySlimBlock)

Declaration
public bool WillRemoveBlockSplitGrid(MySlimBlock testBlock)
Parameters
Type Name Description
Sandbox.Game.Entities.Cube.MySlimBlock testBlock
Returns
Type Description
System.Boolean

WorldToGridInteger(Vector3D)

Declaration
public Vector3I WorldToGridInteger(Vector3D coords)
Parameters
Type Name Description
Vector3D coords
Returns
Type Description
Vector3I

WorldToGridScaledLocal(Vector3D)

Declaration
public Vector3D WorldToGridScaledLocal(Vector3D coords)
Parameters
Type Name Description
Vector3D coords
Returns
Type Description
Vector3D

Events

GridPresenceTierChanged

Declaration
public event Action<MyCubeGrid> GridPresenceTierChanged
Event Type
Type Description
System.Action<MyCubeGrid>

IsPoweredChanged

Declaration
public event Action<bool> IsPoweredChanged
Event Type
Type Description
System.Action<System.Boolean>

OnBlockAdded

Declaration
public event Action<MySlimBlock> OnBlockAdded
Event Type
Type Description
System.Action<Sandbox.Game.Entities.Cube.MySlimBlock>

OnBlockAddedGlobally

Called only for single block changes

Declaration
public static event Action<MySlimBlock> OnBlockAddedGlobally
Event Type
Type Description
System.Action<Sandbox.Game.Entities.Cube.MySlimBlock>

OnBlockClosed

Declaration
public event Action<MySlimBlock> OnBlockClosed
Event Type
Type Description
System.Action<Sandbox.Game.Entities.Cube.MySlimBlock>

OnBlockIntegrityChanged

Declaration
public event Action<MySlimBlock> OnBlockIntegrityChanged
Event Type
Type Description
System.Action<Sandbox.Game.Entities.Cube.MySlimBlock>

OnBlockOwnershipChanged

Declaration
public event Action<MyCubeGrid> OnBlockOwnershipChanged
Event Type
Type Description
System.Action<MyCubeGrid>

OnBlockRemoved

Declaration
public event Action<MySlimBlock> OnBlockRemoved
Event Type
Type Description
System.Action<Sandbox.Game.Entities.Cube.MySlimBlock>

OnBlockRemovedGlobally

Not called on grid split, or when closing grid

Declaration
public static event Action<MySlimBlock> OnBlockRemovedGlobally
Event Type
Type Description
System.Action<Sandbox.Game.Entities.Cube.MySlimBlock>

OnBlocksChangeFinishedGlobally

Called on multi block changes. Both arguments may be null. First from where blocks where removed, second - where added

Declaration
public static event Action<MyCubeGrid, MyCubeGrid> OnBlocksChangeFinishedGlobally
Event Type
Type Description
System.Action<MyCubeGrid, MyCubeGrid>

OnConnectionChangeCompleted

Event triggered, when one of GridLinkTypeEnum connections changed. Used to determine changes in connections. Use may also need react to OnGridMerge/OnGridSplit Event different from OnConnectivityChanged.

  1. It is called when all group changes
  2. It is called AFTER all group changes, so GetConnectedGrids returning correct results
Declaration
public event Action<MyCubeGrid, GridLinkTypeEnum> OnConnectionChangeCompleted
Event Type
Type Description
System.Action<MyCubeGrid, GridLinkTypeEnum>

OnConnectionChanged

Event triggered, when one of GridLinkTypeEnum connections changed. Used to determine changes in connections. Use may also need react to OnGridMerge/OnGridSplit

Declaration
public event Action<MyCubeGrid, GridLinkTypeEnum> OnConnectionChanged
Event Type
Type Description
System.Action<MyCubeGrid, GridLinkTypeEnum>

OnDeschedule

Declaration
public event Action OnDeschedule
Event Type
Type Description
System.Action

OnDynamicNPCGridOrSubgridShooting

Declaration
public event Action<MyCubeGrid> OnDynamicNPCGridOrSubgridShooting
Event Type
Type Description
System.Action<MyCubeGrid>

OnFatBlockAdded

Declaration
public event Action<MyCubeBlock> OnFatBlockAdded
Event Type
Type Description
System.Action<MyCubeBlock>

OnFatBlockClosed

Declaration
public event Action<MyCubeBlock> OnFatBlockClosed
Event Type
Type Description
System.Action<MyCubeBlock>

OnFatBlockRemoved

Declaration
public event Action<MyCubeBlock> OnFatBlockRemoved
Event Type
Type Description
System.Action<MyCubeBlock>

OnGridBlockDamaged

Declaration
public event Action<IMySlimBlock, float, Nullable<MyHitInfo>, long> OnGridBlockDamaged
Event Type
Type Description
System.Action<IMySlimBlock, System.Single, System.Nullable<MyHitInfo>, System.Int64>

OnGridChanged

Declaration
public event Action<MyCubeGrid> OnGridChanged
Event Type
Type Description
System.Action<MyCubeGrid>

OnGridMarkedDirty

Declaration
public event Action<MyCubeGrid> OnGridMarkedDirty
Event Type
Type Description
System.Action<MyCubeGrid>

OnGridMerge

Called, when 2 grids are merged with merge block. First grid - grid that will stay, second - will be merged into first, and deleted. Called for both grids

Declaration
public event Action<MyCubeGrid, MyCubeGrid> OnGridMerge
Event Type
Type Description
System.Action<MyCubeGrid, MyCubeGrid>

OnGridSplit

Declaration
public event Action<MyCubeGrid, MyCubeGrid> OnGridSplit
Event Type
Type Description
System.Action<MyCubeGrid, MyCubeGrid>

OnHavokSystemIDChanged

Declaration
public event Action<int> OnHavokSystemIDChanged
Event Type
Type Description
System.Action<System.Int32>

OnHierarchyUpdated

Declaration
public event Action<MyCubeGrid> OnHierarchyUpdated
Event Type
Type Description
System.Action<MyCubeGrid>

OnIsStaticChanged

Declaration
public event Action<bool> OnIsStaticChanged
Event Type
Type Description
System.Action<System.Boolean>

OnMassPropertiesChanged

Declaration
public event Action<MyCubeGrid> OnMassPropertiesChanged
Event Type
Type Description
System.Action<MyCubeGrid>

OnMaxThrustChanged

May be called from parallel thread

Declaration
public event Action<MyCubeGrid> OnMaxThrustChanged
Event Type
Type Description
System.Action<MyCubeGrid>

OnMinMaxChanged

Declaration
public event Action<MyCubeGrid, Vector3I, Vector3I> OnMinMaxChanged
Event Type
Type Description
System.Action<MyCubeGrid, Vector3I, Vector3I>

OnNameChanged

Declaration
public event Action<MyCubeGrid> OnNameChanged
Event Type
Type Description
System.Action<MyCubeGrid>

OnNaturalGravityChanged

Declaration
public event Action<IMyCubeGrid> OnNaturalGravityChanged
Event Type
Type Description
System.Action<IMyCubeGrid>

OnSolarOccludedChanged

Declaration
public event Action<MyCubeGrid> OnSolarOccludedChanged
Event Type
Type Description
System.Action<MyCubeGrid>

OnSplitGridCreated

Declaration
public static event Action<MyCubeGrid> OnSplitGridCreated
Event Type
Type Description
System.Action<MyCubeGrid>

OnStaticChanged

Declaration
public event Action<MyCubeGrid, bool> OnStaticChanged
Event Type
Type Description
System.Action<MyCubeGrid, System.Boolean>

OnTargetLocked

Declaration
public event Action<IMyCharacter> OnTargetLocked
Event Type
Type Description
System.Action<IMyCharacter>

OnTargetLockLost

Declaration
public event Action OnTargetLockLost
Event Type
Type Description
System.Action

PlayerPresenceTierChanged

Declaration
public event Action<MyCubeGrid> PlayerPresenceTierChanged
Event Type
Type Description
System.Action<MyCubeGrid>

SpeedChanged

Declaration
public event Action<IMyCubeGrid> SpeedChanged
Event Type
Type Description
System.Action<IMyCubeGrid>

SyncPropertyChanged

Declaration
public event Action<SyncBase> SyncPropertyChanged
Event Type
Type Description
System.Action<VRage.Sync.SyncBase>

Explicit Interface Implementations

IMyCubeGrid.AddBlock(MyObjectBuilder_CubeBlock, Boolean)

Declaration
IMySlimBlock IMyCubeGrid.AddBlock(MyObjectBuilder_CubeBlock objectBuilder, bool testMerge)
Parameters
Type Name Description
MyObjectBuilder_CubeBlock objectBuilder
System.Boolean testMerge
Returns
Type Description
IMySlimBlock

IMyCubeGrid.ApplyDeformation(Single, Single, Single, Vector3, Vector3, MyStringHash, out Int32, Single, Single, Int64)

Declaration
bool IMyCubeGrid.ApplyDeformation(float deformationOffset, float softAreaPlanar, float softAreaVertical, Vector3 localPos, Vector3 localNormal, MyStringHash damageType, out int blocksDestroyedByThisCp, float offsetThreshold, float lowerRatioLimit, long attackerId)
Parameters
Type Name Description
System.Single deformationOffset
System.Single softAreaPlanar
System.Single softAreaVertical
Vector3 localPos
Vector3 localNormal
MyStringHash damageType
System.Int32 blocksDestroyedByThisCp
System.Single offsetThreshold
System.Single lowerRatioLimit
System.Int64 attackerId
Returns
Type Description
System.Boolean

IMyCubeGrid.ApplyDestructionDeformation(IMySlimBlock)

Declaration
void IMyCubeGrid.ApplyDestructionDeformation(IMySlimBlock block)
Parameters
Type Name Description
IMySlimBlock block

IMyCubeGrid.BigOwners

Declaration
List<long> IMyCubeGrid.BigOwners { get; }
Returns
Type Description
System.Collections.Generic.List<System.Int64>

IMyCubeGrid.CalculateMergeTransform(IMyCubeGrid, Vector3I)

Declaration
MatrixI IMyCubeGrid.CalculateMergeTransform(IMyCubeGrid gridToMerge, Vector3I gridOffset)
Parameters
Type Name Description
IMyCubeGrid gridToMerge
Vector3I gridOffset
Returns
Type Description
MatrixI

IMyCubeGrid.CanAddCube(Vector3I)

Declaration
bool IMyCubeGrid.CanAddCube(Vector3I pos)
Parameters
Type Name Description
Vector3I pos
Returns
Type Description
System.Boolean

IMyCubeGrid.CanAddCubes(Vector3I, Vector3I)

Declaration
bool IMyCubeGrid.CanAddCubes(Vector3I min, Vector3I max)
Parameters
Type Name Description
Vector3I min
Vector3I max
Returns
Type Description
System.Boolean

IMyCubeGrid.CanMergeCubes(IMyCubeGrid, Vector3I)

Declaration
bool IMyCubeGrid.CanMergeCubes(IMyCubeGrid gridToMerge, Vector3I gridOffset)
Parameters
Type Name Description
IMyCubeGrid gridToMerge
Vector3I gridOffset
Returns
Type Description
System.Boolean

IMyCubeGrid.ChangeGridOwnership(Int64, MyOwnershipShareModeEnum)

Declaration
void IMyCubeGrid.ChangeGridOwnership(long playerId, MyOwnershipShareModeEnum shareMode)
Parameters
Type Name Description
System.Int64 playerId
MyOwnershipShareModeEnum shareMode

IMyCubeGrid.ClearSymmetries()

Declaration
void IMyCubeGrid.ClearSymmetries()

IMyCubeGrid.ColorBlocks(Vector3I, Vector3I, Vector3)

Declaration
void IMyCubeGrid.ColorBlocks(Vector3I min, Vector3I max, Vector3 newHSV)
Parameters
Type Name Description
Vector3I min
Vector3I max
Vector3 newHSV

IMyCubeGrid.ControlSystem

Declaration
IMyGridControlSystem IMyCubeGrid.ControlSystem { get; }
Returns
Type Description
IMyGridControlSystem

IMyCubeGrid.CustomName

Declaration
string IMyCubeGrid.CustomName { get; set; }
Returns
Type Description
System.String

IMyCubeGrid.FixTargetCube(out Vector3I, Vector3)

Declaration
void IMyCubeGrid.FixTargetCube(out Vector3I cube, Vector3 fractionalGridPosition)
Parameters
Type Name Description
Vector3I cube
Vector3 fractionalGridPosition

IMyCubeGrid.GasSystem

Can be null if oxygen is disabled

Declaration
IMyGridGasSystem IMyCubeGrid.GasSystem { get; }
Returns
Type Description
IMyGridGasSystem

IMyCubeGrid.GetBlocks(List<IMySlimBlock>, Func<IMySlimBlock, Boolean>)

Declaration
void IMyCubeGrid.GetBlocks(List<IMySlimBlock> blocks, Func<IMySlimBlock, bool> collect)
Parameters
Type Name Description
System.Collections.Generic.List<IMySlimBlock> blocks
System.Func<IMySlimBlock, System.Boolean> collect

IMyCubeGrid.GetBlocksInsideSphere(ref BoundingSphereD)

Declaration
List<IMySlimBlock> IMyCubeGrid.GetBlocksInsideSphere(ref BoundingSphereD sphere)
Parameters
Type Name Description
BoundingSphereD sphere
Returns
Type Description
System.Collections.Generic.List<IMySlimBlock>

IMyCubeGrid.GetClosestCorner(Vector3I, Vector3)

Declaration
Vector3 IMyCubeGrid.GetClosestCorner(Vector3I gridPos, Vector3 position)
Parameters
Type Name Description
Vector3I gridPos
Vector3 position
Returns
Type Description
Vector3

IMyCubeGrid.GetCubeBlock(Vector3I)

Declaration
IMySlimBlock IMyCubeGrid.GetCubeBlock(Vector3I pos)
Parameters
Type Name Description
Vector3I pos
Returns
Type Description
IMySlimBlock

IMyCubeGrid.GetFatBlocks<T>()

Declaration
IEnumerable<T> IMyCubeGrid.GetFatBlocks<T>()
    where T : class, IMyCubeBlock
Returns
Type Description
System.Collections.Generic.IEnumerable<T>
Type Parameters
Name Description
T

IMyCubeGrid.GetLineIntersectionExactAll(ref LineD, out Double, out IMySlimBlock)

Declaration
Nullable<Vector3D> IMyCubeGrid.GetLineIntersectionExactAll(ref LineD line, out double distance, out IMySlimBlock intersectedBlock)
Parameters
Type Name Description
LineD line
System.Double distance
IMySlimBlock intersectedBlock
Returns
Type Description
System.Nullable<Vector3D>

IMyCubeGrid.GetLineIntersectionExactGrid(ref LineD, ref Vector3I, ref Double)

Declaration
bool IMyCubeGrid.GetLineIntersectionExactGrid(ref LineD line, ref Vector3I position, ref double distanceSquared)
Parameters
Type Name Description
LineD line
Vector3I position
System.Double distanceSquared
Returns
Type Description
System.Boolean

IMyCubeGrid.GridPresenceTier

Declaration
MyUpdateTiersGridPresence IMyCubeGrid.GridPresenceTier { get; }
Returns
Type Description
MyUpdateTiersGridPresence

IMyCubeGrid.GridPresenceTierChanged

Declaration
event Action<IMyCubeGrid> IMyCubeGrid.GridPresenceTierChanged
Returns
Type Description
System.Action<IMyCubeGrid>

IMyCubeGrid.IsRespawnGrid

Declaration
bool IMyCubeGrid.IsRespawnGrid { get; set; }
Returns
Type Description
System.Boolean

IMyCubeGrid.IsStatic

Declaration
bool IMyCubeGrid.IsStatic { get; set; }
Returns
Type Description
System.Boolean

IMyCubeGrid.IsTouchingAnyNeighbor(Vector3I, Vector3I)

Declaration
bool IMyCubeGrid.IsTouchingAnyNeighbor(Vector3I min, Vector3I max)
Parameters
Type Name Description
Vector3I min
Vector3I max
Returns
Type Description
System.Boolean

IMyCubeGrid.JumpSystem

Declaration
IMyGridJumpDriveSystem IMyCubeGrid.JumpSystem { get; }
Returns
Type Description
IMyGridJumpDriveSystem

IMyCubeGrid.MergeGrid_MergeBlock(IMyCubeGrid, Vector3I)

Declaration
IMyCubeGrid IMyCubeGrid.MergeGrid_MergeBlock(IMyCubeGrid gridToMerge, Vector3I gridOffset)
Parameters
Type Name Description
IMyCubeGrid gridToMerge
Vector3I gridOffset
Returns
Type Description
IMyCubeGrid

IMyCubeGrid.OnBlockAdded

Declaration
event Action<IMySlimBlock> IMyCubeGrid.OnBlockAdded
Returns
Type Description
System.Action<IMySlimBlock>

IMyCubeGrid.OnBlockIntegrityChanged

Declaration
event Action<IMySlimBlock> IMyCubeGrid.OnBlockIntegrityChanged
Returns
Type Description
System.Action<IMySlimBlock>

IMyCubeGrid.OnBlockOwnershipChanged

Declaration
event Action<IMyCubeGrid> IMyCubeGrid.OnBlockOwnershipChanged
Returns
Type Description
System.Action<IMyCubeGrid>

IMyCubeGrid.OnBlockRemoved

Declaration
event Action<IMySlimBlock> IMyCubeGrid.OnBlockRemoved
Returns
Type Description
System.Action<IMySlimBlock>

IMyCubeGrid.OnGridChanged

Declaration
event Action<IMyCubeGrid> IMyCubeGrid.OnGridChanged
Returns
Type Description
System.Action<IMyCubeGrid>

IMyCubeGrid.OnGridMerge

Called, when 2 grids are merged with merge block. First grid - grid that will stay, second - will be merged into first, and deleted. Called for both grids

Declaration
event Action<IMyCubeGrid, IMyCubeGrid> IMyCubeGrid.OnGridMerge
Returns
Type Description
System.Action<IMyCubeGrid, IMyCubeGrid>

IMyCubeGrid.OnGridSplit

Declaration
event Action<IMyCubeGrid, IMyCubeGrid> IMyCubeGrid.OnGridSplit
Returns
Type Description
System.Action<IMyCubeGrid, IMyCubeGrid>

IMyCubeGrid.OnIsStaticChanged

Declaration
event Action<IMyCubeGrid, bool> IMyCubeGrid.OnIsStaticChanged
Returns
Type Description
System.Action<IMyCubeGrid, System.Boolean>

IMyCubeGrid.OnMaxThrustChanged

Declaration
event Action<IMyCubeGrid> IMyCubeGrid.OnMaxThrustChanged
Returns
Type Description
System.Action<IMyCubeGrid>

IMyCubeGrid.PlayerPresenceTier

Declaration
MyUpdateTiersPlayerPresence IMyCubeGrid.PlayerPresenceTier { get; }
Returns
Type Description
MyUpdateTiersPlayerPresence

IMyCubeGrid.PlayerPresenceTierChanged

Declaration
event Action<IMyCubeGrid> IMyCubeGrid.PlayerPresenceTierChanged
Returns
Type Description
System.Action<IMyCubeGrid>

IMyCubeGrid.RayCastBlocks(Vector3D, Vector3D)

Declaration
Nullable<Vector3I> IMyCubeGrid.RayCastBlocks(Vector3D worldStart, Vector3D worldEnd)
Parameters
Type Name Description
Vector3D worldStart
Vector3D worldEnd
Returns
Type Description
System.Nullable<Vector3I>

IMyCubeGrid.RayCastCells(Vector3D, Vector3D, List<Vector3I>, Nullable<Vector3I>, Boolean)

Declaration
void IMyCubeGrid.RayCastCells(Vector3D worldStart, Vector3D worldEnd, List<Vector3I> outHitPositions, Nullable<Vector3I> gridSizeInflate, bool havokWorld)
Parameters
Type Name Description
Vector3D worldStart
Vector3D worldEnd
System.Collections.Generic.List<Vector3I> outHitPositions
System.Nullable<Vector3I> gridSizeInflate
System.Boolean havokWorld

IMyCubeGrid.RazeBlock(Vector3I)

Declaration
void IMyCubeGrid.RazeBlock(Vector3I position)
Parameters
Type Name Description
Vector3I position

IMyCubeGrid.RazeBlocks(List<Vector3I>)

Declaration
void IMyCubeGrid.RazeBlocks(List<Vector3I> locations)
Parameters
Type Name Description
System.Collections.Generic.List<Vector3I> locations

IMyCubeGrid.RazeBlocks(ref Vector3I, ref Vector3UByte)

Declaration
void IMyCubeGrid.RazeBlocks(ref Vector3I pos, ref Vector3UByte size)
Parameters
Type Name Description
Vector3I pos
Vector3UByte size

IMyCubeGrid.RemoveBlock(IMySlimBlock, Boolean)

Declaration
void IMyCubeGrid.RemoveBlock(IMySlimBlock block, bool updatePhysics)
Parameters
Type Name Description
IMySlimBlock block
System.Boolean updatePhysics

IMyCubeGrid.RemoveDestroyedBlock(IMySlimBlock)

Declaration
void IMyCubeGrid.RemoveDestroyedBlock(IMySlimBlock block)
Parameters
Type Name Description
IMySlimBlock block

IMyCubeGrid.ResourceDistributor

Declaration
IMyResourceDistributorComponent IMyCubeGrid.ResourceDistributor { get; }
Returns
Type Description
IMyResourceDistributorComponent

IMyCubeGrid.SkinBlocks(Vector3I, Vector3I, Nullable<Vector3>, String)

Declaration
void IMyCubeGrid.SkinBlocks(Vector3I min, Vector3I max, Nullable<Vector3> newHSV, string newSkin)
Parameters
Type Name Description
Vector3I min
Vector3I max
System.Nullable<Vector3> newHSV
System.String newSkin

IMyCubeGrid.SmallOwners

Declaration
List<long> IMyCubeGrid.SmallOwners { get; }
Returns
Type Description
System.Collections.Generic.List<System.Int64>

IMyCubeGrid.Split(List<IMySlimBlock>, Boolean)

Declaration
IMyCubeGrid IMyCubeGrid.Split(List<IMySlimBlock> blocks, bool sync)
Parameters
Type Name Description
System.Collections.Generic.List<IMySlimBlock> blocks
System.Boolean sync
Returns
Type Description
IMyCubeGrid

IMyCubeGrid.SplitByPlane(PlaneD)

Declaration
IMyCubeGrid IMyCubeGrid.SplitByPlane(PlaneD plane)
Parameters
Type Name Description
PlaneD plane
Returns
Type Description
IMyCubeGrid

IMyCubeGrid.UpdateBlockNeighbours(IMySlimBlock)

Declaration
void IMyCubeGrid.UpdateBlockNeighbours(IMySlimBlock block)
Parameters
Type Name Description
IMySlimBlock block

IMyCubeGrid.WeaponSystem

Declaration
IMyGridWeaponSystem IMyCubeGrid.WeaponSystem { get; }
Returns
Type Description
IMyGridWeaponSystem

IMyCubeGrid.WillRemoveBlockSplitGrid(IMySlimBlock)

Declaration
bool IMyCubeGrid.WillRemoveBlockSplitGrid(IMySlimBlock testBlock)
Parameters
Type Name Description
IMySlimBlock testBlock
Returns
Type Description
System.Boolean

IMyCubeGrid.XSymmetryOdd

Declaration
bool IMyCubeGrid.XSymmetryOdd { get; set; }
Returns
Type Description
System.Boolean

IMyCubeGrid.XSymmetryPlane

Declaration
Nullable<Vector3I> IMyCubeGrid.XSymmetryPlane { get; set; }
Returns
Type Description
System.Nullable<Vector3I>

IMyCubeGrid.YSymmetryOdd

Declaration
bool IMyCubeGrid.YSymmetryOdd { get; set; }
Returns
Type Description
System.Boolean

IMyCubeGrid.YSymmetryPlane

Declaration
Nullable<Vector3I> IMyCubeGrid.YSymmetryPlane { get; set; }
Returns
Type Description
System.Nullable<Vector3I>

IMyCubeGrid.ZSymmetryOdd

Declaration
bool IMyCubeGrid.ZSymmetryOdd { get; set; }
Returns
Type Description
System.Boolean

IMyCubeGrid.ZSymmetryPlane

Declaration
Nullable<Vector3I> IMyCubeGrid.ZSymmetryPlane { get; set; }
Returns
Type Description
System.Nullable<Vector3I>

IMyCubeGrid.CustomName

Declaration
string IMyCubeGrid.CustomName { get; set; }
Returns
Type Description
System.String

IMyCubeGrid.GetCubeBlock(Vector3I)

Declaration
IMySlimBlock IMyCubeGrid.GetCubeBlock(Vector3I position)
Parameters
Type Name Description
Vector3I position
Returns
Type Description
IMySlimBlock

IMyCubeGrid.IsSameConstructAs(IMyCubeGrid)

Declaration
bool IMyCubeGrid.IsSameConstructAs(IMyCubeGrid other)
Parameters
Type Name Description
IMyCubeGrid other
Returns
Type Description
System.Boolean

IMyCubeGrid.WorldToGridInteger(Vector3D)

Declaration
Vector3I IMyCubeGrid.WorldToGridInteger(Vector3D coords)
Parameters
Type Name Description
Vector3D coords
Returns
Type Description
Vector3I

Implements

IMyShootOrigin
IMyParallelUpdateable
IMyCubeGrid
IMyEntity
IMyCubeGrid
IMyEntity

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)
MyEntityContainerEventExtensions.RaiseEntityEvent(MyEntity, MyStringHash, MyEntityContainerEventExtensions.EntityEventParams)
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾