public void removeStat(eInt64Stat stat) { if (int64Stats.ContainsKey(stat)) { int64Stats.Remove(stat); } }
public sInt64Stat(StreamReader inputFile) { key = (eInt64Stat)Utils.readInt32(inputFile); if (!Enum.IsDefined(typeof(eInt64Stat), key)) { Console.WriteLine("Unknown int64Stat: {0}", key); } value = Utils.readInt64(inputFile); }
public Int64 getStat(eInt64Stat stat) { sInt64Stat entry; if (int64Stats.TryGetValue(stat, out entry)) { return(entry.value); } else { return(0); } }
public void addOrUpdateStat(eInt64Stat stat, Int64 value) { sInt64Stat entry; if (int64Stats.TryGetValue(stat, out entry)) { entry.value = value; int64Stats[stat] = entry; } else { entry = new sInt64Stat(stat, value); int64Stats.Add(stat, entry); } }
public sInt64Stat(eInt64Stat key, Int64 value) { this.key = key; this.value = value; }
public bool hasStat(eInt64Stat stat) { return(int64Stats.ContainsKey(stat)); }