コード例 #1
0
ファイル: FilterCore.cs プロジェクト: zzorgle/ThwargLauncher
        }                                            // for game emulator

        protected override void Startup()
        {
            Debug.Init(FileLocations.PluginPersonalFolder.FullName + @"\Exceptions.txt", PluginName);
            SettingsFile.Init(FileLocations.GetFilterSettingsFilepath(), PluginName);
            LogStartup();

            defaultFirstCharacterManager = new DefaultFirstCharacterManager(loginCharacterTools);
            chooseCharacterManager       = new LauncherChooseCharacterManager(loginCharacterTools);
            magFilterCommandExecutor     = new MagFilterCommandExecutor();
            magFilterCommandParser       = new MagFilterCommandParser(magFilterCommandExecutor);
            Heartbeat.SetCommandParser(magFilterCommandParser);
            loginNextCharacterManager        = new LoginNextCharacterManager(loginCharacterTools);
            thwargInventory                  = new ThwargInventory();
            magFilterCommandParser.Inventory = thwargInventory;

            ClientDispatch += new EventHandler <NetworkMessageEventArgs>(FilterCore_ClientDispatch);
            ServerDispatch += new EventHandler <NetworkMessageEventArgs>(FilterCore_ServerDispatch);
            WindowMessage  += new EventHandler <WindowMessageEventArgs>(FilterCore_WindowMessage);

            CommandLineText += new EventHandler <ChatParserInterceptEventArgs>(FilterCore_CommandLineText);
        }
コード例 #2
0
 public static void SetCommandParser(MagFilterCommandParser parser)
 {
     theHeartbeat._cmdParser = parser;
 }