コード例 #1
0
ファイル: Truck.cs プロジェクト: better-peleg/Garage-Manager
 internal Truck(Dictionary <string, object> i_CarDic, Dictionary <string, object> i_SpecialProperties)
     : base(i_CarDic)
 {
     m_Energy = new Energy((GarageENum.eEnergyType)i_CarDic["Energy type"], (float)i_CarDic["Max energy"], (float)i_CarDic["Max energy"] * (float)i_CarDic["Current energy(%)"] / 100);
     Wheels   = Wheel.InitiateWheelsArray(12, (string)i_CarDic["Wheels manufacturer"], (float)i_CarDic["Current wheels pressure"], (float)i_CarDic["Max wheels pressure"]);
     this.SetSpecialProperties(i_SpecialProperties);
 }