Remove track property on note event. Attach contextual state on skin evaluation.

This commit is contained in:
2022-11-19 01:04:15 +08:00
parent 3ed7e566dd
commit 3b65dbea5b
3 changed files with 6 additions and 8 deletions

View File

@@ -377,14 +377,6 @@ namespace Cryville.Crtr {
}
}
public Note() {
SubmitPropSrc("track", new PropSrc.Float(() => {
var i = motions.FirstOrDefault(m => m.RelativeNode == null && m.Name == "track");
if (i == null) return ((Vec1)ChartPlayer.motionRegistry["track"].InitValue).Value;
else return ((Vec1)i.AbsoluteValue).Value;
}));
}
public override EventList GetEventsOfType(string type) {
switch (type) {
case "judges": return new EventList<Judge>(judges);