mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
Ambulance::Create, dtor (#719)
* Ambulance::Create, dtor * annotations * fix * remove comment --------- Co-authored-by: Ramen2X <rmn@legoisland.org> Co-authored-by: Christian Semmler <mail@csemmler.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#ifndef AMBULANCE_H
|
||||
#define AMBULANCE_H
|
||||
|
||||
#include "ambulancemissionstate.h"
|
||||
#include "islepathactor.h"
|
||||
|
||||
// VTABLE: LEGO1 0x100d71a8
|
||||
@@ -8,6 +9,7 @@
|
||||
class Ambulance : public IslePathActor {
|
||||
public:
|
||||
Ambulance();
|
||||
~Ambulance() override;
|
||||
|
||||
MxLong Notify(MxParam& p_param) override; // vtable+0x04
|
||||
MxResult Tickle() override; // vtable+0x08
|
||||
@@ -40,19 +42,18 @@ public:
|
||||
// Ambulance::`scalar deleting destructor'
|
||||
|
||||
private:
|
||||
// TODO: Ambulance fields
|
||||
undefined m_unk0x160[4];
|
||||
MxS32 m_unk0x164;
|
||||
MxS16 m_unk0x168;
|
||||
MxS16 m_unk0x16a;
|
||||
MxS16 m_unk0x16c;
|
||||
MxS16 m_unk0x16e;
|
||||
MxS16 m_unk0x170;
|
||||
MxS16 m_unk0x172;
|
||||
MxS32 m_unk0x174;
|
||||
MxS32 m_unk0x178;
|
||||
MxFloat m_unk0x17c;
|
||||
undefined m_unk0x180[4];
|
||||
undefined m_unk0x160[4]; // 0x160
|
||||
AmbulanceMissionState* m_state; // 0x164
|
||||
MxS16 m_unk0x168; // 0x168
|
||||
MxS16 m_unk0x16a; // 0x16a
|
||||
MxS16 m_unk0x16c; // 0x16c
|
||||
MxS16 m_unk0x16e; // 0x16e
|
||||
MxS16 m_unk0x170; // 0x170
|
||||
MxS16 m_unk0x172; // 0x172
|
||||
MxS32 m_unk0x174; // 0x174
|
||||
MxS32 m_unk0x178; // 0x178
|
||||
MxFloat m_unk0x17c; // 0x17c
|
||||
MxFloat m_time; // 0x180
|
||||
};
|
||||
|
||||
#endif // AMBULANCE_H
|
||||
|
@@ -24,6 +24,8 @@ public:
|
||||
|
||||
MxResult VTable0x1c(LegoFile* p_legoFile) override; // vtable+0x1c
|
||||
|
||||
inline void SetUnknown0x08(undefined4 p_unk0x08) { m_unk0x08 = p_unk0x08; }
|
||||
|
||||
inline MxU16 GetColor(MxU8 p_id)
|
||||
{
|
||||
switch (p_id) {
|
||||
|
@@ -177,9 +177,9 @@ public:
|
||||
|
||||
void SetCurrentAct(Act p_currentAct);
|
||||
void FindLoadedAct();
|
||||
void RegisterState(LegoState* p_state);
|
||||
|
||||
private:
|
||||
void RegisterState(LegoState* p_state);
|
||||
MxResult WriteVariable(LegoStorage* p_storage, MxVariableTable* p_from, const char* p_variableName);
|
||||
MxResult WriteEndOfVariables(LegoStorage* p_storage);
|
||||
MxS32 ReadVariable(LegoStorage* p_storage, MxVariableTable* p_to);
|
||||
|
@@ -3,6 +3,7 @@
|
||||
|
||||
#include "mxvariable.h"
|
||||
|
||||
extern const char* g_varAMBULFUEL;
|
||||
extern const char* g_varVISIBILITY;
|
||||
extern const char* g_varCAMERALOCATION;
|
||||
extern const char* g_varCURSOR;
|
||||
|
Reference in New Issue
Block a user