mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
Order symbols in LegoWorld
(#1321)
* Partially order `LegoWorld` symbols * Further order `LegoWorld`
This commit is contained in:

committed by
GitHub

parent
58d3bd39e1
commit
ee2bcb4d53
@@ -12,13 +12,14 @@ public:
|
||||
SetDestroy(Destroy);
|
||||
}
|
||||
|
||||
virtual MxS8 Compare(T, T) { return 0; } // vtable+0x14
|
||||
|
||||
~MxCollection() override {}
|
||||
|
||||
static void Destroy(T) {}
|
||||
|
||||
void SetDestroy(void (*p_customDestructor)(T)) { this->m_customDestructor = p_customDestructor; }
|
||||
|
||||
~MxCollection() override {}
|
||||
virtual MxS8 Compare(T, T) { return 0; }
|
||||
|
||||
protected:
|
||||
MxU32 m_count; // 0x08
|
||||
void (*m_customDestructor)(T); // 0x0c
|
||||
|
@@ -46,8 +46,7 @@ template <class T>
|
||||
class MxList : protected MxCollection<T> {
|
||||
public:
|
||||
MxList() { m_first = m_last = NULL; }
|
||||
|
||||
~MxList() override;
|
||||
~MxList() override { DeleteAll(); }
|
||||
|
||||
void Append(T p_obj) { InsertEntry(p_obj, this->m_last, NULL); }
|
||||
void Prepend(T p_obj) { InsertEntry(p_obj, NULL, this->m_first); }
|
||||
@@ -127,12 +126,6 @@ public:
|
||||
MxPtrListCursor(MxPtrList<T>* p_list) : MxListCursor<T*>(p_list) {}
|
||||
};
|
||||
|
||||
template <class T>
|
||||
MxList<T>::~MxList()
|
||||
{
|
||||
DeleteAll();
|
||||
}
|
||||
|
||||
// Delete entries and values
|
||||
template <class T>
|
||||
inline void MxList<T>::DeleteAll()
|
||||
|
Reference in New Issue
Block a user