mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-30 03:26:12 -05:00
0bb3ea6a03
* MxList refactor * Reorder LegoPathControllerList::Destroy * MxPtrList custom destructor and more offsets Co-authored-by: Christian Semmler <mail@csemmler.com> * Fix member offset comments in collection classes * Fix template annotations --------- Co-authored-by: Christian Semmler <mail@csemmler.com>
25 lines
419 B
C++
25 lines
419 B
C++
#ifndef MXCOLLECTION_H
|
|
#define MXCOLLECTION_H
|
|
|
|
#include "mxcore.h"
|
|
|
|
template <class T>
|
|
class MxCollection : public MxCore {
|
|
public:
|
|
MxCollection()
|
|
{
|
|
m_count = 0;
|
|
m_customDestructor = Destroy;
|
|
}
|
|
|
|
virtual ~MxCollection() {}
|
|
|
|
static void Destroy(T){};
|
|
virtual MxS8 Compare(T, T) { return 0; }
|
|
|
|
protected:
|
|
MxU32 m_count; // 0x8
|
|
void (*m_customDestructor)(T); // 0xc
|
|
};
|
|
|
|
#endif // MXCOLLECTION_H
|