Introduce concept of HitObjectParsers, fix tests and stop using reflection (unreliable due to lazy loading).

This commit is contained in:
Dean Herbert
2016-11-14 22:03:39 +09:00
parent 0011d7f720
commit d3f810f72f
19 changed files with 146 additions and 59 deletions

View File

@ -21,17 +21,5 @@ namespace osu.Game.Modes.Objects
public double Duration => EndTime - StartTime;
public HitSampleInfo Sample;
public static HitObject Parse(PlayMode mode, string val)
{
//TODO: move to modular HitObjectParser system rather than static parsing. (https://github.com/ppy/osu/pull/60/files#r83135780)
switch (mode)
{
case PlayMode.Osu:
return null; //return OsuBaseHit.Parse(val);
default:
return null;
}
}
}
}