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
MyCubeGrid
Assembly: Sandbox.Game.dll
Syntax
[StaticEventOwner]
[MyEntityType]
public class MyCubeGrid : MyEntity, IMyGridConnectivityTest, IMyEventProxy, IMyEventOwner, IMySyncedEntity, IMyShootOrigin, IMyParallelUpdateable, IMyCubeGrid, IMyEntity, IMyCubeGrid, IMyEntity
Constructors
MyCubeGrid()
Declaration
Fields
BeingCreatedInSplit
Declaration
public bool BeingCreatedInSplit
Field Value
| Type |
Description |
| System.Boolean |
|
BlockCounter
Declaration
public readonly MyCubeGrid.BlockTypeCounter BlockCounter
Field Value
BlocksCounters
Declaration
public Dictionary<MyObjectBuilderType, int> BlocksCounters
Field Value
BlocksWaitingOnAttachUpdate
Declaration
public HashSet<MyMechanicalConnectionBlockBase> BlocksWaitingOnAttachUpdate
Field Value
| Type |
Description |
| System.Collections.Generic.HashSet<Sandbox.Game.Entities.Blocks.MyMechanicalConnectionBlockBase> |
|
CloseGrid
Declaration
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 |
|
LastSelectedProductionBlockId
Declaration
public long LastSelectedProductionBlockId
Field Value
| Type |
Description |
| System.Int64 |
|
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
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 |
|
Declaration
public const int OnLockToolbarPosition = 0
Field Value
| Type |
Description |
| System.Int32 |
|
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
Field Value
| Type |
Description |
| System.Boolean |
|
XSymmetryPlane
Declaration
public Nullable<Vector3I> XSymmetryPlane
Field Value
| Type |
Description |
| System.Nullable<Vector3I> |
|
YSymmetryOdd
Declaration
Field Value
| Type |
Description |
| System.Boolean |
|
YSymmetryPlane
Declaration
public Nullable<Vector3I> YSymmetryPlane
Field Value
| Type |
Description |
| System.Nullable<Vector3I> |
|
ZSymmetryOdd
Declaration
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
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
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
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
Overrides
GetAmmoDefinition
Declaration
public MyDefinitionBase GetAmmoDefinition { get; }
Property Value
GridCounter
Declaration
public static int GridCounter { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
GridPresenceTier
Declaration
public MyUpdateTiersGridPresence GridPresenceTier { get; set; }
Property Value
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
GridSizeHalf
Declaration
public float GridSizeHalf { get; }
Property Value
| Type |
Description |
| System.Single |
|
GridSizeHalfVector
Declaration
public Vector3 GridSizeHalfVector { get; }
Property Value
GridSizeQuarter
Declaration
public float GridSizeQuarter { get; }
Property Value
| Type |
Description |
| System.Single |
|
GridSizeQuarterVector
Declaration
public Vector3 GridSizeQuarterVector { get; }
Property Value
GridSizeR
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 |
|
IsTransparentForJumpDrive
Declaration
public override bool IsTransparentForJumpDrive { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Overrides
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
LinearVelocity
Declaration
public Vector3 LinearVelocity { get; }
Property Value
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
MaxShootRange
Declaration
public float MaxShootRange { get; }
Property Value
| Type |
Description |
| System.Single |
|
Min
Declaration
public Vector3I Min { get; }
Property Value
NaturalGravity
Declaration
public Vector3 NaturalGravity { get; }
Property Value
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
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
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
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
UpdateFlags
Declaration
public MyParallelUpdateFlags UpdateFlags { get; }
Property Value
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
AnnounceRemoveSplit(List<MySlimBlock>)
Declaration
public void AnnounceRemoveSplit(List<MySlimBlock> blocks)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.List<Sandbox.Game.Entities.Cube.MySlimBlock> |
blocks |
|
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
BeforeDelete()
Declaration
protected override void BeforeDelete()
Overrides
BreakGridGroupLink(GridLinkTypeEnum, Int64, MyCubeGrid, MyCubeGrid)
Declaration
public static bool BreakGridGroupLink(GridLinkTypeEnum type, long linkId, MyCubeGrid parent, MyCubeGrid child)
Parameters
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
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
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
BuildBlocksClient(MyCubeGrid.MyBlockVisuals, HashSet<MyCubeGrid.MyBlockLocation>, Int64, Boolean, Int64)
Declaration
[Event(null, 3933)]
[Reliable]
[Broadcast]
public void BuildBlocksClient(MyCubeGrid.MyBlockVisuals visuals, HashSet<MyCubeGrid.MyBlockLocation> locations, long builderEntityId, bool instantBuild, long ownerId)
Parameters
BuildBlocksFailedNotify()
Declaration
[Event(null, 3926)]
[Reliable]
[Client]
public void BuildBlocksFailedNotify()
BuildBlockSucess(MyCubeGrid.MyBlockVisuals, MyCubeGrid.MyBlockLocation, MyObjectBuilder_CubeBlock, Int64, Boolean, Int64)
Declaration
[Event(null, 3805)]
[Reliable]
[Broadcast]
public void BuildBlockSucess(MyCubeGrid.MyBlockVisuals visuals, MyCubeGrid.MyBlockLocation location, [DynamicObjectBuilder(false)] MyObjectBuilder_CubeBlock blockObjectBuilder, long builderEntityId, bool instantBuild, long ownerId)
Parameters
BuildGeneratedBlock(MyCubeGrid.MyBlockLocation, Vector3, MyStringHash)
Declaration
public MySlimBlock BuildGeneratedBlock(MyCubeGrid.MyBlockLocation location, Vector3 colorMaskHsv, MyStringHash skinId)
Parameters
Returns
| Type |
Description |
| Sandbox.Game.Entities.Cube.MySlimBlock |
|
Declaration
public MatrixI CalculateMergeTransform(MyCubeGrid gridToMerge, Vector3I gridOffset)
Parameters
Returns
CanAddCube(Vector3I, Nullable<MyBlockOrientation>, MyCubeBlockDefinition, Boolean)
Declaration
public bool CanAddCube(Vector3I pos, Nullable<MyBlockOrientation> orientation, MyCubeBlockDefinition definition, bool ignoreSame = false)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
CanAddCubes(Vector3I, Vector3I)
Declaration
public bool CanAddCubes(Vector3I min, Vector3I max)
Parameters
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, 10744)]
[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
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
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
ChangeGridOwnership(Int64, MyOwnershipShareModeEnum)
Declaration
public void ChangeGridOwnership(long playerId, MyOwnershipShareModeEnum shareMode)
Parameters
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
ChangeOwnersRequest(MyOwnershipShareModeEnum, Dictionary<MyCubeGrid, List<MyCubeGrid.MySingleOwnershipRequest>>)
Declaration
public static void ChangeOwnersRequest(MyOwnershipShareModeEnum shareMode, Dictionary<MyCubeGrid, List<MyCubeGrid.MySingleOwnershipRequest>> requests)
Parameters
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
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
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
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
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
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
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
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
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
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
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, 11586)]
[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
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
ContainerOpened(Int64)
Declaration
[Event(null, 11578)]
[Reliable]
[Server]
public void ContainerOpened(long entityId)
Parameters
| Type |
Name |
Description |
| System.Int64 |
entityId |
|
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, 5484)]
[Reliable]
[ServerInvoked]
[Broadcast]
public void ConvertToStatic()
CreateGridGroupLink(GridLinkTypeEnum, Int64, MyCubeGrid, MyCubeGrid)
Declaration
public static void CreateGridGroupLink(GridLinkTypeEnum type, long linkId, MyCubeGrid parent, MyCubeGrid child)
Parameters
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
CreateSplit_Implementation(List<Vector3I>, Int64)
Declaration
[Event(null, 1663)]
[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, 1793)]
[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
Returns
| Type |
Description |
| System.Boolean |
|
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, 11343)]
[Reliable]
[ServerInvoked]
[Broadcast]
public void DepressurizeEffect(Vector3I from, Vector3I to)
Parameters
DepressurizeEffect_Implementation(Vector3I, Vector3I)
Declaration
public void DepressurizeEffect_Implementation(Vector3I from, Vector3I to)
Parameters
DeSchedule(MyCubeGrid.UpdateQueue, Action)
Declaration
public void DeSchedule(MyCubeGrid.UpdateQueue queue, Action callback)
Parameters
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
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
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
Declaration
public void EnqueueDestructionDeformationBlock(Vector3I position)
Parameters
EnqueueRemovedBlock(Vector3I)
Declaration
public void EnqueueRemovedBlock(Vector3I position)
Parameters
EnqueueRemovedBlockWithId(Vector3I, Nullable<UInt16>)
Server method, adds removed block with compound id into queue
Declaration
public void EnqueueRemovedBlockWithId(Vector3I position, Nullable<ushort> compoundId = null)
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
FixTargetCubeLite(out Vector3I, Vector3D)
Declaration
public void FixTargetCubeLite(out Vector3I cube, Vector3D fractionalGridPosition)
Parameters
GetArmorSkinItem(MyStringHash)
Declaration
public static MyGameInventoryItem GetArmorSkinItem(MyStringHash skinId)
Parameters
Returns
| Type |
Description |
| VRage.GameServices.MyGameInventoryItem |
|
GetBiggestGridInGroup()
Returns biggest grid in physical group by AABB volume
Declaration
public MyCubeGrid GetBiggestGridInGroup()
Returns
GetBlocks()
Declaration
public HashSet<MySlimBlock> GetBlocks()
Returns
| Type |
Description |
| System.Collections.Generic.HashSet<Sandbox.Game.Entities.Cube.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 |
|
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
Returns
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
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
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
Declaration
public MySlimBlock GetExistingCubeForBoneDeformations(ref Vector3I cube, ref MyDamageInformation damageInfo)
Parameters
Returns
| Type |
Description |
| Sandbox.Game.Entities.Cube.MySlimBlock |
|
Declaration
public void GetExistingCubes(Vector3I boneMin, Vector3I boneMax, Dictionary<Vector3I, MySlimBlock> resultSet, Nullable<MyDamageInformation> damageInfo = null)
Parameters
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
GetFatBlocks<T>()
Declaration
public MyFatBlockReader<T> GetFatBlocks<T>()
where T : MyCubeBlock
Returns
| Type |
Description |
| Sandbox.Game.Entities.Cube.MyFatBlockReader<T> |
|
Type Parameters
GetFirstBlockOfType<T>()
Declaration
public T GetFirstBlockOfType<T>()
where T : MyCubeBlock
Returns
Type Parameters
GetGridGroup(GridLinkTypeEnum)
Declaration
public IMyGridGroupData GetGridGroup(GridLinkTypeEnum linkTypeEnum)
Parameters
Returns
GetIntersectionWithLine(ref LineD, ref MyCubeGrid.MyCubeGridHitInfo, IntersectionFlags)
Declaration
public bool GetIntersectionWithLine(ref LineD line, ref MyCubeGrid.MyCubeGridHitInfo info, IntersectionFlags flags)
Parameters
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
GetIntersectionWithSphere(ref BoundingSphereD)
Declaration
public override bool GetIntersectionWithSphere(ref BoundingSphereD sphere)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
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
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
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
Returns
| Type |
Description |
| System.Single |
|
GetMaxThrustInDirection(Base6Directions.Direction)
Declaration
public float GetMaxThrustInDirection(Base6Directions.Direction direction)
Parameters
Returns
| Type |
Description |
| System.Single |
|
GetObjectBuilder(Boolean)
Declaration
public override MyObjectBuilder_EntityBase GetObjectBuilder(bool copy = false)
Parameters
| Type |
Name |
Description |
| System.Boolean |
copy |
|
Returns
Overrides
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
GetShapesFromPosition(Vector3I)
Declaration
public List<HkShape> GetShapesFromPosition(Vector3I pos)
Parameters
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
GetTargetGrid()
Obtain grid that player is aiming/looking at.
Declaration
public static MyCubeGrid GetTargetGrid()
Returns
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
GridIntegerToWorld(Vector3D)
Declaration
public Vector3D GridIntegerToWorld(Vector3D gridCoords)
Parameters
| Type |
Name |
Description |
| Vector3D |
gridCoords |
|
Returns
GridIntegerToWorld(Vector3I)
Declaration
public Vector3D GridIntegerToWorld(Vector3I gridCoords)
Parameters
| Type |
Name |
Description |
| Vector3I |
gridCoords |
|
Returns
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
Init(MyObjectBuilder_EntityBase)
Declaration
public override void Init(MyObjectBuilder_EntityBase objectBuilder)
Parameters
Overrides
InvokeDepressurizeEffect(Vector3I, Vector3I)
Declaration
public void InvokeDepressurizeEffect(Vector3I from, Vector3I to)
Parameters
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
Returns
| Type |
Description |
| System.Boolean |
|
IsDirty()
Declaration
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
Returns
| Type |
Description |
| System.Boolean |
|
IsInSameLogicalGroupAs(IMyCubeGrid)
Declaration
public bool IsInSameLogicalGroupAs(IMyCubeGrid other)
Parameters
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
Returns
| Type |
Description |
| System.Boolean |
|
IsSameConstructAs(IMyCubeGrid)
Declaration
public bool IsSameConstructAs(IMyCubeGrid other)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
IsTouchingAnyNeighbor(Vector3I, Vector3I)
Declaration
public bool IsTouchingAnyNeighbor(Vector3I min, Vector3I max)
Parameters
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
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
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
OnChangeOwnersRequestConfirmation(Guid, Int64, Boolean)
Declaration
[Event(null, 10706)]
[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, 10032)]
[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, 5453)]
[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, 11332)]
[Reliable]
[Server]
public void OnLogHierarchy()
OnRemovedFromScene(Object)
Declaration
public override void OnRemovedFromScene(object source)
Parameters
| Type |
Name |
Description |
| System.Object |
source |
|
Overrides
OnReplicationEnded()
Declaration
public override void OnReplicationEnded()
Overrides
OnReplicationStarted()
Declaration
public override void OnReplicationStarted()
Overrides
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, List<UInt64>)
Declaration
public void PasteBlocksToGrid(List<MyObjectBuilder_CubeGrid> gridsToMerge, long inventoryEntityId, bool instantBuild, [Nullable] List<ulong> clientDLCIDs = null)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.List<MyObjectBuilder_CubeGrid> |
gridsToMerge |
|
| System.Int64 |
inventoryEntityId |
|
| 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
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, 11514)]
[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
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
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 |
|
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
RazeBlocksClient(List<Vector3I>)
Declaration
[Event(null, 4510)]
[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
RazeBlocksRequest(List<Vector3I>, Int64, UInt64)
user is used only if locally invoked, if invoked from client, sender steam id is used
Declaration
[Event(null, 4478)]
[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 |
|
RecalculateGravity()
Declaration
public void RecalculateGravity()
RecalculateOwners()
Declaration
public void RecalculateOwners()
ReceiveHandbrakeRequestResult(MyCubeGrid.HandbrakeToggleResult, String)
Declaration
[Event(null, 10140)]
[Reliable]
[Client]
public void ReceiveHandbrakeRequestResult(MyCubeGrid.HandbrakeToggleResult result, string message)
Parameters
ReceiveParkRequestResult(MyCubeGrid.HandbrakeToggleResult, String)
Declaration
[Event(null, 10194)]
[Reliable]
[Client]
public void ReceiveParkRequestResult(MyCubeGrid.HandbrakeToggleResult result, string message)
Parameters
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
RegisterOccupiedBlock(MyCockpit)
Declaration
public void RegisterOccupiedBlock(MyCockpit block)
Parameters
RegisterUnsafeBlock(MyCubeBlock)
Declaration
public void RegisterUnsafeBlock(MyCubeBlock block)
Parameters
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, 3690)]
[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, Boolean)
Declaration
public void RemoveBlockWithId(Vector3I position, bool updatePhysics = false)
Parameters
| Type |
Name |
Description |
| Vector3I |
position |
|
| System.Boolean |
updatePhysics |
|
RemoveContainerDropComponent(Int64)
Declaration
[Event(null, 11538)]
[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
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
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()
SendGridCloseRequest()
Declaration
public void SendGridCloseRequest()
SendHudNotificationAfterPaste()
Declaration
[Event(null, 9728)]
[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
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
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, 1837)]
[Reliable]
[Client]
public static void ShowMessageGridsRemovedWhilePasting()
ShowMessageGridsRemovedWhilePastingInternal()
Declaration
public static void ShowMessageGridsRemovedWhilePastingInternal()
ShowPasteFailedOperation()
Declaration
[Event(null, 9722)]
[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
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
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
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
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
StopReplay()
Declaration
StopSmoke()
Declaration
[Event(null, 11562)]
[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
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
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, 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, bool wheelsAsCylinders = true)
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 |
|
| System.Boolean |
wheelsAsCylinders |
|
Returns
| Type |
Description |
| System.Boolean |
|
TestBlockPlacementArea(MyCubeGrid, ref MyGridPlacementSettings, MyBlockOrientation, MyCubeBlockDefinition, ref Vector3D, ref Quaternion, ref Vector3, ref BoundingBoxD, UInt64, MyEntity, Boolean, 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, bool wheelsAsCylinders = true)
Parameters
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
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, 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, bool wheelsAsCylinders = true)
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 |
|
| System.Boolean |
wheelsAsCylinders |
|
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, 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, bool wheelsAsCylinders = true)
Parameters
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
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, 10119)]
[Reliable]
[Server]
public void ToggleHandbrakeRequest()
ToggleParkStateRequest()
Declaration
[Event(null, 10173)]
[Reliable]
[Server]
public void ToggleParkStateRequest()
ToString()
Declaration
public override string ToString()
Returns
| Type |
Description |
| System.String |
|
Overrides
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, 3705)]
[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 |
|
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
TryGetCube(Vector3I, out MyCube)
Declaration
public bool TryGetCube(Vector3I position, out MyCube cube)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
TryPasteGrid_Implementation(MyCubeGrid.MyPasteGridParameters)
Declaration
[Event(null, 9634)]
[Reliable]
[Server]
public static void TryPasteGrid_Implementation(MyCubeGrid.MyPasteGridParameters parameters)
Parameters
TryRayCastGrid(ref LineD, out MyCubeGrid, out Vector3D)
Declaration
public static bool TryRayCastGrid(ref LineD worldRay, out MyCubeGrid hitGrid, out Vector3D worldHitPos)
Parameters
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
UnregisterOccupiedBlock(MyCockpit)
Declaration
public void UnregisterOccupiedBlock(MyCockpit block)
Parameters
UnregisterUnsafeBlock(MyCubeBlock)
Declaration
public void UnregisterUnsafeBlock(MyCubeBlock block)
Parameters
UpdateAfterSimulation()
Declaration
public override void UpdateAfterSimulation()
Overrides
UpdateAfterSimulation10()
Declaration
public override void UpdateAfterSimulation10()
Overrides
UpdateAfterSimulation100()
Declaration
public override void UpdateAfterSimulation100()
Overrides
UpdateAfterSimulationParallel()
Declaration
public void UpdateAfterSimulationParallel()
UpdateBeforeSimulation()
Declaration
public override void UpdateBeforeSimulation()
Overrides
UpdateBeforeSimulation10()
Declaration
public override void UpdateBeforeSimulation10()
Overrides
UpdateBeforeSimulation100()
Declaration
public override void UpdateBeforeSimulation100()
Overrides
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
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
UpdatePredictionFlag()
Declaration
public void UpdatePredictionFlag()
UpdateTimeOnClients(Int32)
Declaration
[Event(null, 1843)]
[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
Returns
WorldToGridScaledLocal(Vector3D)
Declaration
public Vector3D WorldToGridScaledLocal(Vector3D coords)
Parameters
Returns
Events
GridPresenceTierChanged
Declaration
public event Action<MyCubeGrid> GridPresenceTierChanged
Event Type
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
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
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.
- It is called when all group changes
- It is called AFTER all group changes, so GetConnectedGrids returning correct results
Declaration
public event Action<MyCubeGrid, GridLinkTypeEnum> OnConnectionChangeCompleted
Event Type
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
OnDeschedule
Declaration
public event Action OnDeschedule
Event Type
| Type |
Description |
| System.Action |
|
OnDynamicNPCGridOrSubgridShooting
Declaration
public event Action<MyCubeGrid> OnDynamicNPCGridOrSubgridShooting
Event Type
OnFatBlockAdded
Declaration
public event Action<MyCubeBlock> OnFatBlockAdded
Event Type
OnFatBlockClosed
Declaration
public event Action<MyCubeBlock> OnFatBlockClosed
Event Type
OnFatBlockRemoved
Declaration
public event Action<MyCubeBlock> OnFatBlockRemoved
Event Type
OnGridBlockDamaged
Declaration
public event Action<IMySlimBlock, float, Nullable<MyHitInfo>, long> OnGridBlockDamaged
Event Type
OnGridChanged
Declaration
public event Action<MyCubeGrid> OnGridChanged
Event Type
OnGridMarkedDirty
Declaration
public event Action<MyCubeGrid> OnGridMarkedDirty
Event Type
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
OnGridSplit
Declaration
public event Action<MyCubeGrid, MyCubeGrid> OnGridSplit
Event Type
OnHavokSystemIDChanged
Declaration
public event Action<int> OnHavokSystemIDChanged
Event Type
| Type |
Description |
| System.Action<System.Int32> |
|
OnHierarchyUpdated
Declaration
public event Action<MyCubeGrid> OnHierarchyUpdated
Event Type
OnIsStaticChanged
Declaration
public event Action<bool> OnIsStaticChanged
Event Type
| Type |
Description |
| System.Action<System.Boolean> |
|
OnMassPropertiesChanged
Declaration
public event Action<MyCubeGrid> OnMassPropertiesChanged
Event Type
OnMaxThrustChanged
May be called from parallel thread
Declaration
public event Action<MyCubeGrid> OnMaxThrustChanged
Event Type
OnMinMaxChanged
Declaration
public event Action<MyCubeGrid, Vector3I, Vector3I> OnMinMaxChanged
Event Type
OnNameChanged
Declaration
public event Action<MyCubeGrid> OnNameChanged
Event Type
OnNaturalGravityChanged
Declaration
public event Action<IMyCubeGrid> OnNaturalGravityChanged
Event Type
OnSolarOccludedChanged
Declaration
public event Action<MyCubeGrid> OnSolarOccludedChanged
Event Type
OnSplitGridCreated
Declaration
public static event Action<MyCubeGrid> OnSplitGridCreated
Event Type
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
OnTargetLockLost
Declaration
public event Action OnTargetLockLost
Event Type
| Type |
Description |
| System.Action |
|
PlayerPresenceTierChanged
Declaration
public event Action<MyCubeGrid> PlayerPresenceTierChanged
Event Type
SpeedChanged
Declaration
public event Action<IMyCubeGrid> SpeedChanged
Event Type
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
Returns
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 |
|
Declaration
void IMyCubeGrid.ApplyDestructionDeformation(IMySlimBlock block)
Parameters
IMyCubeGrid.BigOwners
Declaration
List<long> IMyCubeGrid.BigOwners { get; }
Returns
| Type |
Description |
| System.Collections.Generic.List<System.Int64> |
|
Declaration
MatrixI IMyCubeGrid.CalculateMergeTransform(IMyCubeGrid gridToMerge, Vector3I gridOffset)
Parameters
Returns
IMyCubeGrid.CanAddCube(Vector3I)
Declaration
bool IMyCubeGrid.CanAddCube(Vector3I pos)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
IMyCubeGrid.CanAddCubes(Vector3I, Vector3I)
Declaration
bool IMyCubeGrid.CanAddCubes(Vector3I min, Vector3I max)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
IMyCubeGrid.CanMergeCubes(IMyCubeGrid, Vector3I)
Declaration
bool IMyCubeGrid.CanMergeCubes(IMyCubeGrid gridToMerge, Vector3I gridOffset)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
IMyCubeGrid.ChangeGridOwnership(Int64, MyOwnershipShareModeEnum)
Declaration
void IMyCubeGrid.ChangeGridOwnership(long playerId, MyOwnershipShareModeEnum shareMode)
Parameters
IMyCubeGrid.ClearSymmetries()
Declaration
void IMyCubeGrid.ClearSymmetries()
IMyCubeGrid.ColorBlocks(Vector3I, Vector3I, Vector3)
Declaration
void IMyCubeGrid.ColorBlocks(Vector3I min, Vector3I max, Vector3 newHSV)
Parameters
IMyCubeGrid.ControlSystem
Declaration
IMyGridControlSystem IMyCubeGrid.ControlSystem { get; }
Returns
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
IMyCubeGrid.GasSystem
Can be null if oxygen is disabled
Declaration
IMyGridGasSystem IMyCubeGrid.GasSystem { get; }
Returns
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
Returns
| Type |
Description |
| System.Collections.Generic.List<IMySlimBlock> |
|
IMyCubeGrid.GetClosestCorner(Vector3I, Vector3)
Declaration
Vector3 IMyCubeGrid.GetClosestCorner(Vector3I gridPos, Vector3 position)
Parameters
Returns
IMyCubeGrid.GetCubeBlock(Vector3I)
Declaration
IMySlimBlock IMyCubeGrid.GetCubeBlock(Vector3I pos)
Parameters
Returns
IMyCubeGrid.GetFatBlocks<T>()
Declaration
IEnumerable<T> IMyCubeGrid.GetFatBlocks<T>()
where T : class, IMyCubeBlock
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<T> |
|
Type Parameters
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
IMyCubeGrid.GridPresenceTierChanged
Declaration
event Action<IMyCubeGrid> IMyCubeGrid.GridPresenceTierChanged
Returns
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
Returns
| Type |
Description |
| System.Boolean |
|
IMyCubeGrid.JumpSystem
Declaration
IMyGridJumpDriveSystem IMyCubeGrid.JumpSystem { get; }
Returns
IMyCubeGrid.MergeGrid_MergeBlock(IMyCubeGrid, Vector3I)
Declaration
IMyCubeGrid IMyCubeGrid.MergeGrid_MergeBlock(IMyCubeGrid gridToMerge, Vector3I gridOffset)
Parameters
Returns
IMyCubeGrid.OnBlockAdded
Declaration
event Action<IMySlimBlock> IMyCubeGrid.OnBlockAdded
Returns
IMyCubeGrid.OnBlockIntegrityChanged
Declaration
event Action<IMySlimBlock> IMyCubeGrid.OnBlockIntegrityChanged
Returns
IMyCubeGrid.OnBlockOwnershipChanged
Declaration
event Action<IMyCubeGrid> IMyCubeGrid.OnBlockOwnershipChanged
Returns
IMyCubeGrid.OnBlockRemoved
Declaration
event Action<IMySlimBlock> IMyCubeGrid.OnBlockRemoved
Returns
IMyCubeGrid.OnGridChanged
Declaration
event Action<IMyCubeGrid> IMyCubeGrid.OnGridChanged
Returns
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
IMyCubeGrid.OnGridSplit
Declaration
event Action<IMyCubeGrid, IMyCubeGrid> IMyCubeGrid.OnGridSplit
Returns
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
IMyCubeGrid.PlayerPresenceTier
Declaration
MyUpdateTiersPlayerPresence IMyCubeGrid.PlayerPresenceTier { get; }
Returns
IMyCubeGrid.PlayerPresenceTierChanged
Declaration
event Action<IMyCubeGrid> IMyCubeGrid.PlayerPresenceTierChanged
Returns
IMyCubeGrid.RayCastBlocks(Vector3D, Vector3D)
Declaration
Nullable<Vector3I> IMyCubeGrid.RayCastBlocks(Vector3D worldStart, Vector3D worldEnd)
Parameters
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
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
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
IMyCubeGrid.ResourceDistributor
Declaration
IMyResourceDistributorComponent IMyCubeGrid.ResourceDistributor { get; }
Returns
IMyCubeGrid.SkinBlocks(Vector3I, Vector3I, Nullable<Vector3>, String)
Declaration
void IMyCubeGrid.SkinBlocks(Vector3I min, Vector3I max, Nullable<Vector3> newHSV, string newSkin)
Parameters
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
IMyCubeGrid.SplitByPlane(PlaneD)
Declaration
IMyCubeGrid IMyCubeGrid.SplitByPlane(PlaneD plane)
Parameters
| Type |
Name |
Description |
| PlaneD |
plane |
|
Returns
IMyCubeGrid.UpdateBlockNeighbours(IMySlimBlock)
Declaration
void IMyCubeGrid.UpdateBlockNeighbours(IMySlimBlock block)
Parameters
IMyCubeGrid.WeaponSystem
Declaration
IMyGridWeaponSystem IMyCubeGrid.WeaponSystem { get; }
Returns
IMyCubeGrid.WillRemoveBlockSplitGrid(IMySlimBlock)
Declaration
bool IMyCubeGrid.WillRemoveBlockSplitGrid(IMySlimBlock testBlock)
Parameters
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
Returns
IMyCubeGrid.IsSameConstructAs(IMyCubeGrid)
Declaration
bool IMyCubeGrid.IsSameConstructAs(IMyCubeGrid other)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
IMyCubeGrid.WorldToGridInteger(Vector3D)
Declaration
Vector3I IMyCubeGrid.WorldToGridInteger(Vector3D coords)
Parameters
Returns
Implements
Extension Methods