Implement multiple static matching.

This commit is contained in:
2023-01-14 22:01:29 +08:00
parent 7662011d60
commit 4fdd4e1935
2 changed files with 32 additions and 51 deletions

View File

@@ -48,8 +48,8 @@ namespace Cryville.Crtr {
ChartPlayer.etor.ContextTransform = null;
foreach (var r in rel.elements) {
try {
var new_anchor = r.Key.MatchStatic(context, anchor);
if (new_anchor != null) {
var new_anchors = r.Key.MatchStatic(context, anchor);
if (new_anchors != null) foreach (var new_anchor in new_anchors) {
MatchStatic(r.Value, context, new_anchor);
}
}