Space Engineers
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Properties | Events | List of all members
Sandbox.Game.GameSystems.MyGridConveyorSystem Class Reference

Classes

class  ConveyorEndpointMapping
 

Public Member Functions

 MyGridConveyorSystem (MyCubeGrid grid)
 
void BeforeBlockDeserialization (List< MyObjectBuilder_ConveyorLine > lines)
 
MyConveyorLine GetDeserializingLine (ConveyorLinePosition position)
 
MyConveyorLine GetDeserializingLine (Vector3I position)
 
void AfterBlockDeserialization ()
 
void SerializeLines (List< MyObjectBuilder_ConveyorLine > resultList)
 
void AfterGridClose ()
 
void Add (MyCubeBlock block)
 
void Remove (MyCubeBlock block)
 
void AddConveyorBlock (IMyConveyorEndpointBlock endpointBlock)
 
void DebugDraw (MyCubeGrid grid)
 
void DebugDrawLinePackets ()
 
void PrepareForDraw ()
 
void UpdateBeforeSimulation ()
 
void UpdateBeforeSimulation10 ()
 
void FlagForRecomputation ()
 
void UpdateAfterSimulation100 ()
 
float CalculateConsumption ()
 
void RemoveConveyorBlock (IMyConveyorEndpointBlock block)
 
void AddSegmentBlock (IMyConveyorSegmentBlock segmentBlock)
 
void RemoveSegmentBlock (IMyConveyorSegmentBlock segmentBlock)
 
void ToggleConnectors ()
 
ConveyorEndpointMapping GetConveyorEndpointMapping (IMyConveyorEndpointBlock block)
 

Static Public Member Functions

static void AppendReachableEndpoints (IMyConveyorEndpoint source, long playerId, List< IMyConveyorEndpoint > reachable, MyPhysicalInventoryItem item, Predicate< IMyConveyorEndpoint > endpointFilter=null)
 
static bool PullAllRequest (IMyConveyorEndpointBlock start, MyInventory destinationInventory, long playerId, MyInventoryConstraint requestedTypeIds)
 
static bool PullAllRequest (IMyConveyorEndpointBlock start, MyInventory destinationInventory, long playerId, MyObjectBuilderType?typeId=null)
 
static bool PullAllRequest (IMyConveyorEndpointBlock start, MyInventory destinationInventory, long playerId, bool all)
 
static void PrepareTraversal (IMyConveyorEndpoint startingVertex, Predicate< IMyConveyorEndpoint > vertexFilter=null, Predicate< IMyConveyorEndpoint > vertexTraversable=null, Predicate< IMyPathEdge< IMyConveyorEndpoint >> edgeTraversable=null)
 
static MyFixedPoint ItemPullRequest (IMyConveyorEndpointBlock start, MyInventory destinationInventory, long playerId, MyDefinitionId itemId, MyFixedPoint?amount=null, bool remove=false)
 
static MyFixedPoint ConveyorSystemItemAmount (IMyConveyorEndpointBlock start, MyInventory destinationInventory, long playerId, MyDefinitionId itemId)
 
static void PushAnyRequest (IMyConveyorEndpointBlock start, MyInventory srcInventory, long playerId)
 
static bool ItemPushRequest (IMyConveyorEndpointBlock start, MyInventory srcInventory, long playerId, MyPhysicalInventoryItem toSend, MyFixedPoint?amount=null)
 
static void RecomputeMappingForBlock (IMyConveyorEndpointBlock processedBlock)
 
static void FindReachable (IMyConveyorEndpoint from, List< IMyConveyorEndpoint > reachableVertices, Predicate< IMyConveyorEndpoint > vertexFilter=null, Predicate< IMyConveyorEndpoint > vertexTraversable=null, Predicate< IMyPathEdge< IMyConveyorEndpoint >> edgeTraversable=null)
 
static bool Reachable (IMyConveyorEndpoint from, IMyConveyorEndpoint to)
 

