mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 06:36:31 +09:00
Merge branch 'master' into taiko_drumroll_drawable
Conflicts: osu.Game.Modes.Taiko/osu.Game.Modes.Taiko.csproj
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||
|
||||
using osu.Game.Beatmaps.Samples;
|
||||
using osu.Game.Beatmaps.Timing;
|
||||
using osu.Game.Database;
|
||||
using osu.Game.Modes.Objects;
|
||||
@ -40,23 +39,6 @@ namespace osu.Game.Modes.Taiko.Objects
|
||||
/// </summary>
|
||||
public bool Kiai;
|
||||
|
||||
/// <summary>
|
||||
/// The type of HitObject.
|
||||
/// </summary>
|
||||
public virtual TaikoHitType Type
|
||||
{
|
||||
get
|
||||
{
|
||||
SampleType st = Sample?.Type ?? SampleType.None;
|
||||
|
||||
return
|
||||
// Centre/Rim
|
||||
((st & ~(SampleType.Finish | SampleType.Normal)) == 0 ? TaikoHitType.CentreHit : TaikoHitType.RimHit)
|
||||
// Finisher
|
||||
| ((st & SampleType.Finish) > 0 ? TaikoHitType.Finisher : TaikoHitType.None);
|
||||
}
|
||||
}
|
||||
|
||||
public override void ApplyDefaults(TimingInfo timing, BeatmapDifficulty difficulty)
|
||||
{
|
||||
base.ApplyDefaults(timing, difficulty);
|
||||
|
@ -1,21 +0,0 @@
|
||||
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||
|
||||
using System;
|
||||
|
||||
namespace osu.Game.Modes.Taiko.Objects
|
||||
{
|
||||
[Flags]
|
||||
public enum TaikoHitType
|
||||
{
|
||||
None = 0,
|
||||
CentreHit = 1 << 0,
|
||||
RimHit = 1 << 1,
|
||||
DrumRoll = 1 << 2,
|
||||
DrumRollTick = 1 << 3,
|
||||
Bash = 1 << 4,
|
||||
Finisher = 1 << 5,
|
||||
|
||||
Hit = CentreHit | RimHit
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user