mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
Add support for replay mods
This commit is contained in:
@ -8,6 +8,7 @@ using osu.Framework.Graphics.Textures;
|
||||
using osu.Game.Rulesets;
|
||||
using osu.Game.Rulesets.Mods;
|
||||
using osu.Game.Rulesets.UI;
|
||||
using osu.Game.Beatmaps.Legacy;
|
||||
|
||||
namespace osu.Game.Beatmaps
|
||||
{
|
||||
@ -53,6 +54,8 @@ namespace osu.Game.Beatmaps
|
||||
{
|
||||
public override IEnumerable<Mod> GetModsFor(ModType type) => new Mod[] { };
|
||||
|
||||
public override IEnumerable<Mod> GetLegacyModsFor(LegacyMods mods) => new Mod[] { };
|
||||
|
||||
public override RulesetContainer CreateRulesetContainerWith(WorkingBeatmap beatmap, bool isForCurrentRuleset)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
|
43
osu.Game/Beatmaps/Legacy/LegacyMods.cs
Normal file
43
osu.Game/Beatmaps/Legacy/LegacyMods.cs
Normal file
@ -0,0 +1,43 @@
|
||||
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||
|
||||
using System;
|
||||
|
||||
namespace osu.Game.Beatmaps.Legacy
|
||||
{
|
||||
[Flags]
|
||||
public enum LegacyMods
|
||||
{
|
||||
None = 0,
|
||||
NoFail = 1,
|
||||
Easy = 2,
|
||||
TouchDevice = 4,
|
||||
Hidden = 8,
|
||||
HardRock = 16,
|
||||
SuddenDeath = 32,
|
||||
DoubleTime = 64,
|
||||
Relax = 128,
|
||||
HalfTime = 256,
|
||||
NightCore = 512,
|
||||
FlashLight = 1024,
|
||||
AutoPlay = 2048,
|
||||
SpunOut = 4096,
|
||||
AutoPilot = 8192,
|
||||
Perfect = 16384,
|
||||
Key4 = 32768,
|
||||
Key5 = 65536,
|
||||
Key6 = 131072,
|
||||
Key7 = 262144,
|
||||
Key8 = 524288,
|
||||
keyMod = 1015808,// k4+k5+k6+k7+k8
|
||||
FadeIn = 1048576,
|
||||
Random = 2097152,
|
||||
Cinema = 4194304,
|
||||
TargetPractice = 8388608,
|
||||
Key9 = 16777216,
|
||||
Coop = 33554432,
|
||||
Key1 = 67108864,
|
||||
Key3 = 134217728,
|
||||
Key2 = 268435456,
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user