Esempio n. 1
0
        public static void Start(object sender, EventArgs e)
        {
            Stopwatch sw = Stopwatch.StartNew();

            Direct3D.RegisterCallbacks(
                ObjectManager  = new ObjectManager(),
                ExecutionQueue = new EndSceneExecute(),
                Movement       = new Movement(),
                Events         = new WoWEvents(),
                Spellbook      = new SpellCollection(),
                Scripts        = new ScriptManager()
                );

            Helper.Initialize();
            Helper.FixInvalidPtrCheck();
            DBC            = new WoWDB();
            Quests         = new QuestCollection();
            Inventory      = new WoWInventory();
            Camera         = new WoWCamera();
            Console        = new WoWConsole();
            ClientServices = new WoWClientServices();

            sw.Stop();
            Log.WriteLine(LogType.Good, "Initialization took {0} ms", sw.ElapsedMilliseconds);
        }