mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-25 17:34:05 +00:00
Implement/match Isle::CreateState and related (#948)
This commit is contained in:
committed by
GitHub
parent
1633118f68
commit
63719ef689
@@ -1,17 +1,21 @@
|
||||
#include "pizza.h"
|
||||
|
||||
#include "act1state.h"
|
||||
#include "legogamestate.h"
|
||||
#include "misc.h"
|
||||
#include "mxmisc.h"
|
||||
#include "mxticklemanager.h"
|
||||
#include "pizzamissionstate.h"
|
||||
|
||||
DECOMP_SIZE_ASSERT(Pizza, 0x9c)
|
||||
|
||||
// FUNCTION: LEGO1 0x10037ef0
|
||||
Pizza::Pizza()
|
||||
{
|
||||
m_unk0x7c = 0;
|
||||
m_state = NULL;
|
||||
m_unk0x80 = 0;
|
||||
m_skateboard = NULL;
|
||||
m_unk0x88 = 0;
|
||||
m_act1state = NULL;
|
||||
m_unk0x8c = -1;
|
||||
m_unk0x98 = 0;
|
||||
m_unk0x90 = 0x80000000;
|
||||
@@ -30,6 +34,20 @@ MxResult Pizza::Create(MxDSAction& p_dsAction)
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100381b0
|
||||
void Pizza::CreateState()
|
||||
{
|
||||
m_state = (PizzaMissionState*) GameState()->GetState("PizzaMissionState");
|
||||
if (m_state == NULL) {
|
||||
m_state = (PizzaMissionState*) GameState()->CreateState("PizzaMissionState");
|
||||
}
|
||||
|
||||
m_act1state = (Act1State*) GameState()->GetState("Act1State");
|
||||
if (m_act1state == NULL) {
|
||||
m_act1state = (Act1State*) GameState()->CreateState("Act1State");
|
||||
}
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x100382b0
|
||||
void Pizza::FUN_100382b0()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user