// Token: 0x060022AD RID: 8877 // RVA: 0x000D05AC File Offset: 0x000CE7AC internal Class326(Class297 class297_1, int int_7, int int_8, HitObjectSoundType hitObjectSoundType_0, Enum48 enum48_1, bool[] bool_7) : base(class297_1, int_7, int_8, hitObjectSoundType_0) { this.bool_6 = bool_7; for (int i = 0; i < bool_7.Length; i++) { if (bool_7[i]) { this.int_6++; } } this.enum48_0 = enum48_1; if (this.int_6 == this.class297_0.class421_0.list_0.Count) { this.enum48_0 &= (Enum48)(-3); } this.list_2 = new List<Class312>(); }
// Token: 0x0600229E RID: 8862 // RVA: 0x000CF2F8 File Offset: 0x000CD4F8 internal Class322(Class297 class297_1, Vector2 vector2_4, int int_14, HitObjectSoundType hitObjectSoundType_0, int int_15, double double_3, List<Vector2> list_12, List<HitObjectSoundType> list_13, Enum48 enum48_1, bool[] bool_15) : base(class297_1, vector2_4, int_14, false, hitObjectSoundType_0, CurveTypes.Bezier, int_15, double_3, list_12, list_13, 0) { this.class495_0 = (this.class297_0.class494_0 as Class495); this.list_11 = new List<Class312>(); this.EndTime = base.method_8(); this.enum48_0 = enum48_1; this.int_12 = base.Length / int_15; this.class297_0.class421_0.method_43(vector2_4, false); this.bool_14 = bool_15; for (int i = 0; i < bool_15.Length; i++) { if (bool_15[i]) { this.int_13++; } } }
// Token: 0x060022E9 RID: 8937 // RVA: 0x000D27E0 File Offset: 0x000D09E0 public Class315(Class297 class297_1, Vector2 vector2_1, int int_8, HitObjectSoundType hitObjectSoundType_0, Enum48 enum48_1, bool[] bool_8) : base(class297_1) { this.list_2 = new List<Class312>(); this.enum48_0 = enum48_1; this.bool_6 = bool_8; this.Position = vector2_1; this.vector2_0 = vector2_1; this.StartTime = int_8; this.SoundType = hitObjectSoundType_0; for (int i = 0; i < bool_8.Length; i++) { if (bool_8[i]) { this.int_6++; this.int_7 = i; } } }
// Token: 0x060022EA RID: 8938 // RVA: 0x000D2858 File Offset: 0x000D0A58 internal void method_8() { this.class495_0 = (this.class297_0.class494_0 as Class495); if ((this.enum48_0 & Enum48.const_3) == Enum48.const_0) { if (this.SoundType.IsType(HitObjectSoundType.Finish) && this.class297_0.class421_0.list_0.Count != 8) { this.enum48_0 |= Enum48.const_9; } else if (this.SoundType.IsType(HitObjectSoundType.Clap)) { this.enum48_0 |= Enum48.const_8; } } if ((this.enum48_0 & Enum48.const_14) <= Enum48.const_0) { if (this.class297_0.class421_0.list_0.Count != 1) { if ((this.enum48_0 & Enum48.const_10) > Enum48.const_0 && this.int_6 > 0) { for (int i = this.class297_0.class421_0.method_37(); i < this.bool_6.Length; i++) { if (this.bool_6[i]) { this.Add(this.class297_0.class421_0.list_0.Count - i - 1 + this.class297_0.class421_0.method_37()); } } this.method_13(); return; } if ((this.enum48_0 & Enum48.const_11) > Enum48.const_0 && this.int_6 == 1 && (this.class297_0.class421_0.list_0.Count != 8 || this.int_7 != 0) && (this.class297_0.class421_0.list_0.Count % 2 == 0 || this.int_7 != this.class297_0.class421_0.list_0.Count / 2)) { this.int_7 = this.class297_0.class421_0.list_0.Count - this.int_7 - 1 + this.class297_0.class421_0.method_37(); this.Add(this.int_7); this.method_13(); return; } if ((this.enum48_0 & Enum48.const_1) > Enum48.const_0 && this.int_6 > 0) { for (int j = this.class297_0.class421_0.method_37(); j < this.bool_6.Length; j++) { if (this.bool_6[j]) { this.Add(j); } } this.method_13(); return; } if ((this.enum48_0 & (Enum48)6144) > Enum48.const_0 && this.int_6 == 1) { if ((this.enum48_0 & Enum48.const_12) > Enum48.const_0) { this.int_7++; if (this.int_7 == this.class297_0.class421_0.list_0.Count) { this.int_7 = this.class297_0.class421_0.method_37(); } } else { this.int_7--; if (this.int_7 == this.class297_0.class421_0.method_37() - 1) { this.int_7 = this.class297_0.class421_0.list_0.Count - 1; } } this.Add(this.int_7); this.method_13(); return; } if ((this.enum48_0 & Enum48.const_3) > Enum48.const_0) { this.method_11(1); this.method_13(); return; } if ((this.enum48_0 & Enum48.const_9) > Enum48.const_0) { if (this.class297_0.class296_0.method_23() > 6.5) { this.method_10(0.88f, 0.88f, 0.62f); } else if (this.class297_0.class296_0.method_23() > 4.0) { this.method_10(0.88f, 1f, 0.83f); } else { this.method_10(0.88f, 1f, 1f); } } else if (this.class297_0.class296_0.method_23() > 6.5) { if ((this.enum48_0 & Enum48.const_4) > Enum48.const_0) { this.method_9(1f, 1f, 0.58f, 0.22f); } else { this.method_9(1f, 1f, 0.38f, 0f); } } else if (this.class297_0.class296_0.method_23() > 4.0) { if ((this.enum48_0 & Enum48.const_4) > Enum48.const_0) { this.method_9(1f, 1f, 0.92f, 0.65f); } else { this.method_9(1f, 1f, 0.85f, 0.48f); } } else if (this.class297_0.class296_0.method_23() > 2.0) { if ((this.enum48_0 & Enum48.const_4) > Enum48.const_0) { this.method_9(1f, 1f, 1f, 0.82f); } else { this.method_9(1f, 1f, 1f, 0.55f); } } else { this.method_9(1f, 1f, 1f, 1f); } if (this.class297_0.class421_0.method_37() > 0 && this.SoundType.IsType(HitObjectSoundType.Finish | HitObjectSoundType.Clap)) { this.Add(0); } this.method_13(); return; } } this.Add(this.class297_0.class421_0.method_43(this.Position, false)); this.method_13(); }
// Token: 0x06002A18 RID: 10776 RVA: 0x000A1BE4 File Offset: 0x0009FDE4 public static GraphicsPath smethod_0(Rectangle rect, int radius, Enum48 corners) { int num = rect.X + rect.Width; int num2 = rect.Y + rect.Height; int num3 = num - radius; int num4 = num2 - radius; int num5 = rect.X + radius; int num6 = rect.Y + radius; int num7 = radius * 2; int x = num - num7; int y = num2 - num7; GraphicsPath graphicsPath = null; GraphicsPath result; try { graphicsPath = new GraphicsPath(); graphicsPath.StartFigure(); if (corners.HasFlag(Enum48.flag_1)) { graphicsPath.AddArc(rect.X, rect.Y, num7, num7, 180f, 90f); } else { graphicsPath.AddLine(rect.X, num6, rect.X, rect.Y); graphicsPath.AddLine(rect.X, rect.Y, num5, rect.Y); } graphicsPath.AddLine(num5, rect.Y, num3, rect.Y); if (corners.HasFlag(Enum48.flag_2)) { graphicsPath.AddArc(x, rect.Y, num7, num7, 270f, 90f); } else { graphicsPath.AddLine(num3, rect.Y, num, rect.Y); graphicsPath.AddLine(num, rect.Y, num, num6); } graphicsPath.AddLine(num, num6, num, num4); if (corners.HasFlag(Enum48.flag_4)) { graphicsPath.AddArc(x, y, num7, num7, 0f, 90f); } else { graphicsPath.AddLine(num, num4, num, num2); graphicsPath.AddLine(num, num2, num3, num2); } graphicsPath.AddLine(num3, num2, num5, num2); if (corners.HasFlag(Enum48.flag_3)) { graphicsPath.AddArc(rect.X, y, num7, num7, 90f, 90f); } else { graphicsPath.AddLine(num5, num2, rect.X, num2); graphicsPath.AddLine(rect.X, num2, rect.X, num4); } graphicsPath.AddLine(rect.X, num4, rect.X, num6); graphicsPath.CloseFigure(); result = graphicsPath; } catch { if (graphicsPath != null) { graphicsPath.Dispose(); } throw; } return(result); }
// Token: 0x0600229F RID: 8863 // RVA: 0x000CF3A0 File Offset: 0x000CD5A0 internal void method_32() { int int_ = this.class297_0.class421_0.method_43(this.Position, false); int segmentCount = this.SegmentCount; if ((this.enum48_0 & Enum48.const_14) <= Enum48.const_0) { if (this.class297_0.class421_0.list_0.Count != 1) { if (segmentCount > 1) { if (this.int_12 <= 90) { this.method_38(1, this.StartTime, this.EndTime - this.StartTime); return; } if (this.int_12 <= 120) { this.enum48_0 |= Enum48.const_2; this.method_40(this.StartTime, this.int_12, segmentCount); return; } if (this.int_12 <= 160) { this.method_39(this.StartTime, this.int_12, segmentCount); return; } if (this.int_12 <= 200 && this.class297_0.class296_0.method_23() > 3.0) { this.method_41(this.StartTime, this.int_12, segmentCount); return; } int num = this.EndTime - this.StartTime; if (num >= 4000) { this.method_33(this.StartTime, num, 1f, 1f, 0.77f); return; } if (this.int_12 > 400 && num < 4000 && segmentCount < this.class297_0.class421_0.list_0.Count - 1 - this.class297_0.class421_0.method_37()) { this.method_37(segmentCount, this.StartTime, this.int_12); return; } this.method_42(this.StartTime, this.int_12, segmentCount); return; } else { if (this.int_12 <= 110) { if (this.int_13 < this.class297_0.class421_0.list_0.Count) { this.enum48_0 |= Enum48.const_2; } else { this.enum48_0 &= (Enum48)(-3); } this.method_40(this.StartTime, this.int_12, (this.int_12 < 80) ? 0 : 1); return; } if (this.class297_0.class296_0.method_23() > 6.5) { if ((this.enum48_0 & Enum48.const_4) > Enum48.const_0) { this.method_33(this.StartTime, this.EndTime - this.StartTime, 1f, 0.7f, 0.22f); return; } this.method_33(this.StartTime, this.EndTime - this.StartTime, 0.97f, 0.64f, 0.15f); return; } else if (this.class297_0.class296_0.method_23() > 4.0) { if ((this.enum48_0 & Enum48.const_4) > Enum48.const_0) { this.method_33(this.StartTime, this.EndTime - this.StartTime, 1f, 0.92f, 0.57f); return; } this.method_33(this.StartTime, this.EndTime - this.StartTime, 1f, 0.82f, 0.44f); return; } else if (this.class297_0.class296_0.method_23() > 2.5) { if ((this.enum48_0 & Enum48.const_4) > Enum48.const_0) { this.method_33(this.StartTime, this.EndTime - this.StartTime, 1f, 1f, 0.7f); return; } this.method_33(this.StartTime, this.EndTime - this.StartTime, 1f, 0.92f, 0.63f); return; } else { if ((this.enum48_0 & Enum48.const_4) > Enum48.const_0) { this.method_33(this.StartTime, this.EndTime - this.StartTime, 1f, 1f, 0.83f); return; } this.method_33(this.StartTime, this.EndTime - this.StartTime, 1f, 1f, 0.73f); return; } } } } this.Add(int_, this.StartTime, this.EndTime, 1, 0); }