Ejemplo n.º 1
0
        internal ArmatureInstance(ArmatureContent content)
        {
            _ArmatureContent = content;
            _NodeInstances   = new NodeInstance[content.Count];

            // no need to check arguments since they're supposedly pre-checked by ArmatureContent's constructor.

            for (var i = 0; i < _NodeInstances.Length; ++i)
            {
                var n    = content[i];
                var pidx = n.ParentIndex;
                var p    = pidx < 0 ? null : _NodeInstances[pidx];
                _NodeInstances[i] = new NodeInstance(n, p);
            }
        }
Ejemplo n.º 2
0
 internal NodeInstance(NodeContent template, NodeInstance parent)
 {
     _Template = template;
     _Parent   = parent;
 }