This commit is contained in:
/
2024-12-29 21:15:58 +01:00
commit 547655c326
77 changed files with 7313 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
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;
}
}
}