Exemple #1
0
 // Token: 0x0600172A RID: 5930 RVA: 0x00085878 File Offset: 0x00083C78
 public bool getStatTrackerValue(out EStatTrackerType type, out int kills)
 {
     kills = -1;
     if (!this.getStatTrackerType(out type))
     {
         return(false);
     }
     if (type == EStatTrackerType.TOTAL)
     {
         if (string.IsNullOrEmpty(this.dynamic_props))
         {
             kills = 0;
         }
         else
         {
             kills = JsonUtility.FromJson <StatTrackerTotalKillsJson>(this.dynamic_props).total_kills;
         }
         return(true);
     }
     if (type != EStatTrackerType.PLAYER)
     {
         return(false);
     }
     if (string.IsNullOrEmpty(this.dynamic_props))
     {
         kills = 0;
     }
     else
     {
         kills = JsonUtility.FromJson <StatTrackerPlayerKillsJson>(this.dynamic_props).player_kills;
     }
     return(true);
 }
Exemple #2
0
        // Token: 0x06001738 RID: 5944 RVA: 0x00085CD8 File Offset: 0x000840D8
        public bool getInventoryStatTrackerValue(ulong instance, out EStatTrackerType type, out int kills)
        {
            type  = EStatTrackerType.NONE;
            kills = -1;
            DynamicEconDetails dynamicEconDetails;

            return(this.dynamicInventoryDetails.TryGetValue(instance, out dynamicEconDetails) && dynamicEconDetails.getStatTrackerValue(out type, out kills));
        }
        // Token: 0x06002A13 RID: 10771 RVA: 0x001050E4 File Offset: 0x001034E4
        private static bool getSlot1StatTrackerValue(out EStatTrackerType type, out int kills)
        {
            type  = EStatTrackerType.NONE;
            kills = -1;
            ulong instance;

            return(Characters.getPackageForItemID(Characters.active.secondaryItem, out instance) && Provider.provider.economyService.getInventoryStatTrackerValue(instance, out type, out kills));
        }
Exemple #4
0
 // Token: 0x06001740 RID: 5952 RVA: 0x00085F6F File Offset: 0x0008436F
 public string getStatTrackerPropertyName(EStatTrackerType type)
 {
     if (type == EStatTrackerType.TOTAL)
     {
         return("total_kills");
     }
     if (type != EStatTrackerType.PLAYER)
     {
         return(null);
     }
     return("player_kills");
 }
Exemple #5
0
 // Token: 0x06001729 RID: 5929 RVA: 0x0008583B File Offset: 0x00083C3B
 public bool getStatTrackerType(out EStatTrackerType type)
 {
     type = EStatTrackerType.NONE;
     if (this.tags.Contains("stat_tracker:total_kills"))
     {
         type = EStatTrackerType.TOTAL;
         return(true);
     }
     if (this.tags.Contains("stat_tracker:player_kills"))
     {
         type = EStatTrackerType.PLAYER;
         return(true);
     }
     return(false);
 }
Exemple #6
0
 // Token: 0x0600173F RID: 5951 RVA: 0x00085F14 File Offset: 0x00084314
 public Color getStatTrackerColor(EStatTrackerType type)
 {
     if (type == EStatTrackerType.NONE)
     {
         return(Color.white);
     }
     if (type == EStatTrackerType.TOTAL)
     {
         return(new Color(1f, 0.5f, 0f));
     }
     if (type != EStatTrackerType.PLAYER)
     {
         return(Color.black);
     }
     return(new Color(1f, 0f, 0f));
 }
Exemple #7
0
 // Token: 0x0600172B RID: 5931 RVA: 0x0008590C File Offset: 0x00083D0C
 public string getPredictedDynamicPropsJsonForStatTracker(EStatTrackerType type, int kills)
 {
     if (type == EStatTrackerType.TOTAL)
     {
         return(JsonUtility.ToJson(new StatTrackerTotalKillsJson
         {
             total_kills = kills
         }));
     }
     if (type != EStatTrackerType.PLAYER)
     {
         return(string.Empty);
     }
     return(JsonUtility.ToJson(new StatTrackerPlayerKillsJson
     {
         player_kills = kills
     }));
 }
        // Token: 0x06003064 RID: 12388 RVA: 0x0013E710 File Offset: 0x0013CB10
        public bool getStatTrackerValue(ushort itemID, out EStatTrackerType type, out int kills)
        {
            type  = EStatTrackerType.NONE;
            kills = -1;
            int item;

            if (!this.getItemSkinItemDefID(itemID, out item))
            {
                return(false);
            }
            string tags;
            string dynamic_props;

            if (!this.getTagsAndDynamicPropsForItem(item, out tags, out dynamic_props))
            {
                return(false);
            }
            DynamicEconDetails dynamicEconDetails = new DynamicEconDetails(tags, dynamic_props);

            return(dynamicEconDetails.getStatTrackerValue(out type, out kills));
        }
 // Token: 0x0600373F RID: 14143 RVA: 0x00181622 File Offset: 0x0017FA22
 private static bool getInspectedItemStatTrackerValue(out EStatTrackerType type, out int kills)
 {
     return(Provider.provider.economyService.getInventoryStatTrackerValue(MenuSurvivorsClothingInspectUI.instance, out type, out kills));
 }
        // Token: 0x060021F9 RID: 8697 RVA: 0x000B831C File Offset: 0x000B671C
        protected bool getDisplayStatTrackerValue(out EStatTrackerType type, out int kills)
        {
            DynamicEconDetails dynamicEconDetails = new DynamicEconDetails(this.displayTags, this.displayDynamicProps);

            return(dynamicEconDetails.getStatTrackerValue(out type, out kills));
        }
        // Token: 0x0600342B RID: 13355 RVA: 0x00154530 File Offset: 0x00152930
        private bool getIconStatTrackerValue(out EStatTrackerType type, out int kills)
        {
            DynamicEconDetails dynamicEconDetails = new DynamicEconDetails(this.currentIconTags, this.currentIconDynamicProps);

            return(dynamicEconDetails.getStatTrackerValue(out type, out kills));
        }