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; }
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); } }
public FFTask(FFTaskType type, FFClient client = null, object args = null) { Type = (int)type; _client = client; _args = args; }
bool BuildAuthorizedConnection(FFClient connection) { // TODO: Implement IP restriction return true; }