public uint GetProducer(UnitTypeData unit) { if (Unit_To_Producers.TryGetValue(unit.UnitId, out var ids)) { return(ids[0]); } throw new System.NotImplementedException(); }
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(); }