Add command permissions based on game promote level
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user