mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-26 17:46:38 -05:00
6d3ce3b5cb
* implement RegistrationBook::Notify * Update registrationbook.cpp * Fixes * Change type --------- Co-authored-by: Christian Semmler <mail@csemmler.com>
85 lines
2.5 KiB
C++
85 lines
2.5 KiB
C++
#ifndef REGISTRATIONBOOK_H
|
|
#define REGISTRATIONBOOK_H
|
|
|
|
#include "legoworld.h"
|
|
|
|
class InfocenterState;
|
|
class MxEndActionNotificationParam;
|
|
class LegoControlManagerEvent;
|
|
|
|
// VTABLE: LEGO1 0x100d9928
|
|
// SIZE 0x2d0
|
|
class RegistrationBook : public LegoWorld {
|
|
public:
|
|
enum RegistrationBookScript {
|
|
c_alphabetCtl = 5,
|
|
c_aBitmap = 6,
|
|
c_backgroundBitmap = 36,
|
|
c_checkHiLiteBitmap = 37,
|
|
c_check0ctl = 68,
|
|
c_check1ctl = 71,
|
|
c_check2ctl = 74,
|
|
c_check3ctl = 77,
|
|
c_check4ctl = 80,
|
|
c_check5ctl = 83,
|
|
c_check6ctl = 86,
|
|
c_check7ctl = 89,
|
|
c_check8ctl = 92,
|
|
c_check9ctl = 95,
|
|
};
|
|
|
|
RegistrationBook();
|
|
~RegistrationBook() override; // vtable+0x00
|
|
|
|
MxLong Notify(MxParam& p_param) override; // vtable+0x04
|
|
MxResult Tickle() override; // vtable+0x08
|
|
|
|
// FUNCTION: LEGO1 0x10076e10
|
|
inline const char* ClassName() const override // vtable+0x0c
|
|
{
|
|
// STRING: LEGO1 0x100f04c8
|
|
return "RegistrationBook";
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x10076e20
|
|
inline MxBool IsA(const char* p_name) const override // vtable+0x10
|
|
{
|
|
return !strcmp(p_name, RegistrationBook::ClassName()) || LegoWorld::IsA(p_name);
|
|
}
|
|
|
|
MxResult Create(MxDSAction& p_dsAction) override; // vtable+0x18
|
|
void ReadyWorld() override; // vtable+0x50
|
|
MxBool VTable0x64() override; // vtable+0x64
|
|
void Enable(MxBool p_enable) override; // vtable+0x68
|
|
|
|
// SYNTHETIC: LEGO1 0x10076f30
|
|
// RegistrationBook::`scalar deleting destructor'
|
|
|
|
private:
|
|
undefined4 m_unk0xf8; // 0xf8
|
|
undefined m_unk0xfc; // 0xfc
|
|
undefined m_unk0xfd[3]; // 0xfd
|
|
undefined m_unk0x100[0x68]; // 0x100
|
|
undefined m_unk0x168[0x118]; // 0x168
|
|
struct {
|
|
undefined4 m_unk0x00[3]; // 0x00
|
|
undefined2 m_unk0x0c; // 0x0c
|
|
undefined2 m_unk0x0e; // 0x0e
|
|
} m_unk0x280; // 0x280
|
|
undefined m_unk0x290[0x28]; // 0x290
|
|
undefined2 m_unk0x2b8; // 0x2b8
|
|
InfocenterState* m_infocenterState; // 0x2bc
|
|
undefined m_unk0x2c0; // 0x2c0
|
|
undefined m_unk0x2c1; // 0x2c1
|
|
undefined m_unk0x2c2[0x02]; // 0x2c2
|
|
undefined4 m_unk0x2c4; // 0x2c4
|
|
undefined4 m_unk0x2c8; // 0x2c8
|
|
undefined4 m_unk0x2cc; // 0x2cc
|
|
|
|
MxLong HandleEndAction(MxEndActionNotificationParam& p_param);
|
|
MxLong HandleKeyPress(MxS8 p_key);
|
|
MxLong HandleClick(LegoControlManagerEvent& p_param);
|
|
MxLong HandleNotification19(MxParam& p_param);
|
|
};
|
|
|
|
#endif // REGISTRATIONBOOK_H
|