mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-26 09:54:18 +00:00
Refactor files based on beta debug build (#645)
* Rename LegoUnkSaveDataWriter -> LegoCharacterManager * Refactor mxomni into mxomni/mxmisc * Refactor legoomni into legoomni/misc * Resolve deps * Refactor atom * Refactor mxutil * Refactor mxio * Rename/relocate files * Fix format
This commit is contained in:
committed by
GitHub
parent
c62469fef4
commit
8069923651
58
LEGO1/lego/legoomni/src/actors/bike.cpp
Normal file
58
LEGO1/lego/legoomni/src/actors/bike.cpp
Normal file
@@ -0,0 +1,58 @@
|
||||
#include "bike.h"
|
||||
|
||||
#include "legocontrolmanager.h"
|
||||
#include "legogamestate.h"
|
||||
#include "legoomni.h"
|
||||
#include "legoutils.h"
|
||||
#include "legoworld.h"
|
||||
#include "misc.h"
|
||||
|
||||
DECOMP_SIZE_ASSERT(Bike, 0x164);
|
||||
|
||||
// FUNCTION: LEGO1 0x10076670
|
||||
Bike::Bike()
|
||||
{
|
||||
this->m_unk0x13c = 20.0;
|
||||
this->m_unk0x150 = 3.0;
|
||||
this->m_unk0x148 = 1;
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100768f0
|
||||
MxResult Bike::Create(MxDSAction& p_dsAction)
|
||||
{
|
||||
MxResult result = IslePathActor::Create(p_dsAction);
|
||||
m_world = CurrentWorld();
|
||||
|
||||
if (m_world) {
|
||||
m_world->Add(this);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x10076920
|
||||
void Bike::VTable0xe4()
|
||||
{
|
||||
IslePathActor::VTable0xe4();
|
||||
GameState()->SetCurrentArea(LegoGameState::Area::e_unk57);
|
||||
FUN_1003ee00(*g_isleScript, 11);
|
||||
FUN_1003ee00(*g_isleScript, 12);
|
||||
FUN_1003ee00(*g_isleScript, 15);
|
||||
FUN_1003ee00(*g_isleScript, 14);
|
||||
FUN_1003ee00(*g_isleScript, 13);
|
||||
ControlManager()->Unregister(this);
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x100769a0
|
||||
MxU32 Bike::VTable0xcc()
|
||||
{
|
||||
// TODO
|
||||
return 0;
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10076aa0
|
||||
MxU32 Bike::VTable0xd4(LegoControlManagerEvent& p_param)
|
||||
{
|
||||
// TODO
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user