Add effect definition.

This commit is contained in:
2023-02-15 15:35:09 +08:00
parent b84d645aee
commit 4a5b2a6889
2 changed files with 15 additions and 1 deletions

View File

@@ -32,7 +32,9 @@ namespace Cryville.Crtr {
}
[Binder(typeof(PdtBinder))]
public class PdtSkin : SkinElement { }
public class PdtSkin : SkinElement {
public Dictionary<Identifier, EffectDefinition> effects = new Dictionary<Identifier, EffectDefinition>();
}
public class SkinElement {
[ElementList]
@@ -63,4 +65,13 @@ namespace Cryville.Crtr {
}
}
}
public class EffectDefinition {
public Identifier[] args;
public PdtExpression duration;
[ElementList]
public Dictionary<SkinSelectors, SkinElement> elements
= new Dictionary<SkinSelectors, SkinElement>();
}
}