1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-27 14:12:56 +08:00

Explicitly return list

This commit is contained in:
Dean Herbert 2017-10-25 23:53:09 +09:00
parent e62928102c
commit c260b0d2a5

View File

@ -60,12 +60,12 @@ namespace osu.Game.Input
} }
/// <summary> /// <summary>
/// Retrieve <see cref="DatabasedKeyBinding"/>s for a specified ruleset/variant content. /// Retrieve <see cref="KeyBinding"/>s for a specified ruleset/variant content.
/// </summary> /// </summary>
/// <param name="rulesetId">The ruleset's internal ID.</param> /// <param name="rulesetId">The ruleset's internal ID.</param>
/// <param name="variant">An optional variant.</param> /// <param name="variant">An optional variant.</param>
/// <returns></returns> /// <returns></returns>
public IEnumerable<DatabasedKeyBinding> Query(int? rulesetId = null, int? variant = null) => public List<DatabasedKeyBinding> Query(int? rulesetId = null, int? variant = null) =>
GetContext().DatabasedKeyBinding.Where(b => b.RulesetID == rulesetId && b.Variant == variant).ToList(); GetContext().DatabasedKeyBinding.Where(b => b.RulesetID == rulesetId && b.Variant == variant).ToList();
public void Update(KeyBinding keyBinding) public void Update(KeyBinding keyBinding)