Implement input name evaluation. Implement context state.
This commit is contained in:
@@ -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)));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user