예제 #1
0
        public static bool IsArmoryFull(CurrentPlayer currentPlayer)
        {
            int currentActiveEquipmentCapacity = ArmoryUtils.GetCurrentActiveEquipmentCapacity(currentPlayer.ActiveArmory);
            int maxCapacity = currentPlayer.ActiveArmory.MaxCapacity;

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

            return(currentActiveEquipmentCapacity == 0);
        }
예제 #5
0
 public static bool IsAnyEquipmentActive(ActiveArmory armory)
 {
     return(ArmoryUtils.GetCurrentActiveEquipmentCapacity(armory) > 0);
 }