18 lines
590 B
C#
18 lines
590 B
C#
using Cryville.Common.Collections.Specialized;
|
|
using UnityEngine;
|
|
|
|
namespace Cryville.Crtr {
|
|
public class Anchor {
|
|
public int Name { get; private set; }
|
|
public Transform Transform { get; private set; }
|
|
public SkinContext SkinContext { get; private set; }
|
|
public IntKeyedDictionary<PropSrc> PropSrcs { get; private set; }
|
|
public Anchor(int name, Transform transform, int propSrcCount = 0) {
|
|
Name = name;
|
|
Transform = transform;
|
|
if (propSrcCount > 0) PropSrcs = new IntKeyedDictionary<PropSrc>(propSrcCount);
|
|
SkinContext = new SkinContext(transform, PropSrcs);
|
|
}
|
|
}
|
|
}
|