Implement Score (#230)

* Implement Score

* Update mxomni.cpp

Fix case of OFFSET comment.

* Fix DeleteObjects

* Apply changes (see comment)

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
This commit is contained in:
Nathan M Gilbert
2023-10-23 07:16:21 -04:00
committed by GitHub
parent 724c953947
commit 4cc6b9b8ec
38 changed files with 923 additions and 32 deletions

View File

@@ -408,4 +408,18 @@ MxEventManager* EventManager()
MxResult DeleteObject(MxDSAction &p_dsAction)
{
return MxOmni::GetInstance()->DeleteObject(p_dsAction);
}
}
// OFFSET: LEGO1 0x100159e0
void DeleteObjects(MxAtomId *p_id, MxS32 p_first, MxS32 p_last)
{
MxDSAction action;
action.SetAtomId(*p_id);
action.SetUnknown24(-2);
for (MxS32 l_first = p_first, l_last = p_last; l_first <= l_last; l_first++) {
action.SetObjectId(l_first);
DeleteObject(action);
}
}