예제 #1
0
 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();
 }
예제 #2
0
 private void NewLogLine(string line)
 {
     currentState = currentState.NewLogLine(line, ref currentGame);
 }