Space Engineers
Classes | Public Member Functions | Static Public Member Functions | Properties | List of all members
Sandbox.Game.GameSystems.Conveyors.MyConveyorLine Class Reference
Inheritance diagram for Sandbox.Game.GameSystems.Conveyors.MyConveyorLine:
VRage.Algorithms.IMyPathEdge< IMyConveyorEndpoint >

Classes

struct  BlockLinePositionInformation
 
class  InvertedConductivity
 
struct  LinePositionEnumerator
 Enumerates inner line positions (i.e. not endpoint positions) More...
 

Public Member Functions

 MyConveyorLine ()
 
MyObjectBuilder_ConveyorLine GetObjectBuilder ()
 
void Init (MyObjectBuilder_ConveyorLine objectBuilder, MyCubeGrid cubeGrid)
 
void Init (ConveyorLinePosition endpoint1, ConveyorLinePosition endpoint2, MyCubeGrid cubeGrid, MyObjectBuilder_ConveyorLine.LineType type, MyObjectBuilder_ConveyorLine.LineConductivity conductivity=MyObjectBuilder_ConveyorLine.LineConductivity.FULL, Vector3I?corner=null)
 
void InitEndpoints (IMyConveyorEndpoint endpoint1, IMyConveyorEndpoint endpoint2)
 
IMyConveyorEndpoint GetEndpoint (int index)
 
void SetEndpoint (int index, IMyConveyorEndpoint endpoint)
 
ConveyorLinePosition GetEndpointPosition (int index)
 
void RecalculateConductivity ()
 
void Merge (MyConveyorLine mergingLine, IMyConveyorSegmentBlock newlyAddedBlock=null)
 Merges the other line into this line More...
 
void MergeInternal (MyConveyorLine mergingLine, IMyConveyorSegmentBlock newlyAddedBlock=null)
 
bool CheckSectionConsistency ()
 
void Reverse ()
 Helper method that reverses the direction of the line. This method serves as a helper for the merging and splitting methods and should be relatively quick, because each added or removed conveyor block will trigger line merging or splitting. Once this won't be the case, consider refactoring the places from where this method is called. More...
 
void DisconnectEndpoint (IMyConveyorEndpoint endpoint)
 
IEnumerator< Vector3IGetEnumerator ()
 
float GetWeight ()
 
IMyConveyorEndpoint GetOtherVertex (IMyConveyorEndpoint endpoint)
 
override string ToString ()
 
MyConveyorLine RemovePortion (Vector3I startPosition, Vector3I endPosition)
 Returns a conveyor line that is newly created by removing a segment in position "position" More...
 
void StopQueuesIfNeeded ()
 
void Update ()
 
void BigUpdate ()
 
void UpdateIsFunctional ()
 
void UpdateIsWorking ()
 
void PrepareForDraw (MyCubeGrid grid)
 
void DebugDraw (MyCubeGrid grid)
 
void DebugDrawPackets ()
 
- Public Member Functions inherited from VRage.Algorithms.IMyPathEdge< IMyConveyorEndpoint >
float GetWeight ()
 
GetOtherVertex (V vertex1)
 Returns the other vertex on this edge. Can return null, if the edge is a loop or if the edge is not traversable More...
 

Static Public Member Functions

static BlockLinePositionInformation[] GetBlockLinePositions (MyCubeBlock block)
 

Properties

bool IsFunctional [get]
 
bool IsWorking [get]
 
int Length [get]
 
bool IsDegenerate [get]
 
bool IsCircular [get]
 
bool HasNullEndpoints [get]
 
bool IsDisconnected [get]
 
bool IsEmpty [get]
 
MyObjectBuilder_ConveyorLine.LineType Type [get]
 
MyObjectBuilder_ConveyorLine.LineConductivity Conductivity [get]
 

Detailed Description

Definition at line 37 of file MyConveyorLine.cs.

Constructor & Destructor Documentation

Sandbox.Game.GameSystems.Conveyors.MyConveyorLine.MyConveyorLine ( )
inline

