Implement judge event preparation.

This commit is contained in:
2022-11-12 00:55:37 +08:00
parent 8af09a7167
commit d10e6ea18b
2 changed files with 19 additions and 3 deletions

View File

@@ -95,10 +95,11 @@ namespace Cryville.Crtr {
else if (ev.Unstamped == null) { }
else if (ev.Unstamped is Chart.Judge) {
var tev = (Chart.Judge)ev.Unstamped;
Identifier name;
Identifier name = default(Identifier);
ChartPlayer.etor.ContextEvent = tev;
ChartPlayer.etor.ContextState = s;
ChartPlayer.etor.Evaluate(new PropOp.Identifier(v => name = new Identifier(v)), ruleset.judges[tev.Id].input);
judge.Prepare(ps.Time, name, ruleset.judges[tev.Id], cs);
ChartPlayer.etor.ContextState = null;
ChartPlayer.etor.ContextEvent = null;
}