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

@@ -133,8 +133,8 @@ namespace Cryville.Crtr {
}
public class SkinContext {
public Transform Transform { get; private set; }
public Dictionary<int, PropSrc.Arbitrary> PropSrcs { get; private set; }
public SkinContext(Transform transform, Dictionary<int, PropSrc.Arbitrary> propSrcs = null) {
public Dictionary<int, PropSrc> PropSrcs { get; private set; }
public SkinContext(Transform transform, Dictionary<int, PropSrc> propSrcs = null) {
Transform = transform;
PropSrcs = propSrcs;
}
@@ -160,7 +160,7 @@ namespace Cryville.Crtr {
WriteTransform = newctx.Transform;
}
else {
ReadContext = newctx;
ReadContext = newctx;
WriteTransform = newctx.Transform;
}
}