コード例 #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);
        }
コード例 #2
0
ファイル: MyImportUtils.cs プロジェクト: rem02/SpaceEngineers
        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;
        }