/// <summary> /// </summary> /// <param name="i"> /// </param> /// <returns> /// </returns> public IStat this[StatIds i] { get { return(this.Stats[(int)i]); } }
/// <summary> /// </summary> /// <param name="i"> /// </param> /// <returns> /// </returns> public IStat this[StatIds i] { get { return this.Stats[(int)i]; } }
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[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); } }
/// <summary> /// </summary> /// <param name="i"> /// </param> /// <returns> /// </returns> public IStat this[StatIds i] { get { return this.all.Single(x => x.StatId == (int)i); } }