Make the output type of a property source read-only.

This commit is contained in:
2023-01-16 20:53:45 +08:00
parent 9d6bdd968f
commit 5b9149cb34
8 changed files with 76 additions and 56 deletions

View File

@@ -6,11 +6,11 @@ namespace Cryville.Crtr {
public int Name { get; private set; }
public Transform Transform { get; private set; }
public SkinContext SkinContext { get; private set; }
public Dictionary<int, PropSrc.Arbitrary> PropSrcs { get; private set; }
public Dictionary<int, PropSrc> PropSrcs { get; private set; }
public Anchor(int name, Transform transform, bool hasProps = false) {
Name = name;
Transform = transform;
if (hasProps) PropSrcs = new Dictionary<int, PropSrc.Arbitrary>();
if (hasProps) PropSrcs = new Dictionary<int, PropSrc>();
SkinContext = new SkinContext(transform, PropSrcs);
}
}