/// <summary> /// Constructor /// </summary> public Controller(Settings settings) { _settings = settings; // Create a process monitor that reacts to the game client being launched and closed _procMon = new ProcMon(Settings.GameWindowTitle) { ActionProcessStart = ActionProcessStart, ActionProcessStop = ActionProcessStop }; // Create a parser for the game's log _logParser = new LogParser { LogAction = LogAction, EofAction = SetInitialPresence }; // Create an RPC client _rpcClient = new RpcClient(_settings); }