Ejemplo n.º 1
0
        public bool Import(BinaryReader reader, int version)
        {
            Name = reader.ReadString();
            int nCount = reader.ReadInt32();

            bool rval = true;

            for (int i = 0; i < nCount; ++i)
            {
                MyMeshSectionMeshInfo info = new MyMeshSectionMeshInfo();
                rval &= info.Import(reader, version);
                Meshes.Add(info);
            }

            return(rval);
        }
Ejemplo n.º 2
0
        public bool Import(BinaryReader reader, int version)
        {
            Name = reader.ReadString();
            int nCount = reader.ReadInt32();

            bool rval = true;
            for (int i = 0; i < nCount; ++i)
            {
                MyMeshSectionMeshInfo info = new MyMeshSectionMeshInfo();
                rval &= info.Import(reader, version);
                Meshes.Add(info);
            }

            return rval;
        }