Show / Hide Table of Contents

Interface IMyBlockGroup

Describes terminal block group (mods interface)

Inherited Members
IMyBlockGroup.GetBlocks(List<IMyTerminalBlock>, Func<IMyTerminalBlock, Boolean>)
IMyBlockGroup.GetBlocksOfType<T>(List<IMyTerminalBlock>, Func<IMyTerminalBlock, Boolean>)
IMyBlockGroup.GetBlocksOfType<T>(List<T>, Func<T, Boolean>)
IMyBlockGroup.Name
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 blocks

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 blocks

Type Parameters
Name Description
T

Block must be assignable from T

Exceptions
Type Condition
System.NullReferenceException

If function collect returns true, and blocks is null

☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