Interface IMyBlockGroup
Describes terminal block group (mods interface)
Inherited Members
Namespace: Sandbox.ModAPI
Assembly: Sandbox.Common.dll
Syntax
public interface IMyBlockGroup : IMyBlockGroup
Methods
GetBlocks(List<IMyTerminalBlock>, Func<IMyTerminalBlock, Boolean>)
Get terminal blocks which assigned to this group
Declaration
void GetBlocks(List<IMyTerminalBlock> blocks, Func<IMyTerminalBlock, bool> collect = null)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<IMyTerminalBlock> | blocks | buffer array |
System.Func<IMyTerminalBlock, System.Boolean> | collect | if function returns true, block would be added to |
GetBlocksOfType<T>(List<IMyTerminalBlock>, Func<IMyTerminalBlock, Boolean>)
Get terminal blocks which assigned to this group, and matching type
Declaration
void GetBlocksOfType<T>(List<IMyTerminalBlock> blocks, Func<IMyTerminalBlock, bool> collect = null)
where T : class
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<IMyTerminalBlock> | blocks | buffer array |
System.Func<IMyTerminalBlock, System.Boolean> | collect | if function returns true, block would be added to |
Type Parameters
Name | Description |
---|---|
T | Block must be assignable from T |
Exceptions
Type | Condition |
---|---|
System.NullReferenceException | If function |