Space Engineers
Public Member Functions | Public Attributes | List of all members
Sandbox.Game.Entities.Cube.MyCubeGridMultiBlockInfo Class Reference

Helper data for multiblock in a grid. More...

Public Member Functions

bool GetTransform (out MatrixI transform)
 
bool GetBoundingBox (out Vector3I min, out Vector3I max)
 Returns multiblok min and max grid coordinates. More...
 
bool GetMissingBlocks (out MatrixI transform, List< int > multiBlockIndices)
 
bool CanAddBlock (ref Vector3I otherGridPositionMin, ref Vector3I otherGridPositionMax, MyBlockOrientation otherOrientation, MyCubeBlockDefinition otherDefinition)
 Check if other block can be added to area of multiblock. More...
 
bool IsFractured ()
 
float GetTotalMaxIntegrity ()
 

Public Attributes

int MultiBlockId
 
MyMultiBlockDefinition MultiBlockDefinition
 
MyCubeBlockDefinition MainBlockDefinition
 
HashSet< MySlimBlockBlocks = new HashSet<MySlimBlock>()
 

Detailed Description

Helper data for multiblock in a grid.

Definition at line 14 of file MyCubeGridMultiBlockInfo.cs.

Member Function Documentation

bool Sandbox.Game.Entities.Cube.MyCubeGridMultiBlockInfo.CanAddBlock ( ref Vector3I  otherGridPositionMin,
ref Vector3I  otherGridPositionMax,
MyBlockOrientation  otherOrientation,
MyCubeBlockDefinition  otherDefinition 
)
inline

Check if other block can be added to area of multiblock.

Definition at line 80 of file MyCubeGridMultiBlockInfo.cs.

bool Sandbox.Game.Entities.Cube.MyCubeGridMultiBlockInfo.GetBoundingBox ( out Vector3I  min,
out Vector3I  max 
)
inline

Returns multiblok min and max grid coordinates.

Definition at line 47 of file MyCubeGridMultiBlockInfo.cs.

bool Sandbox.Game.Entities.Cube.MyCubeGridMultiBlockInfo.GetMissingBlocks ( out MatrixI  transform,
List< int >  multiBlockIndices 
)
inline

Definition at line 63 of file MyCubeGridMultiBlockInfo.cs.

float Sandbox.Game.Entities.Cube.MyCubeGridMultiBlockInfo.GetTotalMaxIntegrity ( )
inline

Definition at line 156 of file MyCubeGridMultiBlockInfo.cs.

bool Sandbox.Game.Entities.Cube.MyCubeGridMultiBlockInfo.GetTransform ( out MatrixI  transform)
inline

Definition at line 24 of file MyCubeGridMultiBlockInfo.cs.

bool Sandbox.Game.Entities.Cube.MyCubeGridMultiBlockInfo.IsFractured ( )
inline

Definition at line 145 of file MyCubeGridMultiBlockInfo.cs.

Member Data Documentation

HashSet<MySlimBlock> Sandbox.Game.Entities.Cube.MyCubeGridMultiBlockInfo.Blocks = new HashSet<MySlimBlock>()

Definition at line 22 of file MyCubeGridMultiBlockInfo.cs.

MyCubeBlockDefinition Sandbox.Game.Entities.Cube.MyCubeGridMultiBlockInfo.MainBlockDefinition

Definition at line 21 of file MyCubeGridMultiBlockInfo.cs.

MyMultiBlockDefinition Sandbox.Game.Entities.Cube.MyCubeGridMultiBlockInfo.MultiBlockDefinition

Definition at line 19 of file MyCubeGridMultiBlockInfo.cs.

int Sandbox.Game.Entities.Cube.MyCubeGridMultiBlockInfo.MultiBlockId

Definition at line 18 of file MyCubeGridMultiBlockInfo.cs.


The documentation for this class was generated from the following file: