public MTS(ShipTable table) { mount_MAX = table.ship["MTS"]["mount_MAX"].IntValue; nozzle_SIZE = table.ship["MTS"]["nozzle_SIZE"].Value; controller = new MTSController(table.ship["MTS"]["Controller1_LOC"]); MTSlocation = new Vector3(table.shipCoords["MTSlocation"]); int i = 1; while (table.shipCoords["booster" + i].Count > 0) { booster.Add(new MTSBooster(table.shipCoords["booster" + i])); i++; } }
public MTS() { MTSlocation = new Vector3(); controller = new MTSController(); }