Assembly: Sandbox.Common.dll

public interface IMyGridTerminalSystem

Describes terminal system (PB scripting interface)

Methods

Member Description
CanAccess(IMyTerminalBlock, MyTerminalAccessScope) Checks if the grid terminal system can still access the given IMyTerminalBlock . A block is no longer accessible if it's destroyed, detached, it's ownership has changed or is otherwise disconnected from this grid terminal system.
CanAccess(IMyCubeGrid, MyTerminalAccessScope) Checks if the grid terminal system can still access the given IMyCubeGrid . A grid is no longer accessible if it's destroyed, detached, it's ownership has changed or is otherwise disconnected from this grid terminal system.
GetBlockGroups(List, Func<IMyBlockGroup, bool>) Fills the provided list with the block groups reachable by this grid terminal system.
GetBlockGroupWithName(string) Returns the first block group found with the given name. Will returnnullif no block group with that name can be found.
GetBlocks(List) Fills the provided list with all the blocks reachable by this grid terminal system. This means all blocks on the same grid, or connected via rotors, pistons or connectors.
GetBlocksOfType(List, Func<IMyTerminalBlock, bool>)
GetBlocksOfType(List, Func<T, bool>)
GetBlockWithId(long) Attempts to retrieve the block with the given entity ID.
GetBlockWithName(string) Returns the first block found with the given name.
SearchBlocksOfName(string, List, Func<IMyTerminalBlock, bool>) Fills the provided list with the blocks reachable by this grid terminal system. This means all blocks on the same grid, or connected via rotors, pistons or connectors.