private void method_10(GClass91 gclass91_0, BinaryStream binaryStream_0, byte[] byte_0, int int_0) { if (this.method_1() == IntPtr.Zero) { this.method_2(GClass927.GetForegroundWindow()); } if (int_0 == 23 && Encoding.UTF8.GetString(byte_0).Contains("policy")) { byte[] bytes = Encoding.ASCII.GetBytes("<cross-domain-policy><allow-access-from domain=\"*\" to-ports=\"*\" /></cross-domain-policy>\0"); gclass91_0.method_3().GetStream().Write(bytes, 0, bytes.Length); try { gclass91_0.method_8(); } catch { } PErkava.concurrentDictionary_2[this.method_1()] = false; if (!this.method_9()) { Debug.WriteLine("Patching failed"); MessageBox.Show("Could not patch the client. This could mean that PErkava doesn't yet support this client version."); return; } PErkava.concurrentDictionary_2[this.method_1()] = true; return; } else { if (this.bool_3) { this.bool_3 = false; int_0--; long position = binaryStream_0.Position; binaryStream_0.Position = position + 1L; } GClass84 <GClass857> gclass = this.gclass84_0; if (gclass == null) { return; } gclass.method_10(binaryStream_0, byte_0, int_0); return; } }
private void method_11() { if (this.commandDispatcher_1 == null) { this.commandDispatcher_1 = new CommandDispatcher(); this.commandDispatcher_1.method_1 <GClass266>(new Action <GClass266>(this.method_27)); this.commandDispatcher_1.method_1 <GClass217>(new Action <GClass217>(this.method_28)); this.commandDispatcher_1.method_1 <GClass284>(new Action <GClass284>(this.method_29)); this.commandDispatcher_1.method_1 <GClass255>(new Action <GClass255>(this.method_30)); this.commandDispatcher_1.method_1 <GClass273>(new Action <GClass273>(this.method_12)); } GameManager gameManager = this.gameManager_0; Action <GInterface0> d; if (gameManager != null) { ConnectionManager connection = gameManager.Connection; if (connection != null) { GClass93 socket = connection.Socket; if (socket != null) { GClass84 <GClass805> gclass = socket.method_5(); if (gclass != null) { if ((d = gclass.method_0()) != null) { goto IL_CC; } } } } } d = new Action <GInterface0>(this.method_7); IL_CC: if (d != new Action <GInterface0>(this.method_7)) { this.gameManager_0.Connection.Socket.method_5().method_1(new Action <GInterface0>(this.method_7)); this.method_16(); } }
private void method_7(object sender, RoutedEventArgs e) { GClass932 proxy = this.Proxy; if (proxy == null) { return; } GClass84 <GClass857> gclass = proxy.method_0(); if (gclass == null) { return; } GClass91 socket = gclass.Socket; if (socket == null) { return; } socket.method_8(); }
private void method_12() { if (this.commandDispatcher_1 == null) { this.commandDispatcher_1 = new CommandDispatcher(); this.commandDispatcher_1.method_1 <GClass261>(new Action <GClass261>(this.method_24)); this.commandDispatcher_1.method_1 <GClass280>(new Action <GClass280>(this.method_25)); this.commandDispatcher_1.method_1 <GClass269>(new Action <GClass269>(this.method_13)); } GameManager gameManager = this.gameManager_0; Action <GInterface0> d; if (gameManager != null) { ConnectionManager connection = gameManager.Connection; if (connection != null) { GClass93 socket = connection.Socket; if (socket != null) { GClass84 <GClass854> gclass = socket.method_5(); if (gclass != null) { if ((d = gclass.method_0()) != null) { goto IL_9E; } } } } } d = new Action <GInterface0>(this.method_8); IL_9E: if (d != new Action <GInterface0>(this.method_8)) { this.gameManager_0.Connection.Socket.method_5().method_1(new Action <GInterface0>(this.method_8)); this.method_16(); } }
public void method_1 <rKso3K0uiPGurbSWWu>(GClass84 <rKso3K0uiPGurbSWWu> gclass84_0) where rKso3K0uiPGurbSWWu : GInterface7 { gclass84_0.MessageSent += this.method_6; gclass84_0.MessageReceived += this.method_5; this._attached.Add(gclass84_0); }
private void method_6(GClass84 <GClass854> gclass84_0) { this.yothKkfRe5 = gclass84_0; }
private void method_6(GClass84 <GClass805> gclass84_1) { this.gclass84_0 = gclass84_1; }
public void method_1 <Fl4buWsl5SHRoTqOvA>(GClass84 <Fl4buWsl5SHRoTqOvA> gclass84_0) where Fl4buWsl5SHRoTqOvA : GInterface7 { gclass84_0.MessageSent += this.method_6; gclass84_0.MessageReceived += this.method_5; this._attached.Add(gclass84_0); }