Beispiel #1
0
 public NGObject Add(string key, NGObject sat)
 {
     if (!objects.ContainsKey(key))
     {
         objects.Add(key, sat);
     }
     return(sat);
 }
Beispiel #2
0
 public NGObject createStat(NGObject obj)
 {
     return stats.Add(obj.name, obj);
 }
Beispiel #3
0
 public NGObject this[NGObject obj]
 {
     get { return(stats[obj.name]); }
     set { stats[obj.name] = value; }
 }
Beispiel #4
0
 public NGObject Consume(NGObject o, float val)
 {
     stats[o.name].value += val;
     return(stats[o.name]);
 }
Beispiel #5
0
 public NGObject Add(string key, NGObject sat)
 {
     if (!objects.ContainsKey(key))
         objects.Add(key, sat);
     return sat;
 }
Beispiel #6
0
 public NGObject Consume(NGObject o, float val)
 {
     stats[o.name].value += val;
     return stats[o.name];
 }
Beispiel #7
0
 public NGObject this[NGObject obj]
 {
     get { return stats[obj.name]; }
     set { stats[obj.name] = value; }
 }
Beispiel #8
0
 public NGObject createStat(NGObject obj)
 {
     return(stats.Add(obj.name, obj));
 }