1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 22:33:05 +08:00

Add xmldoc and allow constructing an AssemblyRulesetStore with a directory path

This commit is contained in:
Dean Herbert 2022-02-16 17:25:16 +09:00
parent 5477af08c5
commit 5ffd3ff82a

View File

@ -11,12 +11,28 @@ using osu.Framework.Platform;
namespace osu.Game.Rulesets namespace osu.Game.Rulesets
{ {
/// <summary>
/// A ruleset store that populates from loaded assemblies (and optionally, assemblies in a storage).
/// </summary>
public class AssemblyRulesetStore : RulesetStore public class AssemblyRulesetStore : RulesetStore
{ {
public override IEnumerable<RulesetInfo> AvailableRulesets => availableRulesets; public override IEnumerable<RulesetInfo> AvailableRulesets => availableRulesets;
private readonly List<RulesetInfo> availableRulesets = new List<RulesetInfo>(); private readonly List<RulesetInfo> availableRulesets = new List<RulesetInfo>();
/// <summary>
/// Create an assembly ruleset store that populates from loaded assemblies and an external location.
/// </summary>
/// <param name="path">An path containing ruleset DLLs.</param>
public AssemblyRulesetStore(string path)
: this(new NativeStorage(path))
{
}
/// <summary>
/// Create an assembly ruleset store that populates from loaded assemblies and an optional storage source.
/// </summary>
/// <param name="storage">An optional storage containing ruleset DLLs.</param>
public AssemblyRulesetStore(Storage? storage = null) public AssemblyRulesetStore(Storage? storage = null)
: base(storage) : base(storage)