mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-22 23:57:54 -05:00
21d096dcd2
* TowTrackMissionState * Fixes --------- Co-authored-by: Christian Semmler <mail@csemmler.com>
56 lines
1.7 KiB
C++
56 lines
1.7 KiB
C++
#include "towtrackmissionstate.h"
|
|
|
|
DECOMP_SIZE_ASSERT(TowTrackMissionState, 0x28)
|
|
|
|
// FUNCTION: LEGO1 0x1004dd30
|
|
TowTrackMissionState::TowTrackMissionState()
|
|
{
|
|
m_unk0x12 = 0;
|
|
m_unk0x14 = 0;
|
|
m_unk0x16 = 0;
|
|
m_unk0x08 = 0;
|
|
m_unk0x18 = 0;
|
|
m_unk0x0c = 0;
|
|
m_unk0x1a = 0;
|
|
m_unk0x10 = 0;
|
|
m_unk0x1c = 0;
|
|
m_color1 = 0;
|
|
m_color2 = 0;
|
|
m_color3 = 0;
|
|
m_color4 = 0;
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x1004dde0
|
|
MxResult TowTrackMissionState::VTable0x1c(LegoFileStream* p_legoFileStream)
|
|
{
|
|
if (p_legoFileStream->IsWriteMode()) {
|
|
p_legoFileStream->FUN_10006030(this->ClassName());
|
|
}
|
|
|
|
if (p_legoFileStream->IsReadMode()) {
|
|
p_legoFileStream->Write(&m_unk0x12, sizeof(MxU16));
|
|
p_legoFileStream->Write(&m_unk0x14, sizeof(MxU16));
|
|
p_legoFileStream->Write(&m_unk0x16, sizeof(MxU16));
|
|
p_legoFileStream->Write(&m_unk0x18, sizeof(MxU16));
|
|
p_legoFileStream->Write(&m_unk0x1a, sizeof(MxU16));
|
|
p_legoFileStream->Write(&m_unk0x1c, sizeof(MxU16));
|
|
p_legoFileStream->Write(&m_color1, sizeof(MxU16));
|
|
p_legoFileStream->Write(&m_color2, sizeof(MxU16));
|
|
p_legoFileStream->Write(&m_color3, sizeof(MxU16));
|
|
p_legoFileStream->Write(&m_color4, sizeof(MxU16));
|
|
}
|
|
else if (p_legoFileStream->IsWriteMode()) {
|
|
p_legoFileStream->Read(&m_unk0x12, sizeof(MxU16));
|
|
p_legoFileStream->Read(&m_unk0x14, sizeof(MxU16));
|
|
p_legoFileStream->Read(&m_unk0x16, sizeof(MxU16));
|
|
p_legoFileStream->Read(&m_unk0x18, sizeof(MxU16));
|
|
p_legoFileStream->Read(&m_unk0x1a, sizeof(MxU16));
|
|
p_legoFileStream->Read(&m_unk0x1c, sizeof(MxU16));
|
|
p_legoFileStream->Read(&m_color1, sizeof(MxU16));
|
|
p_legoFileStream->Read(&m_color2, sizeof(MxU16));
|
|
p_legoFileStream->Read(&m_color3, sizeof(MxU16));
|
|
p_legoFileStream->Read(&m_color4, sizeof(MxU16));
|
|
}
|
|
|
|
return SUCCESS;
|
|
}
|