Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/dotnet-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: Rush (dev build)
path: osu.Game.Rulesets.Rush/bin/Development/net8.0/osu.Game.Rulesets.Rush-dev.dll
path: osu.Game.Rulesets.Rush/bin/Development/net10.0/osu.Game.Rulesets.Rush-dev.dll
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./osu.Game.Rulesets.Rush/bin/Release/net8.0/osu.Game.Rulesets.Rush.dll
asset_path: ./osu.Game.Rulesets.Rush/bin/Release/net10.0/osu.Game.Rulesets.Rush.dll
asset_name: osu.Game.Rulesets.Rush.dll
asset_content_type: application/vnd.microsoft.portable-executable
8 changes: 4 additions & 4 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"request": "launch",
"program": "dotnet",
"args": [
"${workspaceRoot}/osu.Game.Rulesets.Rush.Tests/bin/Debug/net8.0/osu.Game.Rulesets.Rush.Tests.dll"
"${workspaceRoot}/osu.Game.Rulesets.Rush.Tests/bin/Debug/net10.0/osu.Game.Rulesets.Rush.Tests.dll"
],
"cwd": "${workspaceRoot}",
"preLaunchTask": "Build tests (Debug)",
Expand All @@ -19,7 +19,7 @@
"request": "launch",
"program": "dotnet",
"args": [
"${workspaceRoot}/osu.Game.Rulesets.Rush.Tests/bin/Release/net8.0/osu.Game.Rulesets.Rush.Tests.dll"
"${workspaceRoot}/osu.Game.Rulesets.Rush.Tests/bin/Release/net10.0/osu.Game.Rulesets.Rush.Tests.dll"
],
"cwd": "${workspaceRoot}",
"preLaunchTask": "Build tests (Release)",
Expand All @@ -31,11 +31,11 @@
"request": "launch",
"program": "dotnet",
"args": [
"${workspaceRoot}/osu.Game.Rulesets.Rush.Tests/bin/Development/net8.0/osu.Game.Rulesets.Rush.Tests.dll"
"${workspaceRoot}/osu.Game.Rulesets.Rush.Tests/bin/Development/net10.0/osu.Game.Rulesets.Rush.Tests.dll"
],
"cwd": "${workspaceRoot}",
"preLaunchTask": "Build tests (Development)",
"console": "internalConsole"
},
]
}
}
3 changes: 2 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<Project>
<PropertyGroup Label="C#">
<LangVersion>12.0</LangVersion>
<LangVersion>14.0</LangVersion>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsNotAsErrors>NU1901;NU1902;NU1903;NU1904</WarningsNotAsErrors>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
<GenerateProgramFile>false</GenerateProgramFile>
</PropertyGroup>
<ItemGroup Label="Package References">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.3.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.10.1" />
<PackageReference Include="NUnit" Version="4.6.1" />
<PackageReference Include="NUnit3TestAdapter" Version="6.1.0" />
<PackageReference Include="NUnit3TestAdapter" Version="6.3.0" />
</ItemGroup>
<PropertyGroup Label="Project">
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Development' ">
<Optimize Condition=" '$(Optimize)' == '' ">true</Optimize>
Expand Down
6 changes: 2 additions & 4 deletions osu.Game.Rulesets.Rush/Objects/StarSheet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,12 @@ public double EndTime
set => Duration = value - StartTime;
}

private double duration;

public double Duration
{
get => duration;
get;
set
{
duration = value;
field = value;
Tail.StartTime = EndTime;
}
}
Expand Down
31 changes: 18 additions & 13 deletions osu.Game.Rulesets.Rush/RushRuleset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,23 +96,28 @@ public override IEnumerable<Mod> GetModsFor(ModType type)
}
}

