Пример #1
0
        public override GameClient CreateClient(System.Net.Sockets.Socket s)
        {
            FFClient client = new FFClient(s);

            // Register FF specific handlers
            client.OnCourseFinished += Client_OnCourseFinished;
            client.OnSetCourseInfo += Client_OnSetCourseInfo;
            client.OnSetLootTable += Client_OnSetLootTable;
            client.OnSetItemTemplate += Client_OnSetItemTemplate;
            client.OnReloadData += Client_OnReloadData;

            return client;
        }
Пример #2
0
        void FFCManagerThreadFunc()
        {
            while (true)
            {
                if (_ffc == null)
                {
                    _ffc = new FFClient();
                    _ffc.OnAccountResponse += new EventHandler(_ffc_OnAccountResponse);
                    _ffc.OnChatChannels += OnChatChannels;
                    _ffc.OnChatMessage += OnChatMessage;

                    _ffc.Connect(_address, _port);
                }

                if (_ffc != null && _ffc.Connected)
                    _ffc.Update();

                Thread.Sleep(100);
            }
        }
Пример #3
0
 public FFTask(FFTaskType type, FFClient client = null, object args = null)
 {
     Type = (int)type;
     _client = client;
     _args = args;
 }
Пример #4
0
 bool BuildAuthorizedConnection(FFClient connection)
 {
     // TODO: Implement IP restriction
     return true;
 }