Implement score update.

This commit is contained in:
2022-11-14 16:04:58 +08:00
parent d5d6465806
commit ba6166068b
4 changed files with 38 additions and 12 deletions

View File

@@ -45,8 +45,12 @@ namespace Cryville.Crtr {
}
foreach (var j in judges.Values) {
if (j.hit != null) etor.Optimize(j.hit);
if (j.scores != null) foreach (var e in j.scores.Values) {
etor.Optimize(e);
if (j.scores != null) {
foreach (var s in j.scores) {
if (s.Key.op != default(Identifier))
etor.PatchCompound(s.Key.name.Key, s.Key.op.Key, s.Value);
etor.Optimize(s.Value);
}
}
}
foreach (var s in scores.Values) {