Definition at line 274 of file MyConveyorLine.cs.

Member Function Documentation

void Sandbox.Game.GameSystems.Conveyors.MyConveyorLine.BigUpdate ( )
inline

Definition at line 1337 of file MyConveyorLine.cs.

bool Sandbox.Game.GameSystems.Conveyors.MyConveyorLine.CheckSectionConsistency ( )
inline

Definition at line 838 of file MyConveyorLine.cs.

void Sandbox.Game.GameSystems.Conveyors.MyConveyorLine.DebugDraw ( MyCubeGrid  grid)
inline

Definition at line 1449 of file MyConveyorLine.cs.

void Sandbox.Game.GameSystems.Conveyors.MyConveyorLine.DebugDrawPackets ( )
inline

Definition at line 1473 of file MyConveyorLine.cs.

void Sandbox.Game.GameSystems.Conveyors.MyConveyorLine.DisconnectEndpoint ( IMyConveyorEndpoint  endpoint)
inline

Definition at line 900 of file MyConveyorLine.cs.

static BlockLinePositionInformation [] Sandbox.Game.GameSystems.Conveyors.MyConveyorLine.GetBlockLinePositions ( MyCubeBlock  block)
inlinestatic

Definition at line 598 of file MyConveyorLine.cs.

IMyConveyorEndpoint Sandbox.Game.GameSystems.Conveyors.MyConveyorLine.GetEndpoint ( int  index)
inline

Definition at line 562 of file MyConveyorLine.cs.

ConveyorLinePosition Sandbox.Game.GameSystems.Conveyors.MyConveyorLine.GetEndpointPosition ( int  index)
inline

Definition at line 588 of file MyConveyorLine.cs.

IEnumerator<Vector3I> Sandbox.Game.GameSystems.Conveyors.MyConveyorLine.GetEnumerator ( )
inline

Definition at line 910 of file MyConveyorLine.cs.

MyObjectBuilder_ConveyorLine Sandbox.Game.GameSystems.Conveyors.MyConveyorLine.GetObjectBuilder ( )
inline

Definition at line 291 of file MyConveyorLine.cs.

IMyConveyorEndpoint Sandbox.Game.GameSystems.Conveyors.MyConveyorLine.GetOtherVertex ( IMyConveyorEndpoint  endpoint)
inline

Definition at line 925 of file MyConveyorLine.cs.

float Sandbox.Game.GameSystems.Conveyors.MyConveyorLine.GetWeight ( )
inline

Definition at line 920 of file MyConveyorLine.cs.

void Sandbox.Game.GameSystems.Conveyors.MyConveyorLine.Init ( MyObjectBuilder_ConveyorLine  objectBuilder,
MyCubeGrid  cubeGrid 
)
inline

Definition at line 358 of file MyConveyorLine.cs.

void Sandbox.Game.GameSystems.Conveyors.MyConveyorLine.Init ( ConveyorLinePosition  endpoint1,
ConveyorLinePosition  endpoint2,
MyCubeGrid  cubeGrid,
MyObjectBuilder_ConveyorLine.LineType  type,
MyObjectBuilder_ConveyorLine.LineConductivity  conductivity = MyObjectBuilder_ConveyorLine.LineConductivity.FULL,
Vector3I corner = null 
)
inline

Definition at line 423 of file MyConveyorLine.cs.

void Sandbox.Game.GameSystems.Conveyors.MyConveyorLine.InitEndpoints ( IMyConveyorEndpoint  endpoint1,
IMyConveyorEndpoint  endpoint2 
)
inline

Definition at line 470 of file MyConveyorLine.cs.

void Sandbox.Game.GameSystems.Conveyors.MyConveyorLine.Merge ( MyConveyorLine  mergingLine,
IMyConveyorSegmentBlock  newlyAddedBlock = null 
)
inline

Merges the other line into this line

Definition at line 745 of file MyConveyorLine.cs.

void Sandbox.Game.GameSystems.Conveyors.MyConveyorLine.MergeInternal ( MyConveyorLine  mergingLine,
IMyConveyorSegmentBlock  newlyAddedBlock = null 
)
inline