public override IEnumerable<KeyBinding> GetDefaultKeyBindings(int variant = 0) => new[]
public override IEnumerable<KeyBinding> GetDefaultKeyBindings(int variant = 0)
{
new KeyBinding(InputKey.J, RushAction.GroundPrimary),
new KeyBinding(InputKey.K, RushAction.GroundSecondary),
new KeyBinding(InputKey.L, RushAction.GroundTertiary),
new KeyBinding(InputKey.Semicolon, RushAction.GroundQuaternary),
if (variant == EDITOR_VARIANT)
return [];

new KeyBinding(InputKey.F, RushAction.AirPrimary),
new KeyBinding(InputKey.D, RushAction.AirSecondary),
new KeyBinding(InputKey.S, RushAction.AirTertiary),
new KeyBinding(InputKey.A, RushAction.AirQuaternary),
return [
new KeyBinding(InputKey.J, RushAction.GroundPrimary),
new KeyBinding(InputKey.K, RushAction.GroundSecondary),
new KeyBinding(InputKey.L, RushAction.GroundTertiary),
new KeyBinding(InputKey.Semicolon, RushAction.GroundQuaternary),

new KeyBinding(InputKey.MouseRight, RushAction.GroundPrimary),
new KeyBinding(InputKey.MouseLeft, RushAction.AirPrimary),
new KeyBinding(InputKey.F, RushAction.AirPrimary),
new KeyBinding(InputKey.D, RushAction.AirSecondary),
new KeyBinding(InputKey.S, RushAction.AirTertiary),
new KeyBinding(InputKey.A, RushAction.AirQuaternary),

new KeyBinding(InputKey.Space, RushAction.Fever),
};
new KeyBinding(InputKey.MouseRight, RushAction.GroundPrimary),
new KeyBinding(InputKey.MouseLeft, RushAction.AirPrimary),

new KeyBinding(InputKey.Space, RushAction.Fever),
];
}

public override IConvertibleReplayFrame CreateConvertibleReplayFrame() => new RushReplayFrame();

Expand Down
3 changes: 1 addition & 2 deletions osu.Game.Rulesets.Rush/UI/Fever/RushFeverBar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,7 @@ private void updateFeverState(ValueChangedEvent<bool> valueChanged)
FinishTransforms(true); // Force the animations to finish immediately when rewinding
}

private RushInputManager rushActionInputManager;
internal RushInputManager RushActionInputManager => rushActionInputManager ??= GetContainingInputManager() as RushInputManager;
internal RushInputManager RushActionInputManager => field ??= GetContainingInputManager() as RushInputManager;

public RushActionTarget ActionTargetForTouchPosition(Vector2 screenSpaceTouchPos) => RushActionTarget.Fever;

Expand Down
8 changes: 3 additions & 5 deletions osu.Game.Rulesets.Rush/UI/RushPlayerSprite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,20 +68,18 @@ public partial class RushPlayerSprite : CompositeDrawable

private double runResetTime;

private PlayerTargetLane target;

public PlayerTargetLane Target
{
get => target;
get;
set
{
if (value == PlayerTargetLane.MiniBoss)
playAnimation(PlayerAnimation.AirAttack);

if (value == target)
if (value == field)
return;

target = value;
field = value;

switch (value)
{
Expand Down
6 changes: 0 additions & 6 deletions osu.Game.Rulesets.Rush/UI/RushSettingsSubsection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,18 @@

using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Localisation;
using osu.Game.Overlays.Settings;
using osu.Game.Rulesets.Rush.Configuration;

namespace osu.Game.Rulesets.Rush.UI
{
public partial class RushSettingsSubsection : RulesetSettingsSubsection
{
private readonly Ruleset ruleset;

protected new RushRulesetConfigManager Config => (RushRulesetConfigManager)base.Config;

protected override LocalisableString Header => ruleset.Description;

public RushSettingsSubsection(Ruleset ruleset)
: base(ruleset)
{
this.ruleset = ruleset;
}

[BackgroundDependencyLoader]
Expand Down
4 changes: 2 additions & 2 deletions osu.Game.Rulesets.Rush/osu.Game.Rulesets.Rush.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup Label="Project">
<Configurations>Debug;Release;Development</Configurations>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<OutputType>Library</OutputType>
<PlatformTarget>AnyCPU</PlatformTarget>
<RootNamespace>osu.Game.Rulesets.Rush</RootNamespace>
Expand Down Expand Up @@ -33,6 +33,6 @@
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<PackageReference Include="ppy.osu.Game" Version="2026.702.1" />
<PackageReference Include="ppy.osu.Game" Version="2026.916.0" />
</ItemGroup>
</Project>
Loading