Exemplo n.º 1
0
        public static bool IsArmoryFull(CurrentPlayer currentPlayer)
        {
            int currentActiveEquipmentCapacity = ArmoryUtils.GetCurrentActiveEquipmentCapacity(currentPlayer.ActiveArmory);
            int maxCapacity = currentPlayer.ActiveArmory.MaxCapacity;

            return(currentActiveEquipmentCapacity >= maxCapacity);
        }
Exemplo n.º 2
0
 public static bool HasEnoughCapacityToActivateEquipment(ActiveArmory armory, EquipmentVO equipment)
 {
     return(ArmoryUtils.GetCurrentActiveEquipmentCapacity(armory) + equipment.Size <= armory.MaxCapacity);
 }
Exemplo n.º 3
0
 public unsafe static long $Invoke1(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(ArmoryUtils.GetCurrentActiveEquipmentCapacity((ActiveArmory)GCHandledObjects.GCHandleToObject(*args))));
 }
Exemplo n.º 4
0
        public static bool IsArmoryEmpty(CurrentPlayer currentPlayer)
        {
            int currentActiveEquipmentCapacity = ArmoryUtils.GetCurrentActiveEquipmentCapacity(currentPlayer.ActiveArmory);

            return(currentActiveEquipmentCapacity == 0);
        }
Exemplo n.º 5
0
 public static bool IsAnyEquipmentActive(ActiveArmory armory)
 {
     return(ArmoryUtils.GetCurrentActiveEquipmentCapacity(armory) > 0);
 }