comparison api/Objects/SystemStats.cs @ 295:f8f441f2fcfe

Re #323: WarFoundry.API - SystemStats cannot remove stat Update SystemStats Implement RemoveStatSlot
author Tsudico
date Sat, 18 Dec 2010 20:53:52 +0000
parents 8c6f55d289b0
children ed5e6d92ecd9
comparison
equal deleted inserted replaced
294:52985d48b263 295:f8f441f2fcfe
50 public int GetStatSlotPosition(StatSlot slot) 50 public int GetStatSlotPosition(StatSlot slot)
51 { 51 {
52 return stats.IndexOf(slot); 52 return stats.IndexOf(slot);
53 } 53 }
54 54
55 public void RemoveStatSlot(string name)
56 {
57 statsByName.Remove(name);
58 StatSlot slot = new StatSlot(name);
59 slot.SystemStats = this;
60 stats.Remove(slot);
61 }
62
55 public int SlotCount 63 public int SlotCount
56 { 64 {
57 get { return stats.Count; } 65 get { return stats.Count; }
58 } 66 }
59 67