Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
naoei committed Jan 20, 2025
1 parent a6ef26e commit 4f8f172
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public void TestConversion()
CreateModTest(new ModTestData
{
Autoplay = true,
Beatmap = new Beatmap
CreateBeatmap = () => new Beatmap
{
HitObjects = hitObjects.ToList()
},
Expand Down
14 changes: 12 additions & 2 deletions osu.Game.Rulesets.Tau.Tests/Conversion/TestSceneBeatConversion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,18 @@ private class AngledHitObject : HitObject, IHasAngle

private class PositionalHitObject : HitObject, IHasPosition
{
public float X => Position.X;
public float Y => Position.Y;
public float X
{
get => Position.X;
set => Position = new Vector2(value, Position.Y);
}

public float Y
{
get => Position.Y;
set => Position = new Vector2(Position.X, value);
}

public Vector2 Position { get; set; }
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,18 @@ private class ConvertSlider : HitObject, IHasPathWithRepeats, IHasPosition

public IList<IList<HitSampleInfo>> NodeSamples { get; } = new List<IList<HitSampleInfo>>();

public float X => Position.X;
public float Y => Position.Y;
public float X
{
get => Position.X;
set => Position = new Vector2(value, Position.Y);
}

public float Y
{
get => Position.Y;
set => Position = new Vector2(Position.X, value);
}

public Vector2 Position { get; set; }
}
}
Expand Down
2 changes: 1 addition & 1 deletion osu.Game.Rulesets.Tau.Tests/Mods/TestSceneAutoplay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public void TestAutoplay()
CreateModTest(new ModTestData
{
Autoplay = true,
Beatmap = new Beatmap
CreateBeatmap = () => new Beatmap
{
HitObjects = new List<HitObject>
{
Expand Down
2 changes: 1 addition & 1 deletion osu.Game.Rulesets.Tau.Tests/Mods/TestSceneHardRock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public void TestHardRock()
CreateModTest(new ModTestData()
{
Mod = new TauModHardRock(),
Beatmap = new Beatmap
CreateBeatmap = () => new Beatmap
{
HitObjects = new List<HitObject>
{
Expand Down
2 changes: 1 addition & 1 deletion osu.Game.Rulesets.Tau.Tests/Mods/TestSceneShowoff.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public void TestAutoplay()
{
Autoplay = false,
Mod = new TauModShowoffAutoplay(),
Beatmap = new Beatmap
CreateBeatmap = () => new Beatmap
{
HitObjects = new List<HitObject>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void TestAutoplay(float duration, int amount)
{
Autoplay = false,
Mod = new TauModAutoplay(),
Beatmap = new Beatmap
CreateBeatmap = () => new Beatmap
{
HitObjects = hitObjects
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public void TestAutoplay(float duration, int amount)
CreateModTest(new ModTestData
{
Autoplay = true,
Beatmap = new Beatmap
CreateBeatmap = () => new Beatmap
{
HitObjects = hitObjects
},
Expand Down Expand Up @@ -85,7 +85,7 @@ public void TestAutoplayWithRepeats(int amount, int repeats)
CreateModTest(new ModTestData
{
Autoplay = true,
Beatmap = new Beatmap
CreateBeatmap = () => new Beatmap
{
HitObjects = hitObjects
},
Expand Down
1 change: 1 addition & 0 deletions osu.Game.Rulesets.Tau.sln.DotSettings
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,7 @@
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpPlaceEmbeddedOnSameLineMigration/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpRenamePlacementToArrangementMigration/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpUseContinuousIndentInsideBracesMigration/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002EMemberReordering_002EMigrations_002ECSharpFileLayoutPatternRemoveIsAttributeUpgrade/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ESettingsUpgrade_002EAddAccessorOwnerDeclarationBracesMigration/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ESettingsUpgrade_002EAlwaysTreatStructAsNotReorderableMigration/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ESettingsUpgrade_002ECSharpPlaceAttributeOnSameLineMigration/@EntryIndexedValue">True</s:Boolean>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public partial class PaddleDistributionGraph : CompositeDrawable

public PaddleDistributionGraph(IReadOnlyList<HitEvent> hitEvents, IBeatmap beatmap)
{
beatHitEvents = hitEvents.Where(e => e.HitObject.HitWindows is not HitWindows.EmptyHitWindows && e.HitObject is Beat && e.Result.IsHit()).ToList();
beatHitEvents = hitEvents.Where(e => e.HitObject.HitWindows != HitWindows.Empty && e.HitObject is Beat && e.Result.IsHit()).ToList();
sliderHitEvents = hitEvents.Where(e => e.HitObject is Slider && e.Result.IsHit()).ToList(); // Note that this will only count the end of the sliders.
properties.SetRange(beatmap.Difficulty.CircleSize);
}
Expand Down

0 comments on commit 4f8f172

Please sign in to comment.