Ejemplo n.º 1
0
        private OperationResponse AddPlayerToGameAndGenerateResponse(MasterClientPeer peer, JoinGameRequest operation, GameState gameState)
        {
            gameState.AddPeer(peer);
            gameState.AddSlots(operation);

            this.ScheduleCheckJoinTimeOuts();

            // publish operation response
            var joinResponse = this.GetJoinGameResponse(peer, gameState);

            return(new OperationResponse(operation.OperationCode, joinResponse));
        }