Implement LegoControlManager (#500)

* Push changes

* Update score.cpp

* fix

* Update score.h

* Fixes/matches

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
This commit is contained in:
Misha
2024-01-28 16:09:33 -05:00
committed by GitHub
parent c0acf11f9b
commit 4314d3e297
30 changed files with 291 additions and 105 deletions

View File

@@ -92,7 +92,7 @@ MxLong Score::Notify(MxParam& p_param)
ret = 1;
break;
case c_notificationType17:
ret = FUN_100016d0((MxType17NotificationParam&) p_param);
ret = FUN_100016d0((LegoControlManagerEvent&) p_param);
break;
case c_notificationTransitioned:
DeleteObjects(g_infoscorScript, 7, 9);
@@ -152,12 +152,12 @@ void Score::ReadyWorld()
}
// FUNCTION: LEGO1 0x100016d0
MxLong Score::FUN_100016d0(MxType17NotificationParam& p_param)
MxLong Score::FUN_100016d0(LegoControlManagerEvent& p_param)
{
MxS16 l = p_param.GetUnknown28();
MxS16 l = p_param.GetUnknown0x28();
if (l == 1 || p_param.GetUnknown20() == 4) {
switch (p_param.GetUnknown20()) {
if (l == 1 || p_param.GetClickedObjectId() == 4) {
switch (p_param.GetClickedObjectId()) {
case 1:
m_unk0xf8 = 2;
DeleteScript();