Beispiel #1
0
        public bool CreateGameSession(GameSession gameSession, string sessionToken)
        {
            ;
            var client = ClientTable.Instance.SearchClient(sessionToken);

            if (client != null)
            {
                if (client.User.IsAdmin && gameSession.Validate())
                {
                    GameSessionManager.AddSession(gameSession);
                    return(true);
                }

                return(false);
            }

            return(false);
        }