Example #1
0
        void OnCreateLobby(CreateLobbyPackage dp)
        {
            Lobby l = new Lobby();
            lobbies.Add(l);

            ResponsePackage rp = new ResponsePackage();
            rp.ResponseId = dp.Id;
            rp.ResponseMessage = l.LobbyId.ToString();
            Client.Write(dp.SenderTcpClient, rp);

            Console.WriteLine("Created lobby");
        }
Example #2
0
        void OnCreateLobby(CreateLobbyPackage dp)
        {
            Lobby l = new Lobby();

            lobbies.Add(l);

            ResponsePackage rp = new ResponsePackage();

            rp.ResponseId      = dp.Id;
            rp.ResponseMessage = l.LobbyId.ToString();
            Client.Write(dp.SenderTcpClient, rp);

            Console.WriteLine("Created lobby");
        }