Public Attributes

bool IsClosing = false
 
MyStringId HudMessage = MyStringId.NullOrEmpty
 

Properties

MyResourceSinkComponent ResourceSink [get]
 
bool IsInteractionPossible [get]
 
bool Connected [get]
 
HashSetReader< MyCubeBlockInventoryBlocks [get]
 

Events

Action< MyCubeBlockBlockAdded
 
Action< MyCubeBlockBlockRemoved
 
Action< IMyConveyorEndpointBlockOnBeforeRemoveEndpointBlock
 
Action< IMyConveyorSegmentBlockOnBeforeRemoveSegmentBlock
 

Detailed Description

Definition at line 31 of file MyGridConveyorSystem.cs.

Constructor & Destructor Documentation

Sandbox.Game.GameSystems.MyGridConveyorSystem.MyGridConveyorSystem ( MyCubeGrid  grid)
inline

Definition at line 122 of file MyGridConveyorSystem.cs.

Member Function Documentation

void Sandbox.Game.GameSystems.MyGridConveyorSystem.Add ( MyCubeBlock  block)
inline

Definition at line 239 of file MyGridConveyorSystem.cs.

void Sandbox.Game.GameSystems.MyGridConveyorSystem.AddConveyorBlock ( IMyConveyorEndpointBlock  endpointBlock)
inline

Definition at line 257 of file MyGridConveyorSystem.cs.

void Sandbox.Game.GameSystems.MyGridConveyorSystem.AddSegmentBlock ( IMyConveyorSegmentBlock  segmentBlock)
inline

Definition at line 438 of file MyGridConveyorSystem.cs.

void Sandbox.Game.GameSystems.MyGridConveyorSystem.AfterBlockDeserialization ( )
inline

Definition at line 208 of file MyGridConveyorSystem.cs.

void Sandbox.Game.GameSystems.MyGridConveyorSystem.AfterGridClose ( )
inline

Definition at line 234 of file MyGridConveyorSystem.cs.

static void Sandbox.Game.GameSystems.MyGridConveyorSystem.AppendReachableEndpoints ( IMyConveyorEndpoint  source,
long  playerId,
List< IMyConveyorEndpoint reachable,
MyPhysicalInventoryItem  item,
Predicate< IMyConveyorEndpoint endpointFilter = null 
)
inlinestatic

Definition at line 695 of file MyGridConveyorSystem.cs.

void Sandbox.Game.GameSystems.MyGridConveyorSystem.BeforeBlockDeserialization ( List< MyObjectBuilder_ConveyorLine lines)
inline

Definition at line 140 of file MyGridConveyorSystem.cs.

float Sandbox.Game.GameSystems.MyGridConveyorSystem.CalculateConsumption ( )
inline

Definition at line 397 of file MyGridConveyorSystem.cs.

static MyFixedPoint Sandbox.Game.GameSystems.MyGridConveyorSystem.ConveyorSystemItemAmount ( IMyConveyorEndpointBlock  start,
MyInventory  destinationInventory,
long  playerId,
MyDefinitionId  itemId 
)
inlinestatic

Definition at line 1155 of file MyGridConveyorSystem.cs.

void Sandbox.Game.GameSystems.MyGridConveyorSystem.DebugDraw ( MyCubeGrid  grid)
inline

Definition at line 309 of file MyGridConveyorSystem.cs.

void Sandbox.Game.GameSystems.MyGridConveyorSystem.DebugDrawLinePackets ( )
inline

Definition at line 319 of file MyGridConveyorSystem.cs.

static void Sandbox.Game.GameSystems.MyGridConveyorSystem.FindReachable ( IMyConveyorEndpoint  from,
List< IMyConveyorEndpoint reachableVertices,
Predicate< IMyConveyorEndpoint vertexFilter = null,
Predicate< IMyConveyorEndpoint vertexTraversable = null,
Predicate< IMyPathEdge< IMyConveyorEndpoint >>  edgeTraversable = null 
)
inlinestatic

