public PacketReader(GameInterface _gameInterface, Settings _settings) { gameInterface = _gameInterface; settings = _settings; BeginPacketReading(); }
public GameInterface(Settings _settings) { settings = _settings; if (!BLChatBot.debug) // dont read packets if debug packetReader = new PacketReader(this, settings); packetParser = new PacketParser(this, settings); Test(); // DebugIncomingPacket(BLChatBot.debug); }
int titleUpdateRate = 1200; // millisec #endregion Fields #region Constructors public BLChatBot() { // Set title SetTitle(); titleStopWatch.Start(); // Load modules settings = new Settings(); gi = new GameInterface(settings); // Main loop while (Program.isRunning) { UpdateTitle(); Thread.Sleep(1); } }
public PacketParser(GameInterface _gameInterface, Settings _settings) { gameInterface = _gameInterface; settings = _settings; packetAnalyzer = new PacketAnalyzer(); }