Implement input name evaluation. Implement context state.

This commit is contained in:
2022-11-11 10:01:24 +08:00
parent 84e4e3514d
commit cf00bd8db0
7 changed files with 46 additions and 11 deletions

View File

@@ -397,14 +397,20 @@ namespace Cryville.Crtr {
}
public class Judge : ChartEvent {
public string name;
[JsonIgnore]
public Identifier Id;
public string name {
get { return Id.ToString(); }
set { Id = new Identifier(value); }
}
public override int Priority {
get { return 0; }
}
public Judge() {
SubmitPropSrc("name", new PropSrc.String(() => name));
SubmitPropOp("name", new PropOp.String(v => name = v));
SubmitPropSrc("name", new PropSrc.Identifier(() => Id.Key));
SubmitPropOp("name", new PropOp.Identifier(v => Id = new Identifier(v)));
}
}