using System.Collections.Generic; using Global.Shared.API; using VRage.Game.ModAPI; using VRage.ObjectBuilders; namespace Global.API { public class GlobalServerModApi { public static bool IsRunningGlobal(ref bool __result) { __result = true; return false; } public static bool GetAllBlocksOfType(List list, IMyCubeGrid grid, MyObjectBuilderType type) { GetAllBlocksOfTypeId(list, grid.EntityId, type); return false; } public static bool GetAllBlocksOfTypeId(List list, long gridId, MyObjectBuilderType type) { list.AddRange(GlobalAPI.GetGridById(gridId).GetBlocks(type)); return false; } } }