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

@@ -3,6 +3,16 @@
#include "legostate.h"
struct PizzaMissionStateEntry
{
public:
undefined2 m_unk0;
MxU8 m_id;
undefined m_unk3[0x15];
MxU16 m_color;
undefined m_unk18[6];
};
// VTABLE 0x100d7408
class PizzaMissionState : public LegoState
{
@@ -20,6 +30,15 @@ public:
return !strcmp(name, PizzaMissionState::ClassName()) || LegoState::IsA(name);
}
inline MxU16 GetColor(MxU8 id) { return GetState(id)->m_color; }
private:
PizzaMissionStateEntry *GetState(MxU8 id);
protected:
undefined4 m_unk8;
undefined4 m_unkc;
PizzaMissionStateEntry m_state[5];
};
#endif // PIZZAMISSIONSTATE_H