public IStat this[StatIds i] { get { var stat = this.All.FirstOrDefault(x => x.StatId == (int)i); if (stat == null) { stat = new SimpleStat((int)i); this.All.Add(stat); } return stat; } }
public IStat this[int index] { get { var stat = this.All.FirstOrDefault(x => x.StatId == index); if (stat == null) { stat = new SimpleStat(index); this.All.Add(stat); } return stat; } }
public IStat this[StatIds i] { get { var stat = this.All.FirstOrDefault(x => x.StatId == (int)i); if (stat == null) { stat = new SimpleStat((int)i); this.All.Add(stat); } return(stat); } }
public IStat this[int index] { get { var stat = this.All.FirstOrDefault(x => x.StatId == index); if (stat == null) { stat = new SimpleStat(index); this.All.Add(stat); } return(stat); } }
public IStat this[string name] { get { int id = StatNamesDefaults.GetStatNumber(name); var stat = this.All.FirstOrDefault(x => x.StatId == id); if (stat == null) { stat = new SimpleStat(id); this.All.Add(stat); } return(stat); } }
public IStat this[string name] { get { int id = StatNamesDefaults.GetStatNumber(name); var stat = this.All.FirstOrDefault(x => x.StatId == id); if (stat == null) { stat = new SimpleStat(id); this.All.Add(stat); } return stat; } }