コード例 #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);
            }
        }
コード例 #2
0
ファイル: NodeInstance.cs プロジェクト: vpenades/MonoScene
 internal NodeInstance(NodeContent template, NodeInstance parent)
 {
     _Template = template;
     _Parent   = parent;
 }