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); }
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); }
public void SerializeSheme(PRCFile f) { WriteUint32(0); //No Shema }