public HearthstoneEventObserver(IHearthstoneFactory factory) { this.factory = factory; currentState = new HearthInternalStateOff(this); fileObserver = new FileObserver("C:\\Program Files (x86)\\Hearthstone\\Logs\\Power.log", true); new Timer(TimeSpan.FromSeconds(10), DelayedObserving).Start(); }
private void NewLogLine(string line) { currentState = currentState.NewLogLine(line, ref currentGame); }