Space Engineers
Classes | Public Member Functions | Static Public Attributes | Protected Member Functions | Properties | List of all members
Sandbox.Game.Entities.Cube.MyCubeGridSmallToLargeConnection Class Reference

Class which handles small block to large one connection. Such connection creates block and grid groups so connected grids can be copied together. It is done on server and client, but client uses it only for groups (copying of all grids together), dynamic grid testing is processed on server only. More...

Inheritance diagram for Sandbox.Game.Entities.Cube.MyCubeGridSmallToLargeConnection:
VRage.Game.Components.MySessionComponentBase VRage.Game.Components.Interfaces.IMyUserInputComponent

Public Member Functions

 MyCubeGridSmallToLargeConnection ()
 
override void LoadData ()
 
bool AddBlockSmallToLargeConnection (MySlimBlock block)
 Adds small/large block static connections and creates links. Returns true if the block connects to any other block. More...
 
bool TestGridSmallToLargeConnection (MyCubeGrid smallGrid)
 Tests whether the given small grid connects to any large static block. More...
 
- Public Member Functions inherited from VRage.Game.Components.MySessionComponentBase
virtual bool UpdatedBeforeInit ()
 
 MySessionComponentBase ()
 
void SetUpdateOrder (MyUpdateOrder order)
 
virtual void InitFromDefinition (MySessionComponentDefinition definition)
 
virtual void Init (MyObjectBuilder_SessionComponent sessionComponent)
 
virtual MyObjectBuilder_SessionComponent GetObjectBuilder ()
 
void AfterLoadData ()
 
void UnloadDataConditional ()
 
virtual void SaveData ()
 
virtual void BeforeStart ()
 
virtual void UpdateBeforeSimulation ()
 
virtual void Simulate ()
 
virtual void UpdateAfterSimulation ()
 
virtual void UpdatingStopped ()
 
virtual void Draw ()
 
virtual void HandleInput ()
 
override string ToString ()
 

Static Public Attributes

static MyCubeGridSmallToLargeConnection Static
 

Protected Member Functions

override void UnloadData ()
 

Properties

override bool IsRequiredByGame [get]
 
- Properties inherited from VRage.Game.Components.MySessionComponentBase
MyUpdateOrder UpdateOrder [get]
 
MyObjectBuilderType ObjectBuilderType [get]
 
bool Loaded [get]
 
bool Initialized [get]
 
MyDefinitionId Definition [get, set]
 
virtual Type[] Dependencies [get]
 
virtual bool IsRequiredByGame [get]
 Indicates whether a session component should be used in current configuration. Example: MyDestructionData component returns true only when game uses Havok Destruction More...
 

Additional Inherited Members

- Public Attributes inherited from VRage.Game.Components.MySessionComponentBase
readonly string DebugName
 
readonly int Priority
 
readonly Type ComponentType
 
IMySession Session
 

Detailed Description

Class which handles small block to large one connection. Such connection creates block and grid groups so connected grids can be copied together. It is done on server and client, but client uses it only for groups (copying of all grids together), dynamic grid testing is processed on server only.

Definition at line 47 of file MyCubeGridSmallToLargeConnection.cs.

Constructor & Destructor Documentation

Sandbox.Game.Entities.Cube.MyCubeGridSmallToLargeConnection.MyCubeGridSmallToLargeConnection ( )
inline

Definition at line 89 of file MyCubeGridSmallToLargeConnection.cs.

Member Function Documentation

bool Sandbox.Game.Entities.Cube.MyCubeGridSmallToLargeConnection.AddBlockSmallToLargeConnection ( MySlimBlock  block)
inline

Adds small/large block static connections and creates links. Returns true if the block connects to any other block.

Definition at line 436 of file MyCubeGridSmallToLargeConnection.cs.

override void Sandbox.Game.Entities.Cube.MyCubeGridSmallToLargeConnection.LoadData ( )
inlinevirtual
bool Sandbox.Game.Entities.Cube.MyCubeGridSmallToLargeConnection.TestGridSmallToLargeConnection ( MyCubeGrid  smallGrid)
inline

Tests whether the given small grid connects to any large static block.

Returns
true if small grid connects to a latge grid otherwise false

Definition at line 694 of file MyCubeGridSmallToLargeConnection.cs.

override void Sandbox.Game.Entities.Cube.MyCubeGridSmallToLargeConnection.UnloadData ( )
inlineprotectedvirtual

Member Data Documentation

MyCubeGridSmallToLargeConnection Sandbox.Game.Entities.Cube.MyCubeGridSmallToLargeConnection.Static
static

Definition at line 84 of file MyCubeGridSmallToLargeConnection.cs.

Property Documentation

override bool Sandbox.Game.Entities.Cube.MyCubeGridSmallToLargeConnection.IsRequiredByGame
get

Definition at line 94 of file MyCubeGridSmallToLargeConnection.cs.


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