Add stub for judge action @var
.
This commit is contained in:
@@ -20,6 +20,9 @@ namespace Cryville.Crtr {
|
||||
else if (a.Remove("score")) {
|
||||
return new Score(a, k);
|
||||
}
|
||||
else if (a.Remove("var")) {
|
||||
return new Variable(a, new Identifier(k));
|
||||
}
|
||||
throw new FormatException("Invalid judge action format.");
|
||||
}
|
||||
public readonly HashSet<string> annotations;
|
||||
@@ -64,5 +67,15 @@ namespace Cryville.Crtr {
|
||||
return new JudgeActionResult();
|
||||
}
|
||||
}
|
||||
public class Variable : JudgeAction {
|
||||
readonly Identifier _target;
|
||||
public Variable(IEnumerable<string> a, Identifier k) : base(a) {
|
||||
_target = k;
|
||||
}
|
||||
internal override JudgeActionResult Execute(IJudge judge, JudgeEvent ev, float time, PdtExpression exp, bool onMiss, int depth, int index) {
|
||||
// throw new NotImplementedException();
|
||||
return new JudgeActionResult();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user