internal RWMaterialListStruct(RWMaterialList list)
     : base(RWNodeType.Struct, list)
 {
     _matCount = list.Materials.Length;
     _matReferences = new int[_matCount];
     for (int i = 0; i < _matCount; i++)
     {
         _matReferences[i] = -1;
     }
 }
Exemple #2
0
        /****************************************************************************************/
        /* TODO: add the skin plugin and mesh strip plugin here instead of the extension itself */
        /****************************************************************************************/

        #endregion

        /// <summary>
        /// Initializer only to be called <see cref="RWNodeFactory"/>
        /// </summary>
        internal RWMesh(RWNodeFactory.RWNodeInfo header, BinaryReader reader)
                : base(header)
        {
            _struct = RWNodeFactory.GetNode<RWMeshStruct>(this, reader);
            _materialList = RWNodeFactory.GetNode<RWMaterialList>(this, reader);
            _extension = RWNodeFactory.GetNode<RWExtension>(this, reader);
        }