Remove judge properties from note event.
This commit is contained in:
@@ -377,21 +377,13 @@ namespace Cryville.Crtr {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Note() {
|
public Note() {
|
||||||
SubmitPropSrc("judge", new PropSrc.String(() => judge));
|
|
||||||
SubmitPropSrc("endjudge", new PropSrc.String(() => endjudge));
|
|
||||||
SubmitPropSrc("track", new PropSrc.Float(() => {
|
SubmitPropSrc("track", new PropSrc.Float(() => {
|
||||||
var i = motions.FirstOrDefault(m => m.RelativeNode == null && m.Name.MainName == "track");
|
var i = motions.FirstOrDefault(m => m.RelativeNode == null && m.Name.MainName == "track");
|
||||||
if (i == null) return ((Vec1)ChartPlayer.motionRegistry["track"].InitValue).Value;
|
if (i == null) return ((Vec1)ChartPlayer.motionRegistry["track"].InitValue).Value;
|
||||||
else return ((Vec1)i.AbsoluteValue).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) {
|
public override EventList GetEventsOfType(string type) {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case "judges": return new EventList<Judge>(judges);
|
case "judges": return new EventList<Judge>(judges);
|
||||||
|
@@ -3,7 +3,6 @@ using Cryville.Crtr.Components;
|
|||||||
using Cryville.Crtr.Event;
|
using Cryville.Crtr.Event;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace Cryville.Crtr {
|
namespace Cryville.Crtr {
|
||||||
@@ -66,10 +65,10 @@ namespace Cryville.Crtr {
|
|||||||
|
|
||||||
public override void StartUpdate(ContainerState s) {
|
public override void StartUpdate(ContainerState s) {
|
||||||
base.StartUpdate(s);
|
base.StartUpdate(s);
|
||||||
if (s.CloneType == 16 && Event.judge != null) {
|
/*if (s.CloneType == 16 && Event.judge != null) {
|
||||||
// var etor = new Evaluator();
|
// var etor = new Evaluator();
|
||||||
//CompiledRuleset.PatchJudge(Event, ChartPlayer.cruleset.primary_judges[Event.judge], s.Time, etor, patchedJudgeEvents, !Event.@long);
|
//CompiledRuleset.PatchJudge(Event, ChartPlayer.cruleset.primary_judges[Event.judge], s.Time, etor, patchedJudgeEvents, !Event.@long);
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Update(ContainerState s, StampedEvent ev) {
|
public override void Update(ContainerState s, StampedEvent ev) {
|
||||||
@@ -172,11 +171,11 @@ namespace Cryville.Crtr {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
else if (s.CloneType == 16) {
|
else if (s.CloneType == 16) {
|
||||||
if (Event.endjudge != null) {
|
/*if (Event.endjudge != null) {
|
||||||
//var etor = new Evaluator();
|
//var etor = new Evaluator();
|
||||||
//CompiledRuleset.PatchJudge(Event, ChartPlayer.cruleset.primary_judges[Event.endjudge], ps.Time, etor, patchedJudgeEvents, true);
|
//CompiledRuleset.PatchJudge(Event, ChartPlayer.cruleset.primary_judges[Event.endjudge], ps.Time, etor, patchedJudgeEvents, true);
|
||||||
}
|
}
|
||||||
cs.Bus.IssuePatch(patchedJudgeEvents.Cast<StampedEvent>());
|
cs.Bus.IssuePatch(patchedJudgeEvents.Cast<StampedEvent>());*/
|
||||||
}
|
}
|
||||||
OpenAnchor("tail");
|
OpenAnchor("tail");
|
||||||
base.EndUpdate(s);
|
base.EndUpdate(s);
|
||||||
|
Reference in New Issue
Block a user