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); }
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; }