mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-02 20:11:15 +00:00
Some checks are pending
CI / clang-format (push) Waiting to run
CI / ${{ matrix.name }} (false, --toolchain /usr/local/vitasdk/share/vita.toolchain.cmake, false, false, Ninja, Vita, ubuntu-latest, true, true) (push) Waiting to run
CI / ${{ matrix.name }} (false, -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0.26100.0, false, false, Visual Studio 17 2022, true, Xbox One, windows-latest, amd64, false, true) (push) Waiting to run
CI / ${{ matrix.name }} (false, -DCMAKE_TOOLCHAIN_FILE=/opt/devkitpro/cmake/3DS.cmake, false, devkitpro/devkitarm:latest, false, Ninja, true, Nintendo 3DS, ubuntu-latest, true) (push) Waiting to run
CI / ${{ matrix.name }} (false, -DCMAKE_TOOLCHAIN_FILE=/opt/devkitpro/cmake/Switch.cmake, false, devkitpro/devkita64:latest, false, Ninja, Nintendo Switch, true, ubuntu-latest, true) (push) Waiting to run
CI / ${{ matrix.name }} (false, emcmake, false, false, true, Ninja, Emscripten, ubuntu-latest, true) (push) Waiting to run
CI / ${{ matrix.name }} (false, false, false, Ninja, true, MSVC (arm64), windows-latest, amd64_arm64, false) (push) Waiting to run
CI / ${{ matrix.name }} (false, false, true, Ninja, true, MSVC (x86), windows-latest, amd64_x86, false) (push) Waiting to run
CI / ${{ matrix.name }} (false, true, false, Ninja, true, MSVC (x64), windows-latest, amd64, false) (push) Waiting to run
CI / ${{ matrix.name }} (false, true, true, false, Ninja, true, MSVC (x64 Debug), windows-latest, amd64, false) (push) Waiting to run
CI / ${{ matrix.name }} (true, false, -DCMAKE_SYSTEM_NAME=iOS, false, false, Xcode, true, iOS, macos-15, true) (push) Waiting to run
CI / ${{ matrix.name }} (true, false, false, Ninja, true, mingw-w64-i686, mingw32, msys2 mingw32, windows-latest, msys2 {0}, true) (push) Waiting to run
CI / ${{ matrix.name }} (true, false, false, false, Ninja, Android, ubuntu-latest, true) (push) Waiting to run
CI / ${{ matrix.name }} (true, false, true, false, Ninja, macOS, macos-latest, true) (push) Waiting to run
CI / ${{ matrix.name }} (true, true, false, Ninja, true, mingw-w64-x86_64, mingw64, msys2 mingw64, windows-latest, msys2 {0}, true) (push) Waiting to run
CI / ${{ matrix.name }} (true, true, true, false, Ninja, true, Linux (Debug), ubuntu-latest, true) (push) Waiting to run
CI / ${{ matrix.name }} (true, true, true, false, Ninja, true, Linux, ubuntu-latest, true) (push) Waiting to run
CI / Flatpak (${{ matrix.arch }}) (aarch64, ubuntu-22.04-arm) (push) Waiting to run
CI / Flatpak (${{ matrix.arch }}) (x86_64, ubuntu-latest) (push) Waiting to run
CI / C++ (push) Waiting to run
CI / Release (push) Blocked by required conditions
Docker / Publish web port (push) Waiting to run
61 lines
1.8 KiB
C++
61 lines
1.8 KiB
C++
#ifndef LEGOWORLDPRESENTER_H
|
|
#define LEGOWORLDPRESENTER_H
|
|
|
|
#include "lego1_export.h"
|
|
#include "legoentitypresenter.h"
|
|
|
|
#include <SDL3/SDL_iostream.h>
|
|
|
|
class LegoWorld;
|
|
struct ModelDbPart;
|
|
struct ModelDbModel;
|
|
|
|
// VTABLE: LEGO1 0x100d8ee0
|
|
// SIZE 0x54
|
|
class LegoWorldPresenter : public LegoEntityPresenter {
|
|
public:
|
|
LegoWorldPresenter();
|
|
~LegoWorldPresenter() override; // vtable+0x00
|
|
|
|
LEGO1_EXPORT static void configureLegoWorldPresenter(MxS32 p_legoWorldPresenterQuality);
|
|
|
|
// FUNCTION: BETA10 0x100e41c0
|
|
static const char* HandlerClassName()
|
|
{
|
|
// STRING: LEGO1 0x100f0608
|
|
return "LegoWorldPresenter";
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x10066630
|
|
// FUNCTION: BETA10 0x100e4190
|
|
const char* ClassName() const override // vtable+0x0c
|
|
{
|
|
return HandlerClassName();
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x10066640
|
|
MxBool IsA(const char* p_name) const override // vtable+0x10
|
|
{
|
|
return !strcmp(p_name, LegoWorldPresenter::ClassName()) || LegoEntityPresenter::IsA(p_name);
|
|
}
|
|
|
|
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 AdvanceSerialAction(MxPresenter* p_presenter) override; // vtable+0x60
|
|
|
|
MxResult LoadWorld(char* p_worldName, LegoWorld* p_world);
|
|
|
|
// SYNTHETIC: LEGO1 0x10066750
|
|
// LegoWorldPresenter::`scalar deleting destructor'
|
|
|
|
private:
|
|
MxResult LoadWorldPart(ModelDbPart& p_part, SDL_IOStream* p_wdbFile);
|
|
MxResult LoadWorldModel(ModelDbModel& p_model, SDL_IOStream* p_wdbFile, LegoWorld* p_world);
|
|
|
|
MxU32 m_nextObjectId;
|
|
};
|
|
|
|
#endif // LEGOWORLDPRESENTER_H
|