Beispiel #1
0
        public static PlayGround GetOrCreatePlayGround(string group)
        {
            if (Games.ContainsKey(group))
            {
                return(Games[group]);
            }

            Games[group] = new PlayGround(group);
            return(Games[group]);
        }
Beispiel #2
0
        public static bool TryGetPlayGround(string group, out PlayGround playGround)
        {
            if (Games.ContainsKey(group))
            {
                playGround = Games[group];
                return(true);
            }

            playGround = null;
            return(false);
        }