mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 08:24:16 +00:00
feat: Implement several ::Serialize functions (#1017)
* feat: Implement many ::Serialize functions * address review comments, part 1 [skip ci] * address review comments, part 2 [skip ci] * review comments (final part) * refactor: Remove Read/Write duplication * fix merge conflict * Match PizzeriaState::Serialize again * Remove unused variable, add LegoVehicleBuildState::Serialize * Implement AnimState::Serialize * fix: Conform with naming scheme * refactor: change names back * refactor: int to MxS32 --------- Co-authored-by: jonschz <jonschz@users.noreply.github.com>
This commit is contained in:
@@ -73,9 +73,23 @@ LegoVehicleBuildState::LegoVehicleBuildState(const char* p_classType)
|
||||
m_placedPartCount = 0;
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10026120
|
||||
MxResult LegoVehicleBuildState::Serialize(LegoFile* p_legoFile)
|
||||
// FUNCTION: LEGO1 0x10026120
|
||||
MxResult LegoVehicleBuildState::Serialize(LegoFile* p_file)
|
||||
{
|
||||
// TODO
|
||||
return LegoState::Serialize(p_legoFile);
|
||||
LegoState::Serialize(p_file);
|
||||
|
||||
if (p_file->IsReadMode()) {
|
||||
Read(p_file, &m_unk0x4c);
|
||||
Read(p_file, &m_unk0x4d);
|
||||
Read(p_file, &m_unk0x4e);
|
||||
Read(p_file, &m_placedPartCount);
|
||||
}
|
||||
else {
|
||||
Write(p_file, m_unk0x4c);
|
||||
Write(p_file, m_unk0x4d);
|
||||
Write(p_file, m_unk0x4e);
|
||||
Write(p_file, m_placedPartCount);
|
||||
}
|
||||
|
||||
return SUCCESS;
|
||||
}
|
||||
|
Reference in New Issue
Block a user