public MTS(ShipHullTable table) { mount_MAX = table.ship["MTS"]["mount_MAX"].IntValue; nozzle_SIZE = table.ship["MTS"]["nozzle_SIZE"].Value; mtsLocation = new Vec3(table.shipCoords["MTSlocation"]); controller = new MTSController(table.ship["MTS"]["Controller1_LOC"]); boosters = new List <MTSBooster>(); int i = 1; while (table.shipCoords["booster" + i].Count > 0) { boosters.Add(new MTSBooster(table.shipCoords["booster" + i])); i++; } }
public void LoadFrom(MTSController controller) { _controller = controller; }
public MTS() { mtsLocation = new Vec3(); controller = new MTSController(); boosters = new List <MTSBooster>(); }
public MTSControllerViewModel(MTSController controller) { LoadFrom(controller); }