Esempio n. 1
0
        public PacketReader(GameInterface _gameInterface, Settings _settings)
        {
            gameInterface = _gameInterface;
            settings = _settings;

            BeginPacketReading();
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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);
            }
        }
Esempio n. 4
0
 public PacketParser(GameInterface _gameInterface, Settings _settings)
 {
     gameInterface = _gameInterface;
     settings = _settings;
     packetAnalyzer = new PacketAnalyzer();
 }