initial implementation of customizable mods

This commit is contained in:
LeNitrous
2019-10-08 18:34:09 +08:00
parent 84c13b93fc
commit 59b2f02828
4 changed files with 130 additions and 1 deletions

View File

@ -69,7 +69,7 @@ namespace osu.Game.Rulesets.Mods
/// <summary>
/// Creates a copy of this <see cref="Mod"/> initialised to a default state.
/// </summary>
public virtual Mod CreateCopy() => (Mod)Activator.CreateInstance(GetType());
public virtual Mod CreateCopy() => (Mod)MemberwiseClone();
public bool Equals(IMod other) => GetType() == other?.GetType();
}