2021-06-22 11:10:16 +08:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
using osu.Game.Rulesets.Catch.Objects;
|
|
|
|
using osu.Game.Rulesets.Edit;
|
|
|
|
using osu.Game.Rulesets.UI;
|
|
|
|
using osu.Game.Rulesets.UI.Scrolling;
|
2021-07-07 15:13:34 +08:00
|
|
|
using osuTK;
|
2021-06-22 11:10:16 +08:00
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Catch.Edit.Blueprints
|
|
|
|
{
|
2022-11-24 13:32:20 +08:00
|
|
|
public partial class CatchPlacementBlueprint<THitObject> : PlacementBlueprint
|
2021-06-22 11:10:16 +08:00
|
|
|
where THitObject : CatchHitObject, new()
|
|
|
|
{
|
|
|
|
protected new THitObject HitObject => (THitObject)base.HitObject;
|
|
|
|
|
|
|
|
protected ScrollingHitObjectContainer HitObjectContainer => (ScrollingHitObjectContainer)playfield.HitObjectContainer;
|
|
|
|
|
|
|
|
[Resolved]
|
2023-01-15 15:00:34 +08:00
|
|
|
private Playfield playfield { get; set; } = null!;
|
2021-06-22 11:10:16 +08:00
|
|
|
|
|
|
|
public CatchPlacementBlueprint()
|
|
|
|
: base(new THitObject())
|
|
|
|
{
|
|
|
|
}
|
2021-07-07 15:13:34 +08:00
|
|
|
|
|
|
|
public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) => true;
|
2021-06-22 11:10:16 +08:00
|
|
|
}
|
|
|
|
}
|