Example #1
0
        internal RWSceneNodeList(RWNodeFactory.RWNodeInfo header, BinaryReader reader)
                : base(header)
        {
            _struct = RWNodeFactory.GetNode<RWSceneNodeListStruct>(this, reader);
            _extensionNodes = new List<RWExtension>(_struct.SceneNodeCount);

            for (int i = 0; i < _struct.SceneNodeCount; i++)
            {
                _extensionNodes.Add(RWNodeFactory.GetNode<RWExtension>(this, reader));

                if (_extensionNodes[i].Children != null && _extensionNodes[i].Children.Count > 0)
                {
                    _struct.SceneNodes[i].BoneMetadata = _extensionNodes[i].Children[0] as RWSceneNodeBoneMetadata;
                }
            }
        }
Example #2
0
 // Constructors
 public RWSceneNodeList(IList<RWSceneNode> frames, List<RWExtension> extensions)
     : base(RWNodeType.FrameList)
 {
     _struct = new RWSceneNodeListStruct(frames);
     _extensionNodes = extensions;
 }