mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-24 08:54:15 +00:00
Reorganize sources and files (#414)
* Reorganize sources * Refactor * Remove relative paths * Renames * Fix gitignore * Remove stuff * Try fixing format script * Fix format * Fix format * Fix naming script * Test format * Fix format
This commit is contained in:
committed by
GitHub
parent
6a85e62406
commit
c47206617d
27
LEGO1/omni/include/mxcollection.h
Normal file
27
LEGO1/omni/include/mxcollection.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#ifndef MXCOLLECTION_H
|
||||
#define MXCOLLECTION_H
|
||||
|
||||
#include "mxcore.h"
|
||||
|
||||
template <class T>
|
||||
class MxCollection : public MxCore {
|
||||
public:
|
||||
MxCollection()
|
||||
{
|
||||
m_count = 0;
|
||||
SetDestroy(Destroy);
|
||||
}
|
||||
|
||||
static void Destroy(T){};
|
||||
|
||||
void SetDestroy(void (*p_customDestructor)(T)) { this->m_customDestructor = p_customDestructor; }
|
||||
|
||||
virtual ~MxCollection() {}
|
||||
virtual MxS8 Compare(T, T) { return 0; }
|
||||
|
||||
protected:
|
||||
MxU32 m_count; // 0x8
|
||||
void (*m_customDestructor)(T); // 0xc
|
||||
};
|
||||
|
||||
#endif // MXCOLLECTION_H
|
||||
Reference in New Issue
Block a user