Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Commit

Permalink
Merge pull request #55 from GSculerlor/dependabot-nuget-dev-rework-pp…
Browse files Browse the repository at this point in the history
…y.osu.Game-2021.916.0

Bump ppy.osu.Game from 2021.907.0 to 2021.916.0
  • Loading branch information
GSculerlor authored Sep 17, 2021
2 parents b3aa3dc + faf4fe9 commit d1b0b6c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
8 changes: 3 additions & 5 deletions osu.Game.Rulesets.Cytosu.Tests/TestSceneOsuGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,16 @@ public class TestSceneOsuGame : OsuTestScene
[BackgroundDependencyLoader]
private void load(GameHost host, OsuGameBase gameBase)
{
OsuGame game = new OsuGame();
game.SetHost(host);

Children = new Drawable[]
{
new Box
{
RelativeSizeAxes = Axes.Both,
Colour = Color4.Black,
},
game
}
};

AddGame(new OsuGame());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Input.Bindings;
using osu.Framework.Input.Events;
using osu.Game.Rulesets.Cytosu.Objects.Drawables.Piece;
using osu.Game.Rulesets.Objects.Drawables;
using osu.Game.Rulesets.Scoring;
Expand Down Expand Up @@ -182,15 +183,15 @@ public HitReceptor()
CornerExponent = 2;
}

public bool OnPressed(CytosuAction action)
public bool OnPressed(KeyBindingPressEvent<CytosuAction> e)
{
switch (action)
switch (e.Action)
{
case CytosuAction.Action1:
case CytosuAction.Action2:
if (IsHovered && (Hit?.Invoke() ?? false))
{
HitAction = action;
HitAction = e.Action;
return true;
}

Expand All @@ -200,7 +201,7 @@ public bool OnPressed(CytosuAction action)
return false;
}

public void OnReleased(CytosuAction action)
public void OnReleased(KeyBindingReleaseEvent<CytosuAction> e)
{
}
}
Expand Down
2 changes: 1 addition & 1 deletion osu.Game.Rulesets.Cytosu/osu.Game.Rulesets.Cytosu.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
<Folder Include="Resources"/>
</ItemGroup>
<ItemGroup>
<PackageReference Include="ppy.osu.Game" Version="2021.907.0"/>
<PackageReference Include="ppy.osu.Game" Version="2021.916.0"/>
</ItemGroup>
</Project>

0 comments on commit d1b0b6c

Please sign in to comment.