Esempio n. 1
0
        public async Task <IActionResult> LeaveLobby([FromBody] ServerSideLeaveLobbyRequest request)
        {
            await NotifyLobbyAboutLeave(request.PlayerId);

            Boolean joined = playerRegistry.LeaveLobby(request.PlayerId);

            return(await GetJoinLobbyResponse(joined, request.PlayerId, false));
        }