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); }
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(); }