API Reference
IGridData
IGridData.Grid
Returns the MyCubeGrid that this IGridData belongs to.
MyCubeGrid grid = data.Grid;
IGridData.Blocks
Returns an IBlockDictionary of all blocks in the grid.
IBlockDictionary blocks = data.Blocks;
IGridData.Pcu
Returns the total PCU of blocks in the grid.
float pcu = data.Pcu;
IGridData.Volume
Returns the total volume of blocks in the grid.
float volume = data.Volume;