mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-28 18:51:16 +00:00
Add LegoEntityList
This commit is contained in:
parent
5b7624c32a
commit
9b76ba8944
89
LEGO1/lego/legoomni/include/legoentitylist.h
Normal file
89
LEGO1/lego/legoomni/include/legoentitylist.h
Normal file
@ -0,0 +1,89 @@
|
||||
#ifndef LEGOENTITYLIST_H
|
||||
#define LEGOENTITYLIST_H
|
||||
|
||||
#include "mxlist.h"
|
||||
#include "mxtypes.h"
|
||||
|
||||
class LegoEntity;
|
||||
|
||||
// VTABLE: LEGO1 0x100d6410
|
||||
// class MxCollection<LegoEntity *>
|
||||
|
||||
// VTABLE: LEGO1 0x100d6428
|
||||
// class MxList<LegoEntity *>
|
||||
|
||||
// VTABLE: LEGO1 0x100d6440
|
||||
// class MxPtrList<LegoEntity>
|
||||
|
||||
// VTABLE: LEGO1 0x100d6458
|
||||
// SIZE 0x18
|
||||
class LegoEntityList : public MxPtrList<LegoEntity> {
|
||||
public:
|
||||
LegoEntityList(MxBool p_ownership = FALSE) : MxPtrList<LegoEntity>(p_ownership) {}
|
||||
|
||||
// FUNCTION: LEGO1 0x1001e2d0
|
||||
virtual MxS8 Compare(LegoEntity* p_a, LegoEntity* p_b) override
|
||||
{
|
||||
return p_a == p_b ? 0 : p_a < p_b ? -1 : 1;
|
||||
}; // vtable+0x14
|
||||
};
|
||||
|
||||
// VTABLE: LEGO1 0x100d64e8
|
||||
// class MxListCursor<LegoEntity *>
|
||||
|
||||
// VTABLE: LEGO1 0x100d64b8
|
||||
// class MxPtrListCursor<LegoEntity>
|
||||
|
||||
// VTABLE: LEGO1 0x100d64d0
|
||||
// SIZE 0x10
|
||||
class LegoEntityListCursor : public MxPtrListCursor<LegoEntity> {
|
||||
public:
|
||||
LegoEntityListCursor(LegoEntityList* p_list) : MxPtrListCursor<LegoEntity>(p_list){};
|
||||
};
|
||||
|
||||
// TEMPLATE: LEGO1 0x1001e2f0
|
||||
// MxCollection<LegoEntity *>::Compare
|
||||
|
||||
// XTEMPLATE: LEGO1 0x1001e300
|
||||
// MxCollection<LegoEntity *>::~MxCollection<LegoEntity *>
|
||||
|
||||
// TEMPLATE: LEGO1 0x1001e350
|
||||
// MxCollection<LegoEntity *>::Destroy
|
||||
|
||||
// TEMPLATE: LEGO1 0x1001e360
|
||||
// MxList<LegoEntity *>::~MxList<LegoEntity *>
|
||||
|
||||
// TEMPLATE: LEGO1 0x1001e3f0
|
||||
// MxPtrList<LegoEntity>::Destroy
|
||||
|
||||
// SYNTHETIC: LEGO1 0x1001e400
|
||||
// LegoEntityList::`scalar deleting destructor'
|
||||
|
||||
// SYNTHETIC: LEGO1 0x1001e4c0
|
||||
// MxCollection<LegoEntity *>::`scalar deleting destructor'
|
||||
|
||||
// SYNTHETIC: LEGO1 0x1001e530
|
||||
// MxList<LegoEntity *>::`scalar deleting destructor'
|
||||
|
||||
// SYNTHETIC: LEGO1 0x1001e5e0
|
||||
// MxPtrList<LegoEntity>::`scalar deleting destructor'
|
||||
|
||||
// SYNTHETIC: LEGO1 0x1001f110
|
||||
// LegoEntityListCursor::`scalar deleting destructor'
|
||||
|
||||
// FUNCTION: LEGO1 0x1001f180
|
||||
// MxPtrListCursor<LegoEntity>::~MxPtrListCursor<LegoEntity>
|
||||
|
||||
// SYNTHETIC: LEGO1 0x1001f1d0
|
||||
// MxListCursor<LegoEntity *>::`scalar deleting destructor'
|
||||
|
||||
// SYNTHETIC: LEGO1 0x1001f240
|
||||
// MxPtrListCursor<LegoEntity>::`scalar deleting destructor'
|
||||
|
||||
// FUNCTION: LEGO1 0x1001f2b0
|
||||
// MxListCursor<LegoEntity *>::~MxListCursor<LegoEntity *>
|
||||
|
||||
// FUNCTION: LEGO1 0x1001edc6
|
||||
// LegoEntityListCursor::~LegoEntityListCursor
|
||||
|
||||
#endif // LEGOENTITYLIST_H
|
||||
@ -3,6 +3,7 @@
|
||||
|
||||
#include "legocameracontroller.h"
|
||||
#include "legoentity.h"
|
||||
#include "legoentitylist.h"
|
||||
#include "legopathcontrollerlist.h"
|
||||
#include "mxpresenter.h"
|
||||
#include "mxpresenterlist.h"
|
||||
@ -59,7 +60,8 @@ class LegoWorld : public LegoEntity {
|
||||
LegoPathControllerList m_list0x68; // 0x68
|
||||
MxPresenterList m_list0x80; // 0x80
|
||||
LegoCameraController* m_cameraController; // 0x98
|
||||
undefined m_unk0x9c[0x1c]; // 0x9c
|
||||
LegoEntityList* m_entityList; // 0x9c
|
||||
undefined m_unk0xa0[0x18]; // 0xa0
|
||||
MxPresenterList m_list0xb8; // 0xb8
|
||||
undefined m_unk0xd0[0x1c]; // 0xd0
|
||||
undefined4 m_unk0xec; // 0xec
|
||||
|
||||
@ -45,7 +45,7 @@ MxResult LegoWorld::Create(MxDSAction& p_dsAction)
|
||||
{
|
||||
MxEntity::Create(p_dsAction);
|
||||
|
||||
// TODO: Intitialize lists
|
||||
m_entityList = new LegoEntityList(TRUE);
|
||||
|
||||
if (VTable0x54()) {
|
||||
if (p_dsAction.GetFlags() & MxDSAction::Flag_Enabled) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user