Add command permissions based on game promote level

This commit is contained in:
John Gross
2017-02-06 16:49:20 -08:00
parent 0f23e2a778
commit 650ab05d74
6 changed files with 32 additions and 24 deletions

View File

@@ -14,26 +14,4 @@ namespace Torch.API.ModAPI.Ingame
{
}
public static class PistonExtensions
{
public static IMyCubeGrid GetConnectedGrid(this IMyPistonBase pistonBase)
{
if (!pistonBase.IsAttached)
return null;
return ((Sandbox.ModAPI.IMyPistonBase)pistonBase).TopGrid;
}
}
public static class RotorExtensions
{
public static IMyCubeGrid GetConnectedGrid(this IMyMotorStator rotorBase)
{
if (!rotorBase.IsAttached)
return null;
return ((Sandbox.ModAPI.IMyMotorStator)rotorBase).RotorGrid;
}
}
}