mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-23 16:21:15 +00:00
Add PlayAction
This commit is contained in:
parent
c0ab916955
commit
051137e8e1
@ -105,7 +105,7 @@ class TowTrack : public IslePathActor {
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
void Leave();
|
void Leave();
|
||||||
void PlayAction(IsleScript::Script);
|
void PlayAction(IsleScript::Script p_objectId);
|
||||||
|
|
||||||
undefined4 m_unk0x160; // 0x160
|
undefined4 m_unk0x160; // 0x160
|
||||||
TowTrackMissionState* m_state; // 0x164
|
TowTrackMissionState* m_state; // 0x164
|
||||||
@ -113,7 +113,7 @@ class TowTrack : public IslePathActor {
|
|||||||
MxS16 m_actorId; // 0x16a
|
MxS16 m_actorId; // 0x16a
|
||||||
MxS16 m_unk0x16c; // 0x16c
|
MxS16 m_unk0x16c; // 0x16c
|
||||||
MxS16 m_unk0x16e; // 0x16e
|
MxS16 m_unk0x16e; // 0x16e
|
||||||
MxS32 m_unk0x170; // 0x170
|
IsleScript::Script m_lastAction; // 0x170
|
||||||
MxS32 m_unk0x174; // 0x174
|
MxS32 m_unk0x174; // 0x174
|
||||||
MxFloat m_fuel; // 0x178
|
MxFloat m_fuel; // 0x178
|
||||||
MxFloat m_time; // 0x17c
|
MxFloat m_time; // 0x17c
|
||||||
|
|||||||
@ -10,6 +10,7 @@
|
|||||||
#include "legovariables.h"
|
#include "legovariables.h"
|
||||||
#include "legoworld.h"
|
#include "legoworld.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
|
#include "mxbackgroundaudiomanager.h"
|
||||||
#include "mxmisc.h"
|
#include "mxmisc.h"
|
||||||
#include "mxsoundpresenter.h"
|
#include "mxsoundpresenter.h"
|
||||||
#include "mxtimer.h"
|
#include "mxtimer.h"
|
||||||
@ -26,7 +27,7 @@ TowTrack::TowTrack()
|
|||||||
m_actorId = -1;
|
m_actorId = -1;
|
||||||
m_state = NULL;
|
m_state = NULL;
|
||||||
m_unk0x16c = 0;
|
m_unk0x16c = 0;
|
||||||
m_unk0x170 = -1;
|
m_lastAction = IsleScript::c_noneIsle;
|
||||||
m_unk0x16e = 0;
|
m_unk0x16e = 0;
|
||||||
m_unk0x174 = -1;
|
m_unk0x174 = -1;
|
||||||
m_maxLinearVel = 40.0;
|
m_maxLinearVel = 40.0;
|
||||||
@ -190,7 +191,7 @@ MxLong TowTrack::HandleClick()
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
SpawnPlayer(LegoGameState::e_unk28, TRUE, 0);
|
SpawnPlayer(LegoGameState::e_unk28, TRUE, 0);
|
||||||
m_unk0x170 = -1;
|
m_lastAction = IsleScript::c_noneIsle;
|
||||||
m_unk0x174 = -1;
|
m_unk0x174 = -1;
|
||||||
m_state->m_unk0x0c = Timer()->GetTime();
|
m_state->m_unk0x0c = Timer()->GetTime();
|
||||||
m_state->m_unk0x10 = FALSE;
|
m_state->m_unk0x10 = FALSE;
|
||||||
@ -302,10 +303,15 @@ void TowTrack::FUN_1004dbe0()
|
|||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
// STUB: LEGO1 0x1004dcf0
|
// FUNCTION: LEGO1 0x1004dcf0
|
||||||
void TowTrack::PlayAction(IsleScript::Script)
|
void TowTrack::PlayAction(IsleScript::Script p_objectId)
|
||||||
{
|
{
|
||||||
// TODO
|
if (p_objectId != -1) {
|
||||||
|
InvokeAction(Extra::e_start, *g_isleScript, p_objectId, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
m_lastAction = p_objectId;
|
||||||
|
BackgroundAudioManager()->LowerVolume();
|
||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x1004dd30
|
// FUNCTION: LEGO1 0x1004dd30
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user