Пример #1
0
 public uint GetProducer(UnitTypeData unit)
 {
     if (Unit_To_Producers.TryGetValue(unit.UnitId, out var ids))
     {
         return(ids[0]);
     }
     throw new System.NotImplementedException();
 }
Пример #2
0
 public IEnumerable <UnitTypeData> GetProducers(UnitTypeData unit)
 {
     if (Unit_To_Producers.TryGetValue(unit.UnitId, out var ids))
     {
         return(ids.Select(i => unitTypeRepository.Get(i)));
     }
     throw new System.NotImplementedException();
 }