public NGObject Add(string key, NGObject sat) { if (!objects.ContainsKey(key)) { objects.Add(key, sat); } return(sat); }
public NGObject createStat(NGObject obj) { return stats.Add(obj.name, obj); }
public NGObject this[NGObject obj] { get { return(stats[obj.name]); } set { stats[obj.name] = value; } }
public NGObject Consume(NGObject o, float val) { stats[o.name].value += val; return(stats[o.name]); }
public NGObject Add(string key, NGObject sat) { if (!objects.ContainsKey(key)) objects.Add(key, sat); return sat; }
public NGObject Consume(NGObject o, float val) { stats[o.name].value += val; return stats[o.name]; }
public NGObject this[NGObject obj] { get { return stats[obj.name]; } set { stats[obj.name] = value; } }
public NGObject createStat(NGObject obj) { return(stats.Add(obj.name, obj)); }