Example #1
0
 // Token: 0x06001A60 RID: 6752
 // RVA: 0x00081028 File Offset: 0x0007F228
 protected void method_0(HitObjectManagerBase hitObjectManagerBase_0)
 {
     List<HitObjectBase> hitObjects = hitObjectManagerBase_0.GetHitObjects();
     for (int i = 0; i < hitObjects.Count; i++)
     {
         BeenCorrectedDelegate beenCorrectedDelegate = null;
         BeenCorrectedDelegate beenCorrectedDelegate2 = null;
         Class283.Class357 class = new Class283.Class357();
Example #2
0
 // Token: 0x06001A95 RID: 6805
 // RVA: 0x00082698 File Offset: 0x00080898
 protected override void RunAllRules(HitObjectManagerBase hitObjectManager)
 {
     Class296 current = Class466.Current;
     double num = current.method_24();
     if (num < 1.5)
     {
         this.beatmapDifficulty_0 = BeatmapDifficulty.Easy;
     }
     else if (num < 2.5)
     {
         this.beatmapDifficulty_0 = BeatmapDifficulty.Normal;
     }
     else if (num < 4.0)
     {
         this.beatmapDifficulty_0 = BeatmapDifficulty.Hard;
     }
     else if (num < 4.5)
     {
         this.beatmapDifficulty_0 = BeatmapDifficulty.Insane;
     }
     else
     {
         this.beatmapDifficulty_0 = BeatmapDifficulty.Expert;
     }
     if (Math.Round((double)current.DifficultyHpDrainRate) < 4.0 && this.beatmapDifficulty_0 < BeatmapDifficulty.Hard)
     {
         this.Reports.Add(new AiReport(Severity.Info, Class41.GetString(OsuString.AIMetaMania_EasyHpBelow4)));
     }
     else if (Math.Round((double)current.DifficultyHpDrainRate) < 7.0 && this.beatmapDifficulty_0 >= BeatmapDifficulty.Hard)
     {
         this.Reports.Add(new AiReport(Severity.Info, Class41.GetString(OsuString.AIMetaMania_HardHpBelow7)));
     }
     double num2 = (double)current.ushort_1 * 1.0 / (double)current.int_11;
     if (num2 < 0.05 && Math.Round((double)current.DifficultyOverall) < 8.0)
     {
         this.Reports.Add(new AiReport(Severity.Info, Class41.GetString(OsuString.AIMetaMania_VeryLowSliderOdBelow8)));
     }
     else if (num2 < 0.25 && Math.Round((double)current.DifficultyOverall) < 7.0)
     {
         this.Reports.Add(new AiReport(Severity.Info, Class41.GetString(OsuString.AIMetaMania_LowSliderOdBelow7)));
     }
     else if (Math.Round((double)current.DifficultyOverall) < 5.0)
     {
         this.Reports.Add(new AiReport(Severity.Info, Class41.GetString(OsuString.AIMetaMania_OdBelow5)));
     }
     if (current.bool_11)
     {
         this.Reports.Add(new AiReport(Severity.Warning, Class41.GetString(OsuString.AIMetaMania_NoManiaLetterbox)));
     }
     if (current.enum65_0 != Enum65.const_0)
     {
         this.Reports.Add(new AiReport(Severity.Warning, Class41.GetString(OsuString.AIMetaMania_NoManiaCountdown)));
     }
     base.method_1(false);
 }
Example #3
0
 // Token: 0x06001A98 RID: 6808
 // RVA: 0x000828A0 File Offset: 0x00080AA0
 protected override void RunAllRules(HitObjectManagerBase hitObjectManager)
 {
     Class872 class872_ = Editor.editor_0.class872_0;
     if (class872_.class702_0 == null)
     {
         List<AiReport> arg_48_0 = this.Reports;
         int arg_43_0 = -1;
         Severity arg_43_1 = Severity.Error;
         string arg_43_2 = Class41.GetString(OsuString.AIDesign_NoBackgroundImage);
         int arg_43_3 = -1;
         if (Class295.beenCorrectedDelegate_0 == null)
         {
             Class295.beenCorrectedDelegate_0 = new BeenCorrectedDelegate(Class295.smethod_0);
         }
         arg_48_0.Add(new AiReport(arg_43_0, arg_43_1, arg_43_2, arg_43_3, Class295.beenCorrectedDelegate_0));
     }
     else if (class872_.class702_0.class531_0 != null)
     {
         int int_ = class872_.class702_0.class531_0.int_6;
         int int_2 = class872_.class702_0.class531_0.int_5;
         if (int_ > 1366 || int_2 > 768)
         {
             this.Reports.Add(new AiReport(Severity.Warning, Class41.GetString(OsuString.AIDesign_BackgroundTooLarge)));
         }
     }
     if (class872_.list_5.Count > 0)
     {
         foreach (Class541 current in class872_.list_5)
         {
             if (current.int_6 > 1280 && current.int_5 > 720)
             {
                 this.Reports.Add(new AiReport(Severity.Warning, Class41.GetString(OsuString.AIDesign_VideoDimensionsTooLargeWidescreen)));
             }
             else if (current.int_6 > 1024 && current.int_5 > 768)
             {
                 this.Reports.Add(new AiReport(Severity.Warning, Class41.GetString(OsuString.AIDesign_VideoDimensionsTooLarge)));
             }
         }
     }
     if (!Class466.Current.bool_21)
     {
         List<Class702> arg_186_0 = class872_.list_1;
         if (Class295.predicate_0 == null)
         {
             Class295.predicate_0 = new Predicate<Class702>(Class295.smethod_1);
         }
         if (arg_186_0.FindAll(Class295.predicate_0).Count > 5)
         {
             this.Reports.Add(new AiReport(Severity.Warning, Class41.GetString(OsuString.AIDesign_EpilepsyWarning)));
         }
     }
     this.method_0();
 }
Example #4
0
 // Token: 0x06001AA3 RID: 6819
 // RVA: 0x00082D98 File Offset: 0x00080F98
 protected override void RunAllRules(HitObjectManagerBase hitObjectManager)
 {
     List<Class340> arg_22_0 = Class331.smethod_14();
     if (Class293.predicate_0 == null)
     {
         Class293.predicate_0 = new Predicate<Class340>(Class293.smethod_0);
     }
     List<Class340> list = arg_22_0.FindAll(Class293.predicate_0);
     for (int i = 0; i < list.Count; i++)
     {
         if (i < list.Count - 1 && list[i + 1].double_1 - list[i].double_1 < Class331.smethod_22(list[i].double_1, false) * 4.0)
         {
             this.Reports.Add(new AiReport(Severity.Error, Class41.GetString(OsuString.AITimingTaiko_KiaiToggledTooOften)));
         }
     }
     base.RunAllRules(hitObjectManager);
 }
Example #5
0
		// Token: 0x06001AA1 RID: 6817
		// RVA: 0x00082CD8 File Offset: 0x00080ED8
		protected override void RunAllRules(HitObjectManagerBase hitObjectManager)
		{
			Class296 current = Class466.Current;
			if (current.bool_11)
			{
				this.Reports.Add(new AiReport(Severity.Warning, Class41.GetString(OsuString.AIMetaTaiko_NoLetterboxTaiko)));
			}
			if (current.bool_21)
			{
				this.Reports.Add(new AiReport(Severity.Warning, Class41.GetString(OsuString.AIMetaTaiko_NoEpilepsyTaiko)));
			}
			if (current.enum65_0 != Enum65.const_0)
			{
				this.Reports.Add(new AiReport(Severity.Warning, Class41.GetString(OsuString.AIMetaTaiko_NoCountdownTaiko)));
			}
			if (current.DifficultySliderMultiplier != 1.4 && current.DifficultySliderMultiplier != 1.6)
			{
				this.Reports.Add(new AiReport(Severity.Info, Class41.GetString(OsuString.AIMetaTaiko_BadSvTaiko)));
			}
			base.method_1(false);
		}
Example #6
0
 // Token: 0x06001A84 RID: 6788
 // RVA: 0x00081ED0 File Offset: 0x000800D0
 protected override void RunAllRules(HitObjectManagerBase hitObjectManager)
 {
     Class872 class872_ = Editor.editor_0.class872_0;
     if (class872_.list_0.Count > 0)
     {
         this.Reports.Add(new AiReport(Severity.Warning, Class41.GetString(OsuString.AITimingMania_NoManiaBreaktime)));
     }
     if (Class466.Current.method_24() < 2.5)
     {
         List<Class340> arg_6B_0 = Class331.smethod_14();
         if (Class292.predicate_0 == null)
         {
             Class292.predicate_0 = new Predicate<Class340>(Class292.smethod_0);
         }
         List<Class340> list = arg_6B_0.FindAll(Class292.predicate_0);
         if (list.Count > 0 && Class466.Current.int_16 / list.Count > 15000)
         {
             this.Reports.Add(new AiReport(Severity.Warning, Class41.GetString(OsuString.AITimingMania_TooManySpeedChanges)));
         }
     }
     base.RunAllRules(hitObjectManager);
 }
Example #7
0
		// Token: 0x06001A7F RID: 6783
		// RVA: 0x00016564 File Offset: 0x00014764
		protected override void RunAllRules(HitObjectManagerBase hitObjectManager)
		{
			base.method_1(false);
		}
Example #8
0
 // Token: 0x06001A88 RID: 6792
 // RVA: 0x00081F94 File Offset: 0x00080194
 protected override void RunAllRules(HitObjectManagerBase hitObjectManager)
 {
     Class294.Class364 class = new Class294.Class364();
Example #9
0
 /// <summary>
 /// Runs all rules for this ruleset and fills Reports.
 /// </summary>
 protected abstract void RunAllRules(HitObjectManagerBase hitObjectManager);
Example #10
0
 public List<AiReport> Run(HitObjectManagerBase hitObjectManager)
 {
     Reports.Clear();
     RunAllRules(hitObjectManager);
     return Reports;
 }
Example #11
0
 // Token: 0x060035C9 RID: 13769
 // RVA: 0x0016F86C File Offset: 0x0016DA6C
 protected override void RunAllRules(HitObjectManagerBase hitObjectManager)
 {
     Class286.Class916 class = new Class286.Class916();
Example #12
0
 // Token: 0x06001A79 RID: 6777
 // RVA: 0x0001654D File Offset: 0x0001474D
 protected override void RunAllRules(HitObjectManagerBase hitObjectManager)
 {
     this.method_1(true);
     this.method_2();
 }