zz
This commit is contained in:
28
GlobalTorch/API/GlobalServerModApi.cs
Normal file
28
GlobalTorch/API/GlobalServerModApi.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user