Beispiel #1
0
        public static void LoadAll()
        {
            if (Loaded)
            {
                return;
            }
            ContentMgr.Load <ItemTemplate>();
            OnLoaded();
            foreach (ItemTemplate template in Templates)
            {
                if (template != null)
                {
                    template.InitializeTemplate();
                }
            }

            TruncSets();
            if (ArchetypeMgr.Loaded)
            {
                ArchetypeMgr.LoadItems();
            }
            SpellHandler.InitTools();
            LoadItemCharRelations();
            Singleton <AuctionMgr> .Instance.LoadItems();

            if (QuestMgr.Loaded)
            {
                EnsureItemQuestRelations();
            }
            ServerApp <RealmServer> .InitMgr.SignalGlobalMgrReady(typeof(ItemMgr));

            Loaded = true;
        }
Beispiel #2
0
        public static void LoadAll()
        {
            if (!Loaded)
            {
                //ContentHandler.Load<ItemRandomSuffixInfo>();
                ContentMgr.Load <ItemTemplate>();
                ContentMgr.Load <ItemRandomEnchantEntry>();

                OnLoaded();

                foreach (var templ in Templates)
                {
                    if (templ != null)
                    {
                        templ.InitializeTemplate();
                    }
                }

                TruncSets();

                if (ArchetypeMgr.Loaded)
                {
                    ArchetypeMgr.LoadItems();
                }

                SpellHandler.InitTools();
                LoadItemCharRelations();

                AuctionMgr.Instance.LoadItems();

                if (QuestMgr.Loaded)
                {
                    EnsureItemQuestRelations();
                }

                RealmServer.InitMgr.SignalGlobalMgrReady(typeof(ItemMgr));
                Loaded = true;
            }
        }