コード例 #1
0
ファイル: ArmoryUtils.cs プロジェクト: Hengle/swc-decompiled
        public static bool IsArmoryFull(CurrentPlayer currentPlayer)
        {
            int currentActiveEquipmentCapacity = ArmoryUtils.GetCurrentActiveEquipmentCapacity(currentPlayer.ActiveArmory);
            int maxCapacity = currentPlayer.ActiveArmory.MaxCapacity;

            return(currentActiveEquipmentCapacity >= maxCapacity);
        }
コード例 #2
0
ファイル: ArmoryUtils.cs プロジェクト: Hengle/swc-decompiled
 public static bool HasEnoughCapacityToActivateEquipment(ActiveArmory armory, EquipmentVO equipment)
 {
     return(ArmoryUtils.GetCurrentActiveEquipmentCapacity(armory) + equipment.Size <= armory.MaxCapacity);
 }
コード例 #3
0
ファイル: ArmoryUtils.cs プロジェクト: Hengle/swc-decompiled
 public unsafe static long $Invoke1(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(ArmoryUtils.GetCurrentActiveEquipmentCapacity((ActiveArmory)GCHandledObjects.GCHandleToObject(*args))));
 }
コード例 #4
0
ファイル: ArmoryUtils.cs プロジェクト: Hengle/swc-decompiled
        public static bool IsArmoryEmpty(CurrentPlayer currentPlayer)
        {
            int currentActiveEquipmentCapacity = ArmoryUtils.GetCurrentActiveEquipmentCapacity(currentPlayer.ActiveArmory);

            return(currentActiveEquipmentCapacity == 0);
        }
コード例 #5
0
ファイル: ArmoryUtils.cs プロジェクト: Hengle/swc-decompiled
 public static bool IsAnyEquipmentActive(ActiveArmory armory)
 {
     return(ArmoryUtils.GetCurrentActiveEquipmentCapacity(armory) > 0);
 }