mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-26 17:36:12 -05:00
Implement GasStation:GasStation() function (#424)
* Implementing GasStation:GasStation() function * Update gasstation.cpp * Update gasstation.cpp * Adding m_unk variables to gasstation.h * Update gasstation.h * Update gasstation.h * fixes + match gasstation ctor * formatting fixes * add offset markers to members * formatting fix --------- Co-authored-by: Ramen2X <64166386+Ramen2X@users.noreply.github.com>
This commit is contained in:
parent
d369429e98
commit
6032c1bb27
2 changed files with 31 additions and 2 deletions
|
@ -1,7 +1,9 @@
|
|||
#ifndef GASSTATION_H
|
||||
#define GASSTATION_H
|
||||
|
||||
#include "decomp.h"
|
||||
#include "legoworld.h"
|
||||
#include "radio.h"
|
||||
|
||||
// VTABLE: LEGO1 0x100d4650
|
||||
// SIZE 0x128
|
||||
|
@ -26,6 +28,20 @@ class GasStation : public LegoWorld {
|
|||
{
|
||||
return !strcmp(p_name, GasStation::ClassName()) || LegoWorld::IsA(p_name);
|
||||
}
|
||||
|
||||
private:
|
||||
undefined2 m_unk0xf8; // 0xf8
|
||||
undefined2 m_unk0xfa; // 0xfa
|
||||
undefined4 m_unk0xfc; // 0xfc
|
||||
undefined4 m_unk0x100; // 0x100
|
||||
undefined2 m_unk0x104; // 0x104
|
||||
undefined2 m_unk0x106; // 0x106
|
||||
undefined4 m_unk0x108; // 0x108
|
||||
undefined4 m_unk0x10c; // 0x10c
|
||||
undefined4 m_unk0x110; // 0x110
|
||||
undefined m_unk0x114; // 0x114
|
||||
undefined m_unk0x115; // 0x115
|
||||
Radio m_radio; // 0x118
|
||||
};
|
||||
|
||||
#endif // GASSTATION_H
|
||||
|
|
|
@ -1,9 +1,22 @@
|
|||
#include "gasstation.h"
|
||||
|
||||
// STUB: LEGO1 0x100046a0
|
||||
#include "mxnotificationmanager.h"
|
||||
|
||||
// FUNCTION: LEGO1 0x100046a0
|
||||
GasStation::GasStation()
|
||||
{
|
||||
// TODO
|
||||
this->m_unk0xf8 = 0;
|
||||
this->m_unk0x100 = 0;
|
||||
this->m_unk0xfc = 0;
|
||||
this->m_unk0x108 = 0;
|
||||
this->m_unk0x104 = 0;
|
||||
this->m_unk0x114 = 0;
|
||||
this->m_unk0x106 = 0;
|
||||
this->m_unk0x10c = 0;
|
||||
this->m_unk0x115 = 0;
|
||||
this->m_unk0x110 = 0;
|
||||
|
||||
NotificationManager()->Register(this);
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x100048c0
|
||||
|
|
Loading…
Reference in a new issue