mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 12:31:15 +00:00
* Implement/match LegoPathActor::ParseAction (#946) * Implement/match LegoPathActor::ParseAction * Fix naming * Space * Implement/match Isle::UpdateGlobe (#947) * Implement/match Isle::UpdateGlobe * Change function access * Implement/match Isle::CreateState and related (#948) * Implement/match actor Create functions (#949) * Implement/match Isle::Escape (#950) * Implement/match Isle::FUN_10033350 (#951) * Implement/match Isle::HandleType19Notification (#952) * Implement/match Isle::HandleType19Notification * Fix * Implement/match LegoAnimationManager::FUN_10063b90 (#953) * Implement/match LegoAnimationManager::FUN_100648f0 (#954) * Implement LegoROI::FUN_100a9410 (#955) * WIP * WIP * Remove space * Fix * Implement/match LegoExtraActor::VTable0x6c (#956) * Match LegoUnknown::FUN_1009a1e0 (#957) * Fix extra actor collisions (#958) * Implement/match IslePathActor::FUN_1001b660 (#960) * Refactor MxBitmap (again) (#961) * Remove this * Starting list of beta addrs * Static for height-specific abs, fix StrechBits * MxBitmap refactor * Implement/match LegoPathBoundary::FUN_100586e0 and FUN_10057fe0 (#962) * Implement/match LegoAnimPresenter::FUN_1006b140 (#963) * Implement LegoMeterPresenter::DrawMeter (#964) * Implement LegoMeterPresenter::DrawMeter * New MxRect16 header, offsets and size annotations * Missing mxtypes include * Implement/match LegoAnimationManager::FUN_10063270 (#965) * Implement/match LegoAnimMMPresenter::FUN_1004b840 (#966) * Implement/match LegoAnimationManager::FUN_10062e20 (#967) * Beta match MxPalette (#968) * Beta match MxPalette * Modern compiler fix * Implement/match LegoCameraController::FUN_10012290 and FUN_10012320 (#969) * Implement/match LegoControlManager::FUN_100293c0 (#970) * Implement/match Pizzeria::HandleClick (#971) * Implement/match Lego3DWavePresenter::StartingTickle (#972) * Implement/match Lego3DWavePresenter::StartingTickle * Fix annotation * Add StreamingTickle * Rename * Add static HandlerClassName function (#973) * Add static HandlerClassName function * Use method in PresenterNameDispatch --------- Co-authored-by: disinvite@users.noreply.github.com <disinvite@users.noreply.github.com>
67 lines
1.3 KiB
C++
67 lines
1.3 KiB
C++
#include "lego3dwavepresenter.h"
|
|
|
|
#include "mxcompositepresenter.h"
|
|
#include "mxdsaction.h"
|
|
#include "mxomni.h"
|
|
|
|
DECOMP_SIZE_ASSERT(Lego3DWavePresenter, 0xa0)
|
|
|
|
// FUNCTION: LEGO1 0x1004a7c0
|
|
MxResult Lego3DWavePresenter::AddToManager()
|
|
{
|
|
MxResult result = MxWavePresenter::AddToManager();
|
|
MxWavePresenter::Init();
|
|
|
|
if (MxOmni::IsSound3D()) {
|
|
m_is3d = TRUE;
|
|
}
|
|
|
|
return result;
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x1004a7f0
|
|
void Lego3DWavePresenter::Destroy()
|
|
{
|
|
MxWavePresenter::Destroy();
|
|
MxWavePresenter::Init();
|
|
|
|
if (MxOmni::IsSound3D()) {
|
|
m_is3d = TRUE;
|
|
}
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x1004a810
|
|
// FUNCTION: BETA10 0x1003a3b0
|
|
void Lego3DWavePresenter::StartingTickle()
|
|
{
|
|
if (MxOmni::IsSound3D()) {
|
|
m_is3d = TRUE;
|
|
}
|
|
|
|
MxWavePresenter::StartingTickle();
|
|
|
|
if (m_dsBuffer != NULL) {
|
|
MxU16 extraLength;
|
|
char* buff;
|
|
m_action->GetExtra(extraLength, buff);
|
|
|
|
if (!strcmp(buff, "FROM_PARENT") && m_compositePresenter != NULL) {
|
|
m_compositePresenter->GetAction()->GetExtra(extraLength, buff);
|
|
}
|
|
|
|
if (m_sound.Create(m_dsBuffer, buff, m_volume) != SUCCESS) {
|
|
m_dsBuffer->Release();
|
|
m_dsBuffer = NULL;
|
|
EndAction();
|
|
}
|
|
}
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x1004a8b0
|
|
// FUNCTION: BETA10 0x1003a4cc
|
|
void Lego3DWavePresenter::StreamingTickle()
|
|
{
|
|
MxWavePresenter::StreamingTickle();
|
|
m_sound.FUN_100118e0(m_dsBuffer);
|
|
}
|