Merge branch 'master' into single-scoreprocessor

This commit is contained in:
Dean Herbert
2019-12-12 11:36:45 +09:00
committed by GitHub
24 changed files with 796 additions and 131 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();
}