コード例 #1
0
        private static bool PlayerHasEquipmentAvailable()
        {
            CurrentPlayer           currentPlayer           = Service.CurrentPlayer;
            EquipmentUpgradeCatalog equipmentUpgradeCatalog = Service.EquipmentUpgradeCatalog;

            foreach (string current in equipmentUpgradeCatalog.AllUpgradeGroups())
            {
                if (!ArmoryUtils.HasReachedMaxEquipmentShards(currentPlayer, equipmentUpgradeCatalog, current))
                {
                    return(true);
                }
            }
            return(false);
        }
コード例 #2
0
ファイル: ArmoryUtils.cs プロジェクト: Hengle/swc-decompiled
 public unsafe static long $Invoke7(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(ArmoryUtils.HasReachedMaxEquipmentShards((CurrentPlayer)GCHandledObjects.GCHandleToObject(*args), (EquipmentUpgradeCatalog)GCHandledObjects.GCHandleToObject(args[1]), Marshal.PtrToStringUni(*(IntPtr *)(args + 2)))));
 }