예제 #1
0
        static void LoadAutoloadMaps(SchedulerTask task)
        {
            AutoloadMaps = PlayerExtList.Load("text/autoload.txt", '=');
            List <string> maps = AutoloadMaps.AllNames();

            foreach (string map in maps)
            {
                if (map.CaselessEq(Server.Config.MainLevel))
                {
                    continue;
                }
                LevelActions.Load(Player.Console, map, false);
            }
        }
예제 #2
0
        static void LoadAutoloadMaps(SchedulerTask task)
        {
            AutoloadMaps = PlayerExtList.Load("text/autoload.txt", '=');
            List <string> maps = AutoloadMaps.AllNames();

            foreach (string map in maps)
            {
                if (map.CaselessEq(mainLevel.name))
                {
                    continue;
                }
                CmdLoad.LoadLevel(null, map);
            }
        }