Add KeyCounter to Player for fun.

This commit is contained in:
Dean Herbert
2016-10-06 23:33:09 +09:00
parent 10468a566c
commit 5ff9d828eb
2 changed files with 28 additions and 5 deletions

View File

@ -16,7 +16,15 @@ namespace osu.Game.Graphics.UserInterface
}
private List<KeyCounter> counters = new List<KeyCounter>();
public IReadOnlyList<KeyCounter> Counters => counters;
public IEnumerable<KeyCounter> Counters
{
get { return counters; }
set
{
foreach (var k in value)
AddKey(k);
}
}
public void AddKey(KeyCounter key)
{