public void Register(RconClient rconClient) { _rconClient = rconClient; rconClient.ServerInfoCommand.RoundStart += ServerInfoCommandOnRoundStart; rconClient.ServerInfoCommand.RoundEnd += ServerInfoCommandOnRoundEnd; rconClient.PlayerListCommand.PlayerUpdateDone += PlayerListCommandOnPlayerUpdateDone; }
public void Register(RconClient rconClient) { _rconClient = rconClient; _rconClient.ClientChatBufferCommand.CommandReceived += ClientChatBufferCommandOnCommandReceived; _rconClient.PlayerListCommand.PlayerLeft += PlayerListCommandOnPlayerLeft; _rconClient.PlayerListCommand.PlayerUpdateDone += PlayerListCommandOnPlayerUpdateDone; }
public void Register(RconClient rconClient) { _rconClient = rconClient; //_rconClient.PlayerListCommand.PlayerUpdated += PlayerListCommandOnPlayerUpdated; _rconClient.PlayerListCommand.PlayerUpdateDone += PlayerListCommandOnPlayerUpdateDone; _rconClient.PlayerListCommand.PlayerLeft += PlayerListCommandOnPlayerLeft; _rconClient.PlayerListCommand.PlayerJoined += PlayerListCommandOnPlayerJoined; //DatabaseController.Initialize(); //_playerStorage = new PlayerStorage(); OnRegistered(this); }
public void Register(RconClient rconClient) { _rconClient = rconClient; _rconClient.ServerInfoCommand.RoundEnd += ServerInfoCommandOnRoundEnd; _rconClient.ServerInfoCommand.RoundStart += ServerInfoCommandOnRoundStart; }
private async void DoConnect() { if (RconClient != null) RconClient.Dispose(); Dispatcher.Invoke(() => Players.Clear()); RconClient = new RconClient(); RconClient.Disconnected += RconClientOnDisconnected; RconClient.PlayerListCommand.PlayerJoined += RconClientOnPlayerJoined; RconClient.PlayerListCommand.PlayerLeft += RconClientOnPlayerLeft; RconClient.ServerInfoCommand.RoundStart += ServerInfoCommandOnRoundStart; RconClient.Connected += RconClientOnConnected; await RconClient.Connect(Config.RconServerAddress, Config.RconServerPort, Config.RconServerPassword); }
protected virtual void OnNewClient(RconClient rconclient) { NewClientDelegate handler = NewClient; if (handler != null) handler(this, rconclient); }
public void Register(RconClient rconClient) { _rconClient = rconClient; _rconClient.PlayerListCommand.PlayerJoined += PlayerListCommandOnPlayerJoined; _rconClient.ServerInfoCommand.RoundStart += ServerInfoCommandOnRoundStart; }
public void Register(RconClient rconClient) { _rconClient = rconClient; _rconClient.ClientChatBufferCommand.CommandReceived += ClientChatBufferCommandOnCommandReceived; }