Remove dynamic judge anchors. Add judge time properties.

This commit is contained in:
2023-01-27 16:05:57 +08:00
parent cc985844cd
commit 3d1a11f78b
3 changed files with 17 additions and 36 deletions

View File

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