Esempio n. 1
0
 internal Construction(ConstructionDto dto, TypeRepository types)
 {
     Id     = dto.Id;
     Type   = types.GetConstructionType(dto.TypeId);
     Center = dto.Center;
     foreach (var itemBunchDto in dto.Items)
     {
         AddItemBunch(new ItemBunch(itemBunchDto, types));
     }
 }
Esempio n. 2
0
 internal Construction(ConstructionType type, Position2 center, int id)
 {
     Id     = id;
     Type   = type;
     Center = center;
 }