implement LegoOmni::FindByEntityIdOrAtomId (#435)

* push changes

* Match and add annotations

* Fix annotations

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
This commit is contained in:
Misha
2024-01-13 20:34:54 -05:00
committed by GitHub
parent 8b34b38ac0
commit 7f7e6e37dd
8 changed files with 49 additions and 2 deletions

View File

@@ -35,6 +35,7 @@ private:
// class MxListCursor<MxDSAction *>
// VTABLE: LEGO1 0x100d7e50
// SIZE 0x10
class MxDSActionListCursor : public MxListCursor<MxDSAction*> {
public:
MxDSActionListCursor(MxDSActionList* p_list) : MxListCursor<MxDSAction*>(p_list){};

View File

@@ -45,6 +45,9 @@ public:
return SUCCESS;
}
inline MxS32 GetEntityId() { return m_mxEntityId; }
inline MxAtomId& GetAtom() { return m_atom; }
protected:
MxS32 m_mxEntityId; // 0x8
MxAtomId m_atom; // 0xc

View File

@@ -69,6 +69,7 @@ protected:
MxListEntry<T>* InsertEntry(T, MxListEntry<T>*, MxListEntry<T>*);
};
// SIZE 0x18
template <class T>
class MxPtrList : public MxList<T*> {
public:
@@ -82,6 +83,7 @@ public:
}
};
// SIZE 0x10
template <class T>
class MxListCursor : public MxCore {
public:
@@ -128,6 +130,7 @@ private:
MxListEntry<T>* m_match; // 0x0c
};
// SIZE 0x10
template <class T>
class MxPtrListCursor : public MxListCursor<T*> {
public:

View File

@@ -29,6 +29,7 @@ public:
};
// VTABLE: LEGO1 0x100dc510
// SIZE 0x10
class MxStreamChunkListCursor : public MxListCursor<MxStreamChunk*> {
public:
MxStreamChunkListCursor(MxStreamChunkList* p_list) : MxListCursor<MxStreamChunk*>(p_list){};

View File

@@ -9,6 +9,7 @@
class MxStringList : public MxList<MxString> {};
// VTABLE: LEGO1 0x100dd058
// SIZE 0x10
class MxStringListCursor : public MxListCursor<MxString> {
public:
MxStringListCursor(MxStringList* p_list) : MxListCursor<MxString>(p_list){};

View File

@@ -5,6 +5,8 @@
#include "mxvariabletable.h"
DECOMP_SIZE_ASSERT(MxDSSelectAction, 0xb0)
DECOMP_SIZE_ASSERT(MxStringList, 0x18)
DECOMP_SIZE_ASSERT(MxStringListCursor, 0x10)
DECOMP_SIZE_ASSERT(MxListEntry<MxString>, 0x18)
// FUNCTION: LEGO1 0x100cb2b0