2023-04-27 22:19:39 -04:00
|
|
|
#ifndef LEGOWORLDPRESENTER_H
|
|
|
|
#define LEGOWORLDPRESENTER_H
|
|
|
|
|
2023-06-29 04:10:08 -04:00
|
|
|
#include "legoentitypresenter.h"
|
|
|
|
|
2024-12-16 16:25:52 -05:00
|
|
|
#include <SDL3/SDL_iostream.h>
|
2024-03-03 15:35:56 -05:00
|
|
|
|
2024-02-29 13:15:20 -05:00
|
|
|
class LegoWorld;
|
2024-03-03 15:35:56 -05:00
|
|
|
struct ModelDbPart;
|
|
|
|
struct ModelDbModel;
|
2024-02-29 13:15:20 -05:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100d8ee0
|
2023-06-29 04:10:08 -04:00
|
|
|
// SIZE 0x54
|
2023-10-24 19:38:27 -04:00
|
|
|
class LegoWorldPresenter : public LegoEntityPresenter {
|
2023-04-27 22:19:39 -04:00
|
|
|
public:
|
2023-10-24 19:38:27 -04:00
|
|
|
LegoWorldPresenter();
|
2024-02-01 15:42:10 -05:00
|
|
|
~LegoWorldPresenter() override; // vtable+0x00
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2024-01-24 21:16:29 -05:00
|
|
|
static void configureLegoWorldPresenter(MxS32 p_legoWorldPresenterQuality);
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2024-05-30 13:10:41 -04:00
|
|
|
// FUNCTION: BETA10 0x100e41c0
|
|
|
|
static const char* HandlerClassName()
|
2023-10-24 19:38:27 -04:00
|
|
|
{
|
2023-12-27 15:59:42 -05:00
|
|
|
// STRING: LEGO1 0x100f0608
|
2023-10-24 19:38:27 -04:00
|
|
|
return "LegoWorldPresenter";
|
|
|
|
}
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2024-05-30 13:10:41 -04:00
|
|
|
// FUNCTION: LEGO1 0x10066630
|
|
|
|
// FUNCTION: BETA10 0x100e4190
|
2024-07-04 19:06:32 -04:00
|
|
|
const char* ClassName() const override // vtable+0x0c
|
2024-05-30 13:10:41 -04:00
|
|
|
{
|
|
|
|
return HandlerClassName();
|
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x10066640
|
2024-07-04 19:06:32 -04:00
|
|
|
MxBool IsA(const char* p_name) const override // vtable+0x10
|
2023-10-24 19:38:27 -04:00
|
|
|
{
|
2023-12-13 05:48:14 -05:00
|
|
|
return !strcmp(p_name, LegoWorldPresenter::ClassName()) || LegoEntityPresenter::IsA(p_name);
|
2023-10-24 19:38:27 -04:00
|
|
|
}
|
2023-11-02 06:54:08 -04:00
|
|
|
|
2024-02-01 15:42:10 -05:00
|
|
|
void ReadyTickle() override; // vtable+0x18
|
|
|
|
void StartingTickle() override; // vtable+0x1c
|
|
|
|
void ParseExtra() override; // vtable+0x30
|
|
|
|
MxResult StartAction(MxStreamController* p_controller, MxDSAction* p_action) override; // vtable+0x3c
|
|
|
|
void VTable0x60(MxPresenter* p_presenter) override; // vtable+0x60
|
2023-12-26 19:45:48 -05:00
|
|
|
|
2024-03-03 15:35:56 -05:00
|
|
|
MxResult LoadWorld(char* p_worldName, LegoWorld* p_world);
|
2024-02-29 13:15:20 -05:00
|
|
|
|
2024-01-18 08:34:14 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x10066750
|
|
|
|
// LegoWorldPresenter::`scalar deleting destructor'
|
|
|
|
|
2023-11-02 06:54:08 -04:00
|
|
|
private:
|
2024-12-16 16:25:52 -05:00
|
|
|
MxResult FUN_10067360(ModelDbPart& p_part, SDL_IOStream* p_wdbFile);
|
|
|
|
MxResult FUN_100674b0(ModelDbModel& p_model, SDL_IOStream* p_wdbFile, LegoWorld* p_world);
|
2024-03-09 12:27:53 -05:00
|
|
|
|
2023-12-13 05:48:14 -05:00
|
|
|
undefined4 m_unk0x50;
|
2023-04-27 22:19:39 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LEGOWORLDPRESENTER_H
|