diff --git a/Assets/Cryville/Crtr/Chart.cs b/Assets/Cryville/Crtr/Chart.cs index a0971d4..e0812ee 100644 --- a/Assets/Cryville/Crtr/Chart.cs +++ b/Assets/Cryville/Crtr/Chart.cs @@ -235,9 +235,9 @@ namespace Cryville.Crtr { public List notes = new List(); public override IEnumerable Events { get { - return tracks.Cast() + return base.Events .Concat(notes.Cast() - .Concat(motions.Cast() + .Concat(tracks.Cast() )); } } @@ -363,7 +363,16 @@ namespace Cryville.Crtr { } public class Note : EventContainer { - public Note() : base() { + public List judges = new List(); + public override IEnumerable Events { + get { + return base.Events + .Concat(judges.Cast() + ); + } + } + + public Note() { SubmitPropSrc("judge", new PropSrc.String(() => judge)); SubmitPropSrc("endjudge", new PropSrc.String(() => endjudge)); SubmitPropSrc("track", new PropSrc.Float(() => { @@ -375,14 +384,33 @@ namespace Cryville.Crtr { SubmitPropOp("endjudge", new PropOp.String(v => endjudge = v)); } + [Obsolete] public string judge; + [Obsolete] public string endjudge; - + public override EventList GetEventsOfType(string type) { + switch (type) { + case "judges": return new EventList(judges); + default: return base.GetEventsOfType(type); + } + } public override int Priority { get { return 2; } } } + public class Judge : ChartEvent { + public string name; + public override int Priority { + get { return 4; } + } + + public Judge() { + SubmitPropSrc("name", new PropSrc.String(() => name)); + SubmitPropOp("name", new PropOp.String(v => name = v)); + } + } + // TODO [Obsolete] public List sigs; // Signatures // TODO [Obsolete] diff --git a/Assets/Cryville/Crtr/Game.cs b/Assets/Cryville/Crtr/Game.cs index 76c09b6..a16dbe1 100644 --- a/Assets/Cryville/Crtr/Game.cs +++ b/Assets/Cryville/Crtr/Game.cs @@ -98,8 +98,8 @@ namespace Cryville.Crtr { { "ctrl0" , new MotionRegistry(typeof(VecCtrl)) }, { "ctrl1" , new MotionRegistry(typeof(VecCtrl)) }, { "track" , new MotionRegistry(typeof(Vec1)) }, - { "judge" , new MotionRegistry(typeof(Vec1)) }, - { "width" , new MotionRegistry(new Vec1(0), new Vec1(1)) }, + // { "judge" , new MotionRegistry(typeof(Vec1)) }, + // { "width" , new MotionRegistry(new Vec1(0), new Vec1(1)) }, }; var dir = new DirectoryInfo(Settings.Default.GameDataPath + "/charts");