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

Class that handles cube builder state. More...

Public Member Functions

void UpdateCubeBlockDefinition (MyDefinitionId?id, MatrixD localMatrixAdd)
 
void UpdateBlockDefinitionStages (MyDefinitionId?id)
 
void ChooseComplementBlock ()
 Chooses same cube but for different grid size More...
 
bool HasComplementBlock ()
 Checks if there is complementary block available More...
 
void SetCubeSize (MyCubeSize newCubeSize)
 Sets cube size mode. More...
 

Public Attributes

Dictionary< MyDefinitionId, QuaternionRotationsByDefinitionHash = new Dictionary<MyDefinitionId, Quaternion>(MyDefinitionId.Comparer)
 Store last rotation for each block definition. More...
 
Dictionary< MyDefinitionId, int > StageIndexByDefinitionHash = new Dictionary<MyDefinitionId, int>(MyDefinitionId.Comparer)
 No idea what this one is. More...
 
List< MyCubeBlockDefinitionCurrentBlockDefinitionStages = new List<MyCubeBlockDefinition>()
 Block definition stages. More...
 

Properties

MyCubeBlockDefinition CurrentBlockDefinition [get, set]
 
MyCubeBlockDefinition StartBlockDefinition [get]
 Block definition set on activation of cube builder. More...
 
MyCubeSize CubeSizeMode [get]
 Current cube size mode. More...
 

Detailed Description

Class that handles cube builder state.

Definition at line 19 of file MyCubeBuilderState.cs.

Member Function Documentation

void Sandbox.Game.Entities.Cube.CubeBuilder.MyCubeBuilderState.ChooseComplementBlock ( )
inline

Chooses same cube but for different grid size

Definition at line 167 of file MyCubeBuilderState.cs.

bool Sandbox.Game.Entities.Cube.CubeBuilder.MyCubeBuilderState.HasComplementBlock ( )
inline

Checks if there is complementary block available

Definition at line 194 of file MyCubeBuilderState.cs.

void Sandbox.Game.Entities.Cube.CubeBuilder.MyCubeBuilderState.SetCubeSize ( MyCubeSize  newCubeSize)
inline

Sets cube size mode.

Parameters
newCubeSizeNew cube size mode.

Definition at line 217 of file MyCubeBuilderState.cs.

void Sandbox.Game.Entities.Cube.CubeBuilder.MyCubeBuilderState.UpdateBlockDefinitionStages ( MyDefinitionId id)
inline

Definition at line 144 of file MyCubeBuilderState.cs.

void Sandbox.Game.Entities.Cube.CubeBuilder.MyCubeBuilderState.UpdateCubeBlockDefinition ( MyDefinitionId id,
MatrixD  localMatrixAdd 
)
inline

Definition at line 107 of file MyCubeBuilderState.cs.

Member Data Documentation

List<MyCubeBlockDefinition> Sandbox.Game.Entities.Cube.CubeBuilder.MyCubeBuilderState.CurrentBlockDefinitionStages = new List<MyCubeBlockDefinition>()

Block definition stages.

Definition at line 36 of file MyCubeBuilderState.cs.

Dictionary<MyDefinitionId, Quaternion> Sandbox.Game.Entities.Cube.CubeBuilder.MyCubeBuilderState.RotationsByDefinitionHash = new Dictionary<MyDefinitionId, Quaternion>(MyDefinitionId.Comparer)

Store last rotation for each block definition.

Definition at line 26 of file MyCubeBuilderState.cs.

Dictionary<MyDefinitionId, int> Sandbox.Game.Entities.Cube.CubeBuilder.MyCubeBuilderState.StageIndexByDefinitionHash = new Dictionary<MyDefinitionId, int>(MyDefinitionId.Comparer)

No idea what this one is.

Definition at line 31 of file MyCubeBuilderState.cs.

Property Documentation

MyCubeSize Sandbox.Game.Entities.Cube.CubeBuilder.MyCubeBuilderState.CubeSizeMode
get

Current cube size mode.

Definition at line 101 of file MyCubeBuilderState.cs.

MyCubeBlockDefinition Sandbox.Game.Entities.Cube.CubeBuilder.MyCubeBuilderState.CurrentBlockDefinition
getset

Definition at line 52 of file MyCubeBuilderState.cs.

MyCubeBlockDefinition Sandbox.Game.Entities.Cube.CubeBuilder.MyCubeBuilderState.StartBlockDefinition
get

Block definition set on activation of cube builder.

Definition at line 96 of file MyCubeBuilderState.cs.


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