internal static int smethod_2(Class623 A_0) { int num = A_0.method_1(); if (A_0.method_0() && smethod_4(num)) { num |= -2147483648; } return(num); }
private string method_14(Class623 A_0, bool A_1) { int num = A_0.method_0() ? this.int_0[A_0.method_1()] : A_0.method_1(); if (A_1) { num /= 0x10000; } else { num = Class576.smethod_2(num); } return(Class1041.smethod_8(num)); }
private string method_8(ShapeObject A_0, Class623 A_1, bool A_2) { int num = 15; if (A_1.method_0()) { switch (A_1.method_1()) { case 0: if (A_2) { return(BookmarkStart.b("头制弸伺", num)); } return(BookmarkStart.b("䄴堶䤸", num)); case 1: if (A_2) { return(BookmarkStart.b("䜴帶常区䤼", num)); } return(BookmarkStart.b("圴堶䴸伺刼刾", num)); case 2: return(Class1041.smethod_8(A_2 ? (A_0.CoordOriginX + (A_0.CoordSizeWidth / 2)) : (A_0.CoordOriginY + (A_0.CoordSizeHeight / 2)))); } if (A_1.method_1() >= 0x100) { return(string.Format(BookmarkStart.b("ᄴ䰶स䘺", num), Class1041.smethod_8(A_1.method_1() - 0x100))); } int num2 = (this.class456_0 == null) ? 0 : this.class456_0.Length; if (A_0.Formulas == null) { return(null); } if ((A_1.method_1() - 3) < (num2 + A_0.Formulas.Length)) { return(Class1041.smethod_8(this.int_0[A_1.method_1() - 3])); } } return(Class1041.smethod_8(A_1.method_1())); }
private void method_6(string A_0, ShapeObject A_1, Class623 A_2, bool A_3) { this.class400_0.method_40(A_0, this.method_8(A_1, A_2, A_3)); }
private string method_15(Class623 A_0) { return(this.method_14(A_0, false)); }
private void method_11(string A_0, Class623 A_1, Class623 A_2) { this.class398_0.method_18(A_0, smethod_0(smethod_1(A_1), smethod_1(A_2))); }
// Token: 0x06003048 RID: 12360 // RVA: 0x00138090 File Offset: 0x00136290 internal static void smethod_12() { Class809.bool_7 = false; Class809.smethod_32(false); if (!Class115.smethod_33()) { Class809.class623_0 = Enum30.flag_0; return; } if (!Class809.bool_2 && !Class115.bool_16) { Class115.class525_0.Text = Class41.GetString(OsuString.BanchoClient_FindingClosestServer); Class809.smethod_14(); int num = 5000; int num2 = 100; while (!Class809.bool_2 && (num -= num2) > 0) { Thread.Sleep(num2); } } if (Class809.bool_3) { Class115.class525_0.Text = Class41.GetString(OsuString.BanchoClient_ConnectionLost); } else { Class115.class525_0.Text = Class41.GetString(OsuString.BanchoClient_ConnectingToBancho); } try { Class809.int_5 = 80000; Class809.smethod_18(); Class111.list_1[0].list_0.Add(new Class841(Class41.GetString(OsuString.BanchoClient_Connecting), string.Empty, Color.get_OrangeRed())); Class809.smethod_13(); Class809.stream_0 = new MemoryStream(); using (MemoryStream memoryStream = new MemoryStream()) { using (StreamWriter streamWriter = new StreamWriter(memoryStream)) { streamWriter.NewLine = "\n"; streamWriter.WriteLine(Class341.class605_20); streamWriter.WriteLine(Class341.class605_17); streamWriter.WriteLine("{0}|{1}|{2}|{3}|{4}", new object[] { Class344.smethod_0(), TimeZone.CurrentTimeZone.GetUtcOffset(DateTime.Now).Hours, Class341.class606_15 ? "1" : "0", Class115.string_0, Class341.class606_0 ? "1" : "0" }); streamWriter.Flush(); memoryStream.Position = 0L; string[] string_ = new string[] { "Content-Length: " + memoryStream.Length, "osu-version: " + Class344.smethod_0() }; string[] array = Class809.class162_0.method_61("POST", Class809.smethod_3(), string_, memoryStream, Class809.stream_0); string[] array2 = array; for (int i = 0; i < array2.Length; i++) { string text = array2[i]; int num3 = text.IndexOf(':'); if (num3 > 0) { string text2 = text.Remove(num3).Trim().ToLower(); string text3 = text.Substring(num3 + 1).Trim(); string a; if ((a = text2) != null && a == "cho-token") { Class809.string_2 = text3; } } } } } if (Class809.string_2 == null) { throw new Exception("no token"); } Class809.bool_4 = true; Class809.int_1 = 3000; Class115.class525_0.Text = Class41.GetString(OsuString.BanchoClient_LoggingIn); Class809.int_3 = Class115.int_1; Class809.bool_5 = true; Class809.bool_18 = false; Class809.string_1 = null; } catch (Exception ex) { Class809.bool_13 = false; Class169.smethod_0(new Class133(string.Format("http://osu.ppy.sh/web/bancho_connect.php?v={0}&u={1}&h={2}&fail={3}", new object[] { Class344.smethod_0(), Class341.class605_20, Class341.class605_17, Class809.smethod_3() }))); Class809.smethod_15(); if (Class809.bool_18 && Class809.int_9 <= 10) { Class809.smethod_16(Class41.GetString(OsuString.BanchoClient_BanchoRestart), 30000); } else { if (Class809.int_9 > 3) { Class809.bool_2 = false; } if (Class809.int_9 == 5) { Class765.smethod_0(new Class764(new Exception(ex.ToString())) { string_0 = "connection (" + Class809.smethod_3() + ")" }); } if (Class809.int_9 % 2 == 0) { Class809.int_0++; } if (Class809.int_9 > 1) { Class809.smethod_16(Class809.string_1 ?? Class41.GetString(OsuString.BanchoClient_ConnectionFailedWillKeepRetrying), 30000); } else { Class809.smethod_16(Class809.string_1 ?? Class41.GetString(OsuString.BanchoClient_ConnectionFailedRetryingIn30s), 30000); } } } }
private static float smethod_16(Class623 A_0, int[] A_1) { return(A_0.method_0() ? ((float)A_1[A_0.method_1() - 3]) : ((float)A_0.method_1())); }
internal Class891(Class623 A_0, Class623 A_1) { this.class623_0 = A_0; this.class623_1 = A_1; }
// Token: 0x060033AC RID: 13228 // RVA: 0x0002616B File Offset: 0x0002436B internal static void Reset() { Class876.class623_0 = Mods.None; }
// Token: 0x060033AD RID: 13229 // RVA: 0x00161768 File Offset: 0x0015F968 internal static void smethod_4(Mods mods_0) { switch (Class62.Mode) { case PlayModes.Taiko: Class876.class623_0 &= ~(Mods.SpunOut | Mods.Relax2 | Mods.Target); break; case PlayModes.CatchTheBeat: Class876.class623_0 &= ~(Mods.SpunOut | Mods.Relax2 | Mods.Target); break; case PlayModes.OsuMania: Class876.class623_0 &= ~(Mods.Relax | Mods.SpunOut | Mods.Relax2 | Mods.Target); break; } bool flag; if (!(flag = (Class62.Mode == PlayModes.OsuMania))) { Class876.class623_0 &= ~(Mods.Key4 | Mods.Key5 | Mods.Key6 | Mods.Key7 | Mods.Key8 | Mods.FadeIn | Mods.Random | Mods.Key9 | Mods.KeyCoop | Mods.Key1 | Mods.Key3 | Mods.Key2); } for (Mods mods = (mods_0 != Mods.None) ? mods_0 : Mods.NoFail; mods < ((mods_0 == Mods.None) ? Mods.LastMod : (mods_0 << 1)); mods *= Mods.Easy) { Mods mods2 = Class876.class623_0 & mods; if (mods2 != Mods.None) { Mods mods3 = mods2; if (mods3 <= Mods.HalfTime) { if (mods3 <= Mods.HardRock) { switch (mods3) { case Mods.NoFail: Class876.class623_0 &= ~Mods.SuddenDeath; Class876.class623_0 &= ~Mods.Perfect; Class876.class623_0 &= ~Mods.Relax2; Class876.class623_0 &= ~Mods.Relax; break; case Mods.Easy: Class876.class623_0 &= ~Mods.HardRock; break; default: if (mods3 != Mods.Hidden) { if (mods3 == Mods.HardRock) { Class876.class623_0 &= ~Mods.Easy; } } else if (flag) { Class876.class623_0 &= ~Mods.Flashlight; Class876.class623_0 &= ~Mods.FadeIn; } break; } } else if (mods3 <= Mods.DoubleTime) { if (mods3 != Mods.SuddenDeath) { if (mods3 == Mods.DoubleTime) { Class876.class623_0 &= ~Mods.HalfTime; } } else { Class876.class623_0 &= ~Mods.NoFail; Class876.class623_0 &= ~Mods.Relax2; Class876.class623_0 &= ~Mods.Relax; } } else if (mods3 != Mods.Relax) { if (mods3 == Mods.HalfTime) { Class876.class623_0 &= ~Mods.DoubleTime; Class876.class623_0 &= ~Mods.Nightcore; } } else { Class876.class623_0 &= ~Mods.Relax2; Class876.class623_0 &= ~Mods.NoFail; Class876.class623_0 &= ~Mods.SuddenDeath; Class876.class623_0 &= ~Mods.Perfect; } } else if (mods3 <= Mods.SpunOut) { if (mods3 != Mods.Nightcore) { if (mods3 != Mods.Flashlight) { if (mods3 == Mods.SpunOut) { Class876.class623_0 &= ~Mods.Relax2; } } else if (flag) { Class876.class623_0 &= ~Mods.Hidden; Class876.class623_0 &= ~Mods.FadeIn; } } else { Class876.class623_0 |= Mods.DoubleTime; } } else if (mods3 <= Mods.Perfect) { if (mods3 != Mods.Relax2) { if (mods3 == Mods.Perfect) { Class876.class623_0 |= Mods.SuddenDeath; } } else { Class876.class623_0 &= ~Mods.SpunOut; Class876.class623_0 &= ~Mods.Relax; Class876.class623_0 &= ~Mods.NoFail; Class876.class623_0 &= ~Mods.SuddenDeath; Class876.class623_0 &= ~Mods.Perfect; } } else if (mods3 != Mods.FadeIn) { if (mods3 == Mods.Cinema) { Class876.class623_0 |= Mods.Autoplay; } } else { Class876.class623_0 &= ~Mods.Hidden; Class876.class623_0 &= ~Mods.Flashlight; } } } if ((Class876.class623_0 & Mods.Autoplay) > Mods.None) { Class876.class623_0 &= ~Mods.SpunOut; Class876.class623_0 &= ~Mods.Relax; Class876.class623_0 &= ~Mods.Relax2; Class876.class623_0 &= ~Mods.SuddenDeath; Class876.class623_0 &= ~Mods.Perfect; } }