mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-22 16:04:17 +00:00
40 lines
1004 B
C++
40 lines
1004 B
C++
#include "gasstationentity.h"
|
|
|
|
#include "act1state.h"
|
|
#include "isle.h"
|
|
#include "isle_actions.h"
|
|
#include "islepathactor.h"
|
|
#include "legoanimationmanager.h"
|
|
#include "legogamestate.h"
|
|
#include "legoutils.h"
|
|
#include "legoworld.h"
|
|
#include "misc.h"
|
|
#include "mxtransitionmanager.h"
|
|
#include "scripts.h"
|
|
|
|
DECOMP_SIZE_ASSERT(GasStationEntity, 0x68)
|
|
|
|
// FUNCTION: LEGO1 0x100151d0
|
|
MxLong GasStationEntity::VTable0x50(MxParam& p_param)
|
|
{
|
|
if (FUN_1003ef60()) {
|
|
Act1State* state = (Act1State*) GameState()->GetState("Act1State");
|
|
|
|
if (state->GetUnknown18() != 8) {
|
|
state->SetUnknown18(0);
|
|
|
|
if (CurrentActor()->GetActorId() != GameState()->GetActorId()) {
|
|
((IslePathActor*) CurrentActor())->VTable0xe4();
|
|
}
|
|
|
|
Isle* isle = (Isle*) FindWorld(*g_isleScript, IsleScript::c__Isle);
|
|
isle->SetDestLocation(LegoGameState::Area::e_garage);
|
|
|
|
AnimationManager()->FUN_10061010(FALSE);
|
|
TransitionManager()->StartTransition(MxTransitionManager::e_mosaic, 50, FALSE, FALSE);
|
|
}
|
|
}
|
|
|
|
return 1;
|
|
}
|