Implement/match remaining MxDSMultiAction functions (#136)

* Implement/match MxDSMultiAction::Deserialize

* Implement remaining functions of MxDSMultiAction

* Remove space
This commit is contained in:
Christian Semmler
2023-09-25 13:08:19 -04:00
committed by GitHub
parent 6dd94d3626
commit 548f337cad
4 changed files with 126 additions and 0 deletions

View File

@@ -59,6 +59,7 @@ public:
virtual ~MxList();
void Append(T*);
void DeleteAll();
MxU32 GetCount() { return m_count; }
void SetDestroy(void (*p_customDestructor)(T *)) { this->m_customDestructor = p_customDestructor; }
@@ -115,6 +116,12 @@ public:
template <class T>
// OFFSET: LEGO1 0x1001ce20
MxList<T>::~MxList()
{
DeleteAll();
}
template <class T>
inline void MxList<T>::DeleteAll()
{
for (MxListEntry<T> *t = m_first;;) {
if (!t)