Remove judge properties from note event.

This commit is contained in:
2022-10-29 00:46:14 +08:00
parent 745a5d69e4
commit c0d6b89edc
2 changed files with 4 additions and 13 deletions

View File

@@ -377,21 +377,13 @@ namespace Cryville.Crtr {
}
public Note() {
SubmitPropSrc("judge", new PropSrc.String(() => judge));
SubmitPropSrc("endjudge", new PropSrc.String(() => endjudge));
SubmitPropSrc("track", new PropSrc.Float(() => {
var i = motions.FirstOrDefault(m => m.RelativeNode == null && m.Name.MainName == "track");
if (i == null) return ((Vec1)ChartPlayer.motionRegistry["track"].InitValue).Value;
else return ((Vec1)i.AbsoluteValue).Value;
}));
SubmitPropOp("judge", new PropOp.String(v => judge = v));
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<Judge>(judges);