mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-24 08:41:16 +00:00
Bootstrap MxCompositePresenter
This commit is contained in:
parent
4f5b70013f
commit
973310b7da
@ -37,8 +37,21 @@ void MxCompositePresenter::VTable0x5c()
|
|||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
// OFFSET: LEGO1 0x100b6b40 STUB
|
// OFFSET: LEGO1 0x100b6b40
|
||||||
void MxCompositePresenter::VTable0x60(undefined4 p_unknown)
|
void MxCompositePresenter::VTable0x60(MxPresenter* p_presenter)
|
||||||
{
|
{
|
||||||
// TODO
|
for (MxCompositePresenterList::iterator it = m_list.begin(); it != m_list.end(); it++) {
|
||||||
|
if (*it == p_presenter) {
|
||||||
|
if (++it == m_list.end()) {
|
||||||
|
if (m_compositePresenter)
|
||||||
|
m_compositePresenter->VTable0x60(this);
|
||||||
|
}
|
||||||
|
else if (m_action->IsA("MxDSSerialAction")) {
|
||||||
|
MxPresenter* presenter = *it;
|
||||||
|
if (!presenter->GetCurrentTickleState())
|
||||||
|
presenter->SetTickleState(TickleState_Ready);
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,8 +1,10 @@
|
|||||||
#ifndef MXCOMPOSITEPRESENTER_H
|
#ifndef MXCOMPOSITEPRESENTER_H
|
||||||
#define MXCOMPOSITEPRESENTER_H
|
#define MXCOMPOSITEPRESENTER_H
|
||||||
|
|
||||||
|
#include "compat.h" // STL
|
||||||
#include "mxpresenter.h"
|
#include "mxpresenter.h"
|
||||||
#include "mxunklist.h"
|
|
||||||
|
class MxCompositePresenterList : public list<MxPresenter*> {};
|
||||||
|
|
||||||
// VTABLE 0x100dc618
|
// VTABLE 0x100dc618
|
||||||
// SIZE 0x4c
|
// SIZE 0x4c
|
||||||
@ -26,11 +28,11 @@ class MxCompositePresenter : public MxPresenter {
|
|||||||
|
|
||||||
virtual void VTable0x58();
|
virtual void VTable0x58();
|
||||||
virtual void VTable0x5c();
|
virtual void VTable0x5c();
|
||||||
virtual void VTable0x60(undefined4 p_unknown);
|
virtual void VTable0x60(MxPresenter* p_presenter);
|
||||||
virtual MxBool VTable0x64(undefined4 p_unknown);
|
virtual MxBool VTable0x64(undefined4 p_unknown);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
MxUnkList m_list;
|
MxCompositePresenterList m_list;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // MXCOMPOSITEPRESENTER_H
|
#endif // MXCOMPOSITEPRESENTER_H
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user