Definition at line 778 of file MyConveyorLine.cs.

void Sandbox.Game.GameSystems.Conveyors.MyConveyorLine.PrepareForDraw ( MyCubeGrid  grid)
inline

Definition at line 1418 of file MyConveyorLine.cs.

void Sandbox.Game.GameSystems.Conveyors.MyConveyorLine.RecalculateConductivity ( )
inline

Definition at line 676 of file MyConveyorLine.cs.

MyConveyorLine Sandbox.Game.GameSystems.Conveyors.MyConveyorLine.RemovePortion ( Vector3I  startPosition,
Vector3I  endPosition 
)
inline

Returns a conveyor line that is newly created by removing a segment in position "position"

Definition at line 970 of file MyConveyorLine.cs.

void Sandbox.Game.GameSystems.Conveyors.MyConveyorLine.Reverse ( )
inline

Helper method that reverses the direction of the line. This method serves as a helper for the merging and splitting methods and should be relatively quick, because each added or removed conveyor block will trigger line merging or splitting. Once this won't be the case, consider refactoring the places from where this method is called.

Definition at line 861 of file MyConveyorLine.cs.

void Sandbox.Game.GameSystems.Conveyors.MyConveyorLine.SetEndpoint ( int  index,
IMyConveyorEndpoint  endpoint 
)
inline

Definition at line 572 of file MyConveyorLine.cs.

void Sandbox.Game.GameSystems.Conveyors.MyConveyorLine.StopQueuesIfNeeded ( )
inline

Definition at line 1309 of file MyConveyorLine.cs.

override string Sandbox.Game.GameSystems.Conveyors.MyConveyorLine.ToString ( )
inline

Definition at line 962 of file MyConveyorLine.cs.

void Sandbox.Game.GameSystems.Conveyors.MyConveyorLine.Update ( )
inline

Definition at line 1327 of file MyConveyorLine.cs.

void Sandbox.Game.GameSystems.Conveyors.MyConveyorLine.UpdateIsFunctional ( )
inline

Definition at line 1368 of file MyConveyorLine.cs.

void Sandbox.Game.GameSystems.Conveyors.MyConveyorLine.UpdateIsWorking ( )
inline

Definition at line 1374 of file MyConveyorLine.cs.

Property Documentation

MyObjectBuilder_ConveyorLine.LineConductivity Sandbox.Game.GameSystems.Conveyors.MyConveyorLine.Conductivity
get

Definition at line 267 of file MyConveyorLine.cs.

bool Sandbox.Game.GameSystems.Conveyors.MyConveyorLine.HasNullEndpoints
get

Definition at line 235 of file MyConveyorLine.cs.

bool Sandbox.Game.GameSystems.Conveyors.MyConveyorLine.IsCircular
get

Definition at line 227 of file MyConveyorLine.cs.

bool Sandbox.Game.GameSystems.Conveyors.MyConveyorLine.IsDegenerate
get

Definition at line 218 of file MyConveyorLine.cs.

bool Sandbox.Game.GameSystems.Conveyors.MyConveyorLine.IsDisconnected
get

Definition at line 243 of file MyConveyorLine.cs.

bool Sandbox.Game.GameSystems.Conveyors.MyConveyorLine.IsEmpty
get

Definition at line 251 of file MyConveyorLine.cs.

bool Sandbox.Game.GameSystems.Conveyors.MyConveyorLine.IsFunctional
get

Definition at line 192 of file MyConveyorLine.cs.

bool Sandbox.Game.GameSystems.Conveyors.MyConveyorLine.IsWorking
get

Definition at line 200 of file MyConveyorLine.cs.

int Sandbox.Game.GameSystems.Conveyors.MyConveyorLine.Length
get

Definition at line 210 of file MyConveyorLine.cs.

MyObjectBuilder_ConveyorLine.LineType Sandbox.Game.GameSystems.Conveyors.MyConveyorLine.Type
get

Definition at line 259 of file MyConveyorLine.cs.


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