mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-24 00:44:21 +00:00
Refactor
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
#include <limits.h>
|
||||
|
||||
DECOMP_SIZE_ASSERT(MxRegion, 0x1c);
|
||||
DECOMP_SIZE_ASSERT(MxRegionTopBottom, 0x0c);
|
||||
DECOMP_SIZE_ASSERT(MxRegionLeftRight, 0x08);
|
||||
|
||||
// OFFSET: LEGO1 0x100c31c0
|
||||
MxRegion::MxRegion()
|
||||
|
||||
@@ -1,12 +1,6 @@
|
||||
#include "mxregionlist.h"
|
||||
#include "mxregion.h"
|
||||
|
||||
// OFFSET: LEGO1 0x100c4e80
|
||||
void MxRegionLeftRightListParent::Destroy(MxRegionLeftRight *p_leftRight)
|
||||
{
|
||||
delete p_leftRight;
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x100c33e0
|
||||
void MxRegionListParent::Destroy(MxRegionTopBottom *p_topBottom)
|
||||
{
|
||||
@@ -16,3 +10,9 @@ void MxRegionListParent::Destroy(MxRegionTopBottom *p_topBottom)
|
||||
delete p_topBottom;
|
||||
}
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x100c4e80
|
||||
void MxRegionLeftRightListParent::Destroy(MxRegionLeftRight *p_leftRight)
|
||||
{
|
||||
delete p_leftRight;
|
||||
}
|
||||
@@ -3,24 +3,8 @@
|
||||
|
||||
#include "mxlist.h"
|
||||
|
||||
struct MxRegionLeftRight;
|
||||
struct MxRegionTopBottom;
|
||||
|
||||
// VTABLE 0x100dcc70
|
||||
// SIZE 0x18
|
||||
class MxRegionLeftRightListParent : public MxList<MxRegionLeftRight*>
|
||||
{
|
||||
public:
|
||||
static void Destroy(MxRegionLeftRight *p_leftRight);
|
||||
|
||||
MxRegionLeftRightListParent() {
|
||||
m_customDestructor = Destroy;
|
||||
}
|
||||
};
|
||||
|
||||
// VTABLE 0x100dcc88
|
||||
// SIZE 0x18
|
||||
class MxRegionLeftRightList : public MxRegionLeftRightListParent {};
|
||||
struct MxRegionLeftRight;
|
||||
|
||||
// VTABLE 0x100dcb40
|
||||
// SIZE 0x18
|
||||
@@ -38,4 +22,20 @@ public:
|
||||
// SIZE 0x18
|
||||
class MxRegionList : public MxRegionListParent {};
|
||||
|
||||
// VTABLE 0x100dcc70
|
||||
// SIZE 0x18
|
||||
class MxRegionLeftRightListParent : public MxList<MxRegionLeftRight*>
|
||||
{
|
||||
public:
|
||||
static void Destroy(MxRegionLeftRight *p_leftRight);
|
||||
|
||||
MxRegionLeftRightListParent() {
|
||||
m_customDestructor = Destroy;
|
||||
}
|
||||
};
|
||||
|
||||
// VTABLE 0x100dcc88
|
||||
// SIZE 0x18
|
||||
class MxRegionLeftRightList : public MxRegionLeftRightListParent {};
|
||||
|
||||
#endif // MXREGIONLIST_H
|
||||
|
||||
Reference in New Issue
Block a user