예제 #1
0
        public void Load()
        {
            if (_Loaded)
            {
                return;
            }

            Log.Success(ToString(), "Loading... ");
            foreach (Creature_spawn Spawn in Spawns.CreatureSpawns)
            {
                Region.CreateCreature(Spawn);
            }

            foreach (GameObject_spawn Spawn in Spawns.GameObjectSpawns)
            {
                Region.CreateGameObject(Spawn);
            }

            foreach (Chapter_Info Spawn in Spawns.ChapterSpawns)
            {
                Region.CreateChapter(Spawn);
            }

            foreach (PQuest_Info Quest in Spawns.PublicQuests)
            {
                Region.CreatePQuest(Quest);
            }

            _Loaded = true;
        }
예제 #2
0
        public void Load()
        {
            lock (this)
            {
                if (Loaded)
                {
                    return;
                }

                Loaded = true;
            }

            Log.Debug(ToString(), "Loading... ");

            #if !DEBUG || !SUPPRESS_LOAD
            foreach (Creature_spawn spawn in Spawns.CreatureSpawns)
            {
                Region.CreateCreature(spawn);
            }

            foreach (GameObject_spawn spawn in Spawns.GameObjectSpawns)
            {
                Region.CreateGameObject(spawn);
            }

            foreach (Chapter_Info spawn in Spawns.ChapterSpawns)
            {
                Region.CreateChapter(spawn);
            }

            foreach (PQuest_Info quest in Spawns.PublicQuests)
            {
                Region.CreatePQuest(quest);
            }
            #endif
        }