Exemplo n.º 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");
        }
Exemplo n.º 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");
        }