示例#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);
        }
示例#2
0
        //This is the first thing called in our injected dll, Ensure to start your form and call any Initalize Functions you may need.
        public static int Run()
        {
            MessageBox.Show("Attach if you want to debug!");

            GeneralHelper.Initialize();
            Offsets.Initialize();
            WoWFunctions.Initialize(); //Some internal functions we can call :)
            ObjectManager.Initialize();
            Pulsator.Initialize();
            WoWEvents.Initialize();

            Application.EnableVisualStyles();
            Application.Run(new MainForm());

            return(0);
        }