// Token: 0x06001613 RID: 5651 RVA: 0x0003519C File Offset: 0x0003339C public static bool smethod_0(Class141 process) { Process[] array = Class156.smethod_3("toontown"); bool result; try { if (array.Length != 1) { result = false; } else { int id = array[0].Id; IntPtr intPtr = array[0].smethod_0(); if (!ToonTownParentForm.hashSet_0.Contains(id) && !(intPtr == IntPtr.Zero)) { process.MainWindowHandle = intPtr; result = true; } else { result = false; } } } finally { array.smethod_1 <Process>(); } return(result); }
// Token: 0x060019D3 RID: 6611 RVA: 0x00047A08 File Offset: 0x00045C08 public static bool smethod_3(string processName, Class141 process) { Process[] array = Class156.smethod_3(processName); bool result; try { if (array.Length != 1) { result = false; } else { IntPtr intPtr = array[0].smethod_0(); Class335.smethod_3(Class197.string_2, new object[] { intPtr }); process.MainWindowHandle = intPtr; Class335.smethod_3(Class197.string_3, new object[] { process.MainWindowHandle }); result = true; } } finally { array.smethod_1 <Process>(); } return(result); }
public void method_14(ushort ushort_1) { ushort num = (ushort)((ushort_1 - 40) - 4); byte[] buffer = Class156.IHeader7(num).method_0(); this.interface15_0.Send(buffer, this.ipendPoint_0); }
private void method_12(ulong ulong_2, byte[] byte_0, int int_5, int int_6, DataFragmentType enum8_0) { DataBuffer buffer = new DataBuffer(byte_0, int_5, int_6); byte[] buffer2 = Class156.IHeader2(ulong_2, buffer, enum8_0).method_0(); this.class161_0.vgxruqcnr8(ulong_2, new Class145(buffer2, ulong_2)); this.interface15_0.Send(buffer2, this.ipendPoint_0); this.int_4++; }
internal Class348(SubDocumentType A_0) { int num = 0x13; if ((A_0 != SubDocumentType.Main) && (A_0 != SubDocumentType.Header)) { throw new ArgumentException(BookmarkStart.b("䨸为弼笾⹀⁂ᅄ㹆㥈⹊", num)); } this.subDocumentType_0 = A_0; this.class152_0 = new Class152(); this.class166_0 = new Class166(); this.class156_0 = new Class156(); }
DynamicMetaObject DynamicMetaObject.BindDeleteIndex(DeleteIndexBinder binder, DynamicMetaObject[] indexes) { Class156 <T> class2 = new Class156 <T> { deleteIndexBinder_0 = binder, dynamicMetaObject_0 = indexes, class143_0 = (Class143 <T>) this }; if (!this.method_0("TryDeleteIndex")) { return(base.BindDeleteIndex(class2.deleteIndexBinder_0, class2.dynamicMetaObject_0)); } return(this.method_4("TryDeleteIndex", class2.deleteIndexBinder_0, Class143 <T> .smethod_1(class2.dynamicMetaObject_0), new Delegate2 <T>(class2.method_0))); }
public void OnUdpSessionOpened(byte byte_0, string string_1, IPEndPoint ipendPoint_0, AgileIPE agileIPE_0) { Class100 class2 = this.safeDictionary_1.Get(ipendPoint_0); if (class2 != null) { if (class2.method_1() == byte_0) { return; } class2.Close(SessionClosedCause.DestIdentityChanged, false); this.OnUdpSessionClosed(class2, SessionClosedCause.DestIdentityChanged); } Class100 class3 = new Class100((IPv6)this.object_1, byte_0, ipendPoint_0, string_1, this.int_1); class3.method_7(this.safeDictionary_0.Get(ipendPoint_0) != null); class3.Event_0 += new CbGeneric <Interface17, byte[]>(this.OnDataReceived); class3.SessionClosed += new CbGeneric <Interface17, SessionClosedCause>(this.method_8); this.safeDictionary_1.Add(ipendPoint_0, class3); this.eventSafeTrigger_0.Action <Interface17>("UdpSessionOpened", this.UdpSessionOpened, class3); byte[] buffer = Class156.IHeader1(this.string_0).method_0(); this.object_1.Send(buffer, ipendPoint_0); this.class32_0.imethod_0(string_1, agileIPE_0, this.string_0); }
public abstract void Visit(Class156 c);
public override void Visit(Class156 c) { }
private void method_13(ulong ulong_2, ulong ulong_3, ulong[] ulong_4) { byte[] buffer = Class156.IHeader4(ulong_2, ulong_3, ulong_4).method_0(); this.interface15_0.Send(buffer, this.ipendPoint_0); }
// Token: 0x060004E5 RID: 1253 RVA: 0x00028164 File Offset: 0x00026364 public static Class139 smethod_1(object object_0, Type type_0) { Class139 @class = object_0 as Class139; if (@class != null) { return(@class); } if (type_0 == null) { if (object_0 == null) { return(new Class166()); } type_0 = object_0.GetType(); } type_0 = Class102.smethod_1(type_0); if (type_0 == Class28.type_0) { @class = new Class166(); if (object_0 != null && object_0.GetType() != Class28.type_0) { @class.method_1(object_0.GetType()); } } else if (Class99.smethod_0 <Array>(type_0)) { @class = new Class140(); } else if (Class99.smethod_0 <string>(type_0)) { @class = new Class143(); } else if (Class99.smethod_0 <IntPtr>(type_0)) { @class = new Class146(); } else if (Class99.smethod_0 <UIntPtr>(type_0)) { @class = new Class157(); } else if (Class99.smethod_0 <ulong>(type_0)) { @class = new Class165(); } else if (Class99.smethod_0 <uint>(type_0)) { @class = new Class163(); } else if (Class99.smethod_0 <ushort>(type_0)) { @class = new Class159(); } else if (Class99.smethod_0 <long>(type_0)) { @class = new Class156(); } else if (Class99.smethod_0 <int>(type_0)) { @class = new Class145(); } else if (Class99.smethod_0 <short>(type_0)) { @class = new Class141(); } else if (Class99.smethod_0 <byte>(type_0)) { @class = new Class164(); } else if (Class99.smethod_0 <sbyte>(type_0)) { @class = new Class161(); } else if (Class99.smethod_0 <double>(type_0)) { @class = new Class158(); } else if (Class99.smethod_0 <float>(type_0)) { @class = new Class162(); } else if (Class99.smethod_0 <bool>(type_0)) { @class = new Class144(); } else if (Class99.smethod_0 <char>(type_0)) { @class = new Class155(); } else if (Class28.smethod_0(type_0)) { Class166 class2 = new Class166(); class2.method_1(type_0); @class = class2; } else { if (Class99.smethod_0 <Enum>(type_0)) { Enum enum_; if (object_0 == null) { if (type_0 == Class28.type_2) { enum_ = null; } else { enum_ = (Enum)Activator.CreateInstance(type_0); } } else if (type_0 == Class28.type_2 && object_0 is Enum) { enum_ = (Enum)object_0; } else { enum_ = (Enum)Enum.ToObject(type_0, object_0); } return(new Class160(enum_)); } if (Class99.smethod_0 <ValueType>(type_0)) { if (object_0 == null) { object object_; if (type_0 == Class28.type_3) { object_ = null; } else { object_ = Activator.CreateInstance(type_0); } @class = new Class154(object_); } else { if (object_0.GetType() != type_0) { try { object_0 = Convert.ChangeType(object_0, type_0); } catch { } } @class = new Class154(object_0); } return(@class); } @class = new Class166(); } if (object_0 != null) { @class.vmethod_1(object_0); } return(@class); }
public void method_22() { byte[] buffer = Class156.IHeader6().method_0(); this.interface15_0.Send(buffer, this.ipendPoint_0); }
private void method_12(IPEndPoint ipendPoint_0) { byte[] buffer = Class156.IHeader5().method_0(); this.object_1.Send(buffer, ipendPoint_0); }
public void imethod_1(IPEndPoint ipendPoint_0) { byte[] buffer = Class156.IHeader0(this.string_0, ipendPoint_0).method_0(); this.object_1.Send(buffer, ipendPoint_0); }
// Token: 0x06001A3C RID: 6716 RVA: 0x0004D28C File Offset: 0x0004B48C public void method_0(object _) { IntPtr foregroundWindow = Class265.GetForegroundWindow(); if (foregroundWindow == IntPtr.Zero) { return; } Dictionary <IntPtr, Class205.Class127> dictionary = null; Struct21 hotkey = this.eventArgs18_0.State.Hotkey; lock (this.class205_0.dictionary_0) { if (this.class205_0.dictionary_0.ContainsKey(hotkey)) { dictionary = this.class205_0.dictionary_0[hotkey]; if (dictionary.ContainsKey(foregroundWindow)) { this.class205_0.method_2(dictionary[foregroundWindow], true); return; } } Process process = null; bool flag2 = false; try { process = Class265.smethod_7(foregroundWindow); if (flag2 = (process.smethod_2().ToLower() == "toontown")) { Class87 @class = this.class205_0.class112_0.Hotkeys[hotkey]; Class205.Class206.Class207 class2 = new Class205.Class206.Class207(); class2.class206_0 = this; switch (@class.HotkeyType) { case Enum40.const_0: if (@class.StopOtherHotkeys) { List <Class205.Class127> list = new List <Class205.Class127>(); foreach (KeyValuePair <Struct21, Dictionary <IntPtr, Class205.Class127> > keyValuePair in this.class205_0.dictionary_0) { if (Struct21.smethod_1(keyValuePair.Key, hotkey) && keyValuePair.Value.ContainsKey(foregroundWindow)) { list.Add(keyValuePair.Value[foregroundWindow]); } } foreach (Class205.Class127 hotkey2 in list) { this.class205_0.method_2(hotkey2, true); } } if (dictionary == null) { this.class205_0.dictionary_0.Add(hotkey, dictionary = new Dictionary <IntPtr, Class205.Class127>()); } class2.class127_0 = new Class205.Class127(foregroundWindow, process, @class); dictionary.Add(foregroundWindow, class2.class127_0); process.EnableRaisingEvents = true; process.Exited += class2.method_0; class2.class127_0.Terminated += class2.method_1; if (process.HasExited) { this.class205_0.method_2(class2.class127_0, false); } else { class2.class127_0.method_5(); } break; case Enum40.const_1: { Process[] array = null; try { array = Class156.smethod_3("toontown"); if (array.Length > 1) { int i = 0; while (i < array.Length) { if (!(array[i].smethod_0() == foregroundWindow)) { i++; } else { IntPtr intPtr; if (i == array.Length - 1) { intPtr = array[0].smethod_0(); } else { intPtr = array[i + 1].smethod_0(); } if (intPtr != IntPtr.Zero) { Class410.smethod_8(this.class205_0, intPtr); break; } break; } } } } finally { if (array != null) { foreach (Process process2 in array) { process2.Dispose(); } } } break; } } } } finally { if (!flag2 && process != null) { process.Dispose(); } } } }