mirror of
https://github.com/isledecomp/isle.git
synced 2025-12-10 08:03:13 +00:00
Bike::Create, Bike::VTable0xe4 (#576)
* Bike::Create, Bike::VTable0xe4 * Readability --------- Co-authored-by: Christian Semmler <mail@csemmler.com>
This commit is contained in:
@@ -1,5 +1,11 @@
|
|||||||
#include "bike.h"
|
#include "bike.h"
|
||||||
|
|
||||||
|
#include "legocontrolmanager.h"
|
||||||
|
#include "legogamestate.h"
|
||||||
|
#include "legoomni.h"
|
||||||
|
#include "legoutil.h"
|
||||||
|
#include "legoworld.h"
|
||||||
|
|
||||||
DECOMP_SIZE_ASSERT(Bike, 0x164);
|
DECOMP_SIZE_ASSERT(Bike, 0x164);
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x10076670
|
// FUNCTION: LEGO1 0x10076670
|
||||||
@@ -10,17 +16,30 @@ Bike::Bike()
|
|||||||
this->m_unk0x148 = 1;
|
this->m_unk0x148 = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// STUB: LEGO1 0x100768f0
|
// FUNCTION: LEGO1 0x100768f0
|
||||||
MxResult Bike::Create(MxDSAction& p_dsAction)
|
MxResult Bike::Create(MxDSAction& p_dsAction)
|
||||||
{
|
{
|
||||||
// TODO
|
MxResult result = IslePathActor::Create(p_dsAction);
|
||||||
return SUCCESS;
|
m_world = CurrentWorld();
|
||||||
|
|
||||||
|
if (m_world) {
|
||||||
|
m_world->Add(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
// STUB: LEGO1 0x10076920
|
// FUNCTION: LEGO1 0x10076920
|
||||||
void Bike::VTable0xe4()
|
void Bike::VTable0xe4()
|
||||||
{
|
{
|
||||||
// TODO
|
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
|
// STUB: LEGO1 0x100769a0
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ MxResult HistoryBook::Create(MxDSAction& p_dsAction)
|
|||||||
MxLong HistoryBook::Notify(MxParam& p_param)
|
MxLong HistoryBook::Notify(MxParam& p_param)
|
||||||
{
|
{
|
||||||
LegoWorld::Notify(p_param);
|
LegoWorld::Notify(p_param);
|
||||||
|
|
||||||
if (m_worldStarted) {
|
if (m_worldStarted) {
|
||||||
switch (((MxNotificationParam&) p_param).GetNotification()) {
|
switch (((MxNotificationParam&) p_param).GetNotification()) {
|
||||||
case c_notificationButtonUp:
|
case c_notificationButtonUp:
|
||||||
|
|||||||
Reference in New Issue
Block a user