コード例 #1
0
        private void LoadServices()
        {
            RollMonitor = new RollMonitor(this);
            var langCode = ClientLanguage();

            switch (langCode)
            {
            // japanese
            case 0:
                LootProcessor = new ENLootProcessor(this);
                break;

            // english
            case 1:
                LootProcessor = new ENLootProcessor(this);
                break;

            // german
            case 2:
                LootProcessor = new DELootProcessor(this);
                break;

            // french
            case 3:
                LootProcessor = new ENLootProcessor(this);
                break;

            // chinese
            case 4:
                LootProcessor = new ZHLootProcessor(this);
                break;
            }

            LootLogger = new LootLogger(this);
        }
コード例 #2
0
 public new void Dispose()
 {
     DisposeListeners();
     LootLogger.Dispose();
     RollMonitor.Dispose();
     base.Dispose();
     RemoveCommands();
     ClearData();
     _pluginInterface.UiBuilder.OnOpenConfigUi -= (sender, args) => DrawConfigUI();
     _pluginInterface.UiBuilder.OnBuildUi      -= DrawUI;
     _pluginInterface.Dispose();
 }