Refactor MxPtrList to use p_ownership (#344)

* Refactor MxPtrList to use p_ownership

* Remove class names
This commit is contained in:
Christian Semmler
2023-12-20 20:09:05 -05:00
committed by GitHub
parent db60467ba3
commit afadca953b
24 changed files with 148 additions and 217 deletions

View File

@@ -19,9 +19,13 @@ class LegoWorld;
// SIZE 0x18
class LegoWorldList : public MxPtrList<LegoWorld> {
public:
LegoWorldList() : MxPtrList<LegoWorld>(Destroy) {}
virtual MxS8 Compare(LegoWorld*, LegoWorld*) override; // vtable+0x14
static void Destroy(LegoWorld*);
LegoWorldList(MxBool p_ownership = FALSE) : MxPtrList<LegoWorld>(p_ownership) {}
// FUNCTION: LEGO1 0x100598d0
virtual MxS8 Compare(LegoWorld* p_a, LegoWorld* p_b) override
{
return p_a == p_b ? 0 : p_a < p_b ? -1 : 1;
}; // vtable+0x14
};
// TEMPLATE: LEGO1 0x100598f0
@@ -36,6 +40,9 @@ public:
// TEMPLATE: LEGO1 0x10059960
// MxList<LegoWorld *>::~MxList<LegoWorld *>
// TEMPLATE: LEGO1 0x100599f0
// MxPtrList<LegoWorld>::Destroy
// SYNTHETIC: LEGO1 0x10059ac0
// MxCollection<LegoWorld *>::`scalar deleting destructor'