Пример #1
0
        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);
        }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }
Пример #4
0
 private void onConnectionSetup()
 {
     _protocol.setup(Screen.width, Screen.height);
     _vessel = null;
 }