Exemple #1
0
        /// <summary>
        /// Reads mesh group from binary reader and returns it.
        /// </summary>
        /// <param name="br"></param>
        /// <returns></returns>
        public static MeshGroup ReadFrom(BinaryReader br)
        {
            var result = new MeshGroup();

            result.Name = br.ReadString(32);
            result.Unk2 = br.ReadString(32);

            var meshCount = br.ReadInt32();

            for (var i = 0; i < meshCount; ++i)
            {
                var meshHeader = MeshHeader.ReadFrom(br);
                result.MeshHeaders.Add(meshHeader);
            }

            return(result);
        }