Пример #1
0
        public static void Main(string[] args)
        {
            var nPlayer = playerService.CreatePlayer("Player_01");
            var nLobby  = lobbyService.CreateNewLobby(nPlayer.ClientToken, "");

            Console.WriteLine(string.Format("Playername: {0}\nToken: {1}", nPlayer.PlayerName, nPlayer.ClientToken));
            Console.WriteLine(string.Format("LobbyId: {0}\nHostId = {1}", nLobby.LobbyId, nLobby.HostId));
            Console.ReadLine();
        }
Пример #2
0
        public string CreateLobby(string clientToken)
        {
            var tempLobby = lobbyService.CreateNewLobby(clientToken, lobbynames + counter);

            return(JsonConvert.SerializeObject(tempLobby));
        }