Beispiel #1
0
        static void _Main(string[] args)
        {
            string userLevel = "Sanctum";

            // Loading the level using the key from
            // the map.
            ALevel level = _levelMap[userLevel];

            level.Load();
        }
        static void Main(string[] args)
        {
            string userLevel = "LazarusLabs";

            // Getting an instance of the desired
            // level using the LevelCreator class.
            ALevel level =
                LevelCreator.Create(userLevel);

            level.Load();
        }