2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-13 11:26:10 +00:00

More CGameArea and CActor imps

This commit is contained in:
2016-08-09 17:46:53 -07:00
parent 6972926b66
commit 7740af2b04
5 changed files with 58 additions and 35 deletions

View File

@@ -223,4 +223,15 @@ void CActor::SetSfxPitchBend(s32 val)
CSfxManager::PitchBend(*x8c_sfxHandle.get(), val);
}
void CActor::OnScanStateChanged(EScanState state, CStateManager& mgr)
{
if (state == EScanState::Zero)
SendScriptMsgs(EScriptObjectState::UNKS7, mgr, EScriptObjectMessage::None);
else if (state == EScanState::One)
SendScriptMsgs(EScriptObjectState::UNKS8, mgr, EScriptObjectMessage::None);
else if (state == EScanState::Two)
SendScriptMsgs(EScriptObjectState::ScanDone, mgr, EScriptObjectMessage::None);
}
}