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

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

            playGround = null;
            return(false);
        }