Refactor deserialization of objects (#170)

* Use template helpers for deserialization

* Remove space

* Fix naming
This commit is contained in:
Christian Semmler
2023-10-07 14:07:26 -04:00
committed by GitHub
parent 62b97b8f1f
commit a9fa734844
5 changed files with 63 additions and 58 deletions

View File

@@ -1,4 +1,5 @@
#include "mxdssound.h"
#include "legoutil.h"
DECOMP_SIZE_ASSERT(MxDSSound, 0xc0)
@@ -46,8 +47,7 @@ void MxDSSound::Deserialize(char **p_source, MxS16 p_unk24)
{
MxDSMediaAction::Deserialize(p_source, p_unk24);
this->m_volume = *(MxS32*) *p_source;
*p_source += sizeof(MxS32);
GetScalar(p_source, this->m_volume);
}
// OFFSET: LEGO1 0x100c9510