Esempio n. 1
0
 public static MaterialResource CalcUnitsPrice(BasePrice defaultPrice, int count)
 {
     return(new MaterialResource
     {
         E = defaultPrice.E * count,
         Ir = defaultPrice.Ir * count,
         Dm = defaultPrice.Dm * count
     });
 }
Esempio n. 2
0
 public static MaterialResource ConvertBasePriceToMaterial(BasePrice bp)
 {
     return(new MaterialResource
     {
         Dm = bp.Dm,
         E = bp.E,
         Ir = bp.Ir
     });
 }