コード例 #1
0
 private static bool ConditionMet(string condition)
 {
     if (string.IsNullOrEmpty(condition))
     {
         return(false);
     }
     if (condition != null)
     {
         if (condition == "ownsArmory")
         {
             return(ArmoryUtils.PlayerHasArmory());
         }
         if (condition == "hasAvailableEquipment")
         {
             return(CrateUtils.PlayerHasEquipmentAvailable());
         }
     }
     if (condition.StartsWith("hq"))
     {
         string value = condition.Substring("hq".Length);
         int    level = Convert.ToInt32(value);
         return(CrateUtils.PlayerHasAtLeastHqLevel(level));
     }
     return(false);
 }
コード例 #2
0
ファイル: ArmoryUtils.cs プロジェクト: Hengle/swc-decompiled
 public unsafe static long $Invoke17(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(ArmoryUtils.PlayerHasArmory()));
 }