Files
QuartZ-dump/GlobalTorch/API/GlobalServerModApi.cs
2024-12-29 21:15:58 +01:00

28 lines
781 B
C#

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<IMyCubeBlock> list, IMyCubeGrid grid, MyObjectBuilderType type)
{
GetAllBlocksOfTypeId(list, grid.EntityId, type);
return false;
}
public static bool GetAllBlocksOfTypeId(List<IMyCubeBlock> list, long gridId, MyObjectBuilderType type)
{
list.AddRange(GlobalAPI.GetGridById(gridId).GetBlocks(type));
return false;
}
}
}