コード例 #1
0
 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;
     }
 }
コード例 #2
0
 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;
     }
 }
コード例 #3
0
 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);
     }
 }
コード例 #4
0
 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);
     }
 }
コード例 #5
0
 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);
     }
 }
コード例 #6
0
 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;
     }
 }