protected override void onUpdate(double delta) { if(!_protocol.connected) { statusMessage = "No connection"; return; } if(_vessel == null) _vessel = new game.Vessel(_universe); _universe.update(); _vessel.update(this.vessel); _protocol.updateState(_universe, _vessel); }
public Computer() { modules = new List<Module>(); attitude = new AttitudeController(this); modules.Add(new ASASModule(this)); modules.Add(new InfoModule(this)); modules.Add(attitude); _switches = new Dictionary<Module, ModuleSwitch>(); settings = new DebugSettings() { guiUpdateRate = 30f, stateUpdateRate = 30f }; universe = new Universe(); vessel = new Vessel(universe); }
protected override void onUpdate(double delta) { if (!_protocol.connected) { statusMessage = "No connection"; return; } if (_vessel == null) { _vessel = new game.Vessel(_universe); } _universe.update(); _vessel.update(this.vessel); _protocol.updateState(_universe, _vessel); }
private void onConnectionSetup() { _protocol.setup(Screen.width, Screen.height); _vessel = null; }