Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Sandbox.ModAPI.Ingame.IMyGridTerminalSystem

Morten Aune Lyrstad edited this page Apr 16, 2022 · 45 revisions

IndexNamespace Index

IMyGridTerminalSystem Interface

public interface IMyGridTerminalSystem

Describes terminal system (PB scripting interface)

Namespace: Sandbox.ModAPI.Ingame
Assembly: Sandbox.Common.dll

Methods

Member Description
bool 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.
bool 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.
void GetBlockGroups(List<Sandbox.ModAPI.Ingame.IMyBlockGroup>, [Func<Sandbox.ModAPI.Ingame.IMyBlockGroup, System.Boolean>]) Fills the provided list with the block groups reachable by this grid terminal system.
IMyBlockGroup GetBlockGroupWithName(string) Returns the first block group found with the given name. Will returnnullif no block group with that name can be found.
void GetBlocks(List<Sandbox.ModAPI.Ingame.IMyTerminalBlock>) 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.
void GetBlocksOfType(List<Sandbox.ModAPI.Ingame.IMyTerminalBlock>, [Func<Sandbox.ModAPI.Ingame.IMyTerminalBlock, System.Boolean>])
void GetBlocksOfType(List, [Func<T, System.Boolean>])
IMyTerminalBlock GetBlockWithId(long) Attempts to retrieve the block with the given entity ID.
IMyTerminalBlock GetBlockWithName(string) Returns the first block found with the given name.
void SearchBlocksOfName(string, List<Sandbox.ModAPI.Ingame.IMyTerminalBlock>, [Func<Sandbox.ModAPI.Ingame.IMyTerminalBlock, System.Boolean>]) 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.
Clone this wiki locally