Click or drag to resize
IMyCubeGridGetBlocks Method

[This is preliminary documentation and is subject to change.]

Returns blocks in grid

Namespace: VRage.Game.ModAPI
Assembly: VRage.Game (in VRage.Game.dll) Version: 1.0.0.0
Syntax
C#
void GetBlocks(
	List<IMySlimBlock> blocks,
	Func<IMySlimBlock, bool> collect = null
)

Parameters

blocks
Type: System.Collections.GenericListIMySlimBlock
List of returned blocks
collect (Optional)
Type: SystemFuncIMySlimBlock, Boolean
Filter - function called on each block telling if it should be added to result
See Also