Definition at line 1619 of file MyGridConveyorSystem.cs.

void Sandbox.Game.GameSystems.MyGridConveyorSystem.FlagForRecomputation ( )
inline

Definition at line 355 of file MyGridConveyorSystem.cs.

ConveyorEndpointMapping Sandbox.Game.GameSystems.MyGridConveyorSystem.GetConveyorEndpointMapping ( IMyConveyorEndpointBlock  block)
inline

Definition at line 1612 of file MyGridConveyorSystem.cs.

MyConveyorLine Sandbox.Game.GameSystems.MyGridConveyorSystem.GetDeserializingLine ( ConveyorLinePosition  position)
inline

Definition at line 190 of file MyGridConveyorSystem.cs.

MyConveyorLine Sandbox.Game.GameSystems.MyGridConveyorSystem.GetDeserializingLine ( Vector3I  position)
inline

Definition at line 199 of file MyGridConveyorSystem.cs.

static MyFixedPoint Sandbox.Game.GameSystems.MyGridConveyorSystem.ItemPullRequest ( IMyConveyorEndpointBlock  start,
MyInventory  destinationInventory,
long  playerId,
MyDefinitionId  itemId,
MyFixedPoint amount = null,
bool  remove = false 
)
inlinestatic

Definition at line 1073 of file MyGridConveyorSystem.cs.

static bool Sandbox.Game.GameSystems.MyGridConveyorSystem.ItemPushRequest ( IMyConveyorEndpointBlock  start,
MyInventory  srcInventory,
long  playerId,
MyPhysicalInventoryItem  toSend,
MyFixedPoint amount = null 
)
inlinestatic

Definition at line 1202 of file MyGridConveyorSystem.cs.

void Sandbox.Game.GameSystems.MyGridConveyorSystem.PrepareForDraw ( )
inline

Definition at line 327 of file MyGridConveyorSystem.cs.

static void Sandbox.Game.GameSystems.MyGridConveyorSystem.PrepareTraversal ( IMyConveyorEndpoint  startingVertex,
Predicate< IMyConveyorEndpoint vertexFilter = null,
Predicate< IMyConveyorEndpoint vertexTraversable = null,
Predicate< IMyPathEdge< IMyConveyorEndpoint >>  edgeTraversable = null 
)
inlinestatic

Definition at line 955 of file MyGridConveyorSystem.cs.

static bool Sandbox.Game.GameSystems.MyGridConveyorSystem.PullAllRequest ( IMyConveyorEndpointBlock  start,
MyInventory  destinationInventory,
long  playerId,
MyInventoryConstraint  requestedTypeIds 
)
inlinestatic

Definition at line 767 of file MyGridConveyorSystem.cs.

static bool Sandbox.Game.GameSystems.MyGridConveyorSystem.PullAllRequest ( IMyConveyorEndpointBlock  start,
MyInventory  destinationInventory,
long  playerId,
MyObjectBuilderType typeId = null 
)
inlinestatic

Definition at line 867 of file MyGridConveyorSystem.cs.

static bool Sandbox.Game.GameSystems.MyGridConveyorSystem.PullAllRequest ( IMyConveyorEndpointBlock  start,
MyInventory  destinationInventory,
long  playerId,
bool  all 
)
inlinestatic

Definition at line 876 of file MyGridConveyorSystem.cs.

static void Sandbox.Game.GameSystems.MyGridConveyorSystem.PushAnyRequest ( IMyConveyorEndpointBlock  start,
MyInventory  srcInventory,
long  playerId 
)
inlinestatic

Definition at line 1190 of file MyGridConveyorSystem.cs.

static bool Sandbox.Game.GameSystems.MyGridConveyorSystem.Reachable ( IMyConveyorEndpoint  from,
IMyConveyorEndpoint  to 
)
inlinestatic

Definition at line 1627 of file MyGridConveyorSystem.cs.

static void Sandbox.Game.GameSystems.MyGridConveyorSystem.RecomputeMappingForBlock ( IMyConveyorEndpointBlock  processedBlock)
inlinestatic

Definition at line 1334 of file MyGridConveyorSystem.cs.

void Sandbox.Game.GameSystems.MyGridConveyorSystem.Remove ( MyCubeBlock  block)
inline

Definition at line 248 of file MyGridConveyorSystem.cs.

void Sandbox.Game.GameSystems.MyGridConveyorSystem.RemoveConveyorBlock ( IMyConveyorEndpointBlock  block)
inline

Definition at line 414 of file MyGridConveyorSystem.cs.

void Sandbox.Game.GameSystems.MyGridConveyorSystem.RemoveSegmentBlock ( IMyConveyorSegmentBlock  segmentBlock)
inline

Definition at line 451 of file MyGridConveyorSystem.cs.

void Sandbox.Game.GameSystems.MyGridConveyorSystem.SerializeLines ( List< MyObjectBuilder_ConveyorLine resultList)
inline

Definition at line 222 of file MyGridConveyorSystem.cs.

void Sandbox.Game.GameSystems.MyGridConveyorSystem.ToggleConnectors ( )
inline

Definition at line 602 of file MyGridConveyorSystem.cs.

void Sandbox.Game.GameSystems.MyGridConveyorSystem.UpdateAfterSimulation100 ( )
inline

Definition at line 377 of file MyGridConveyorSystem.cs.

void Sandbox.Game.GameSystems.MyGridConveyorSystem.UpdateBeforeSimulation ( )
inline

Definition at line 337 of file MyGridConveyorSystem.cs.

void Sandbox.Game.GameSystems.MyGridConveyorSystem.UpdateBeforeSimulation10 ( )
inline

Definition at line 348 of file MyGridConveyorSystem.cs.

Member Data Documentation

MyStringId Sandbox.Game.GameSystems.MyGridConveyorSystem.HudMessage = MyStringId.NullOrEmpty

Definition at line 88 of file MyGridConveyorSystem.cs.

bool Sandbox.Game.GameSystems.MyGridConveyorSystem.IsClosing = false

Definition at line 86 of file MyGridConveyorSystem.cs.

Property Documentation

bool Sandbox.Game.GameSystems.MyGridConveyorSystem.Connected
get

Definition at line 110 of file MyGridConveyorSystem.cs.

HashSetReader<MyCubeBlock> Sandbox.Game.GameSystems.MyGridConveyorSystem.InventoryBlocks
get

Definition at line 713 of file MyGridConveyorSystem.cs.

bool Sandbox.Game.GameSystems.MyGridConveyorSystem.IsInteractionPossible
get

Definition at line 97 of file MyGridConveyorSystem.cs.

MyResourceSinkComponent Sandbox.Game.GameSystems.MyGridConveyorSystem.ResourceSink
get

Definition at line 91 of file MyGridConveyorSystem.cs.

Event Documentation

Action<MyCubeBlock> Sandbox.Game.GameSystems.MyGridConveyorSystem.BlockAdded

Definition at line 41 of file MyGridConveyorSystem.cs.

Action<MyCubeBlock> Sandbox.Game.GameSystems.MyGridConveyorSystem.BlockRemoved

Definition at line 42 of file MyGridConveyorSystem.cs.

Action<IMyConveyorEndpointBlock> Sandbox.Game.GameSystems.MyGridConveyorSystem.OnBeforeRemoveEndpointBlock

Definition at line 44 of file MyGridConveyorSystem.cs.

Action<IMyConveyorSegmentBlock> Sandbox.Game.GameSystems.MyGridConveyorSystem.OnBeforeRemoveSegmentBlock

Definition at line 45 of file MyGridConveyorSystem.cs.


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