public void Cleanup() { DisconnectTests(); Proxy.ClientData2 -= data => Proxy.SendToServer(data); Proxy.ServerData2 -= data => Proxy.SendToClient(data); Proxy.Error -= (e, o) => Logger.Error($"{e} {o}"); Proxy.Dispose(); }
public void Cleanup() { BotHaseDisconnected(); Proxy.ClientData2 -= (data) => Proxy.SendToServer(data); Proxy.ServerData2 -= (data) => Proxy.SendToClient(data); Proxy.Error -= (e, o) => Logger.Error($"{e} {o}"); Proxy.Dispose(); Options = null; }
public void Initialize() { #pragma warning disable CS0618 // Obsolete, Place holder till Accounts are ready var CharacterFile = Path.Combine(FurcPaths.CharacterPath, #pragma warning restore CS0618 // Obsolete, Place holder till Accounts are ready "silvermonkey.ini"); Options = new ProxyOptions() { Standalone = true, CharacterIniFile = CharacterFile, ResetSettingTime = 10 }; Proxy = new ProxySession(Options); Proxy.ServerData2 += data => Proxy.SendToClient(data); Proxy.ClientData2 += data => Proxy.SendToServer(data); Proxy.Error += (e, o) => Logger.Error($"{e} {o}"); BotHasConnected(Proxy.StandAlone); }