コード例 #1
0
 public void SerializeModelFileData(PRCFile f)
 {
     WriteUint32(PRCType.PRC_TYPE_ASM_ModelFile);
     SerializeContentPRCBase(f);
     SerializeUnit(f.unit);
     WriteUint32(0); //product_occurences
     WriteUint32(0); //file_structure_index_in_model_file
     SerializeUserData(f);
 }
コード例 #2
0
        public void SerializePRC(PRCFile f)
        {
            f._header.file_structure_information.Clear();
            f._header.file_structure_information.AddRange(f._fileStructures);
            f._header.file_size         = f.GetSize();
            f._header.model_file_offset = f._header.file_size -

                                          SerializePRCHeader(f._header);

            foreach (var fileStructure in f._fileStructures)
            {
                SerializeFileStructure(fileStructure);
            }

            SerializeSheme(f);
            SerializeModelFileData(f);
        }
コード例 #3
0
 public void SerializeSheme(PRCFile f)
 {
     WriteUint32(0); //No Shema
 }