public Brain(BotConfig config, Daemon.Daemon daemon) { this.Dispatcher = new Dispatcher.Dispatcher(); Bypass = daemon; GlobalInstanceId = 0; Config = config; State = new Store(); frames = new Dictionary <uint, Frame>(); frames.Add(AuthFrame.PREDICATE, new AuthFrame(this)); frames.Add(CharacterSelectionFrame.PREDICATE, new CharacterSelectionFrame(this)); }
public ComplexityAnalysisInvalidateOnThresholdChange(Lifetime lifetime, Daemon.Daemon daemon, ISettingsStore settingsStore) { SettingsScalarEntry thresholdEntry = settingsStore.Schema.GetScalarEntry((ComplexityAnalysisSettings s) => s.Threshold); settingsStore.AdviseChange(lifetime, thresholdEntry, daemon.Invalidate); }