コード例 #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
        internal static void Start(object sender, EventArgs e)
        {
            //Debugger.Break();
            Stopwatch sw = Stopwatch.StartNew();

            ObjectManager = new ObjectManager();
            AssemblyAnalyzer.RegisterTarget(ObjectManager);

            ESExecute = new EndSceneExecute();
            AssemblyAnalyzer.RegisterTarget(ESExecute);

            DBC = new WoWDB();

            Movement = new Movement();
            AssemblyAnalyzer.RegisterTarget(Movement);

            LuaInterface.Initialize();

            Events = new Events();
            AssemblyAnalyzer.RegisterTarget(Events);

            Helper.Initialize();

            Spellbook = new SpellCollection();
            AssemblyAnalyzer.RegisterTarget(Spellbook);

            ScriptManager.Initialize();

            Camera = new Camera();

            //Initialize Chat Logger // qk
            Client.Chat.ChatThread.Start();

            AssemblyAnalyzer.Analyze(Assembly.GetExecutingAssembly());

            sw.Stop();
            Log.WriteLine("Initialization took {0} ms", sw.ElapsedMilliseconds);
        }
コード例 #3
0
ファイル: Manager.cs プロジェクト: TyrelBaux/IceFlake
        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();
            DBC = new WoWDB();
            Quests = new QuestCollection();
            Inventory = new WoWInventory();
            Camera = new WoWCamera();

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