Implement effect.

This commit is contained in:
2023-02-18 14:51:28 +08:00
parent 6bd32c9aef
commit 900bd7b77a
9 changed files with 194 additions and 7 deletions

View File

@@ -59,9 +59,6 @@ namespace Cryville.Crtr {
foreach (var e in effects) {
var effect = e.Value;
etor.ContextCascadeInsert();
if (effect.args != null) foreach (var i in effect.args) {
etor.ContextCascadeUpdate(i.Key, PropSrc.Error);
}
etor.Optimize(effect.duration);
effect.elements.Optimize(etor);
etor.ContextCascadeDiscard();
@@ -101,7 +98,6 @@ namespace Cryville.Crtr {
}
public class EffectDefinition {
public Identifier[] args;
public PdtExpression duration;
public SkinElement elements;
}