public ClientProtocol(Client client) { _client = client; _settings = new DebugSettings(); _guiUpdateHandler = new UpdateHandler(_settings.guiUpdateRate); _stateUpdateHandler = new UpdateHandler(_settings.stateUpdateRate); _windows = null; _background = new Task(_requestGui); }
public void setup(Screen screen) { _windows = null; _settings = Protocol.requestSetup(_connection, screen); _guiUpdateHandler = new UpdateHandler(_settings.guiUpdateRate); _stateUpdateHandler = new UpdateHandler(_settings.stateUpdateRate); _background.wait(); _background = new Task(() => { if(_settings.updateGui) _client.execute(() => Protocol.requestGuiUpdate(_windows, _connection)); _requestGui(); }); }