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);
        }
Exemplo n.º 4
0
 public void Register(RconClient rconClient)
 {
     _rconClient = rconClient;
     _rconClient.ServerInfoCommand.RoundEnd += ServerInfoCommandOnRoundEnd;
     _rconClient.ServerInfoCommand.RoundStart += ServerInfoCommandOnRoundStart;
 }
Exemplo n.º 5
0
        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);
       
        }
Exemplo n.º 6
0
 protected virtual void OnNewClient(RconClient rconclient)
 {
     NewClientDelegate handler = NewClient;
     if (handler != null) handler(this, rconclient);
 }
Exemplo n.º 7
0
 public void Register(RconClient rconClient)
 {
     _rconClient = rconClient;
     _rconClient.PlayerListCommand.PlayerJoined += PlayerListCommandOnPlayerJoined;
     _rconClient.ServerInfoCommand.RoundStart += ServerInfoCommandOnRoundStart;
 }
Exemplo n.º 8
0
 public void Register(RconClient rconClient)
 {
     _rconClient = rconClient;
     _rconClient.ClientChatBufferCommand.CommandReceived += ClientChatBufferCommandOnCommandReceived;
 }