mirror of
https://github.com/isledecomp/isle.git
synced 2026-05-04 05:53:57 +00:00
Add neccessary MxDSMultiAction functions
This commit is contained in:
parent
5da487f6fa
commit
fb2fb90f91
@ -17,6 +17,28 @@ MxDSMultiAction::~MxDSMultiAction()
|
|||||||
delete this->m_actions;
|
delete this->m_actions;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// OFFSET: LEGO1 0x100ca0d0
|
||||||
|
void MxDSMultiAction::CopyFrom(MxDSMultiAction &p_dsMultiAction)
|
||||||
|
{
|
||||||
|
this->m_actions->DeleteAll();
|
||||||
|
|
||||||
|
MxDSActionListCursor cursor(p_dsMultiAction.m_actions);
|
||||||
|
MxDSAction *action;
|
||||||
|
while (cursor.Next(action))
|
||||||
|
this->m_actions->Append(action->Clone());
|
||||||
|
}
|
||||||
|
|
||||||
|
// OFFSET: LEGO1 0x100ca260
|
||||||
|
MxDSMultiAction &MxDSMultiAction::operator=(MxDSMultiAction &p_dsMultiAction)
|
||||||
|
{
|
||||||
|
if (this == &p_dsMultiAction)
|
||||||
|
return *this;
|
||||||
|
|
||||||
|
MxDSAction::operator=(p_dsMultiAction);
|
||||||
|
this->CopyFrom(p_dsMultiAction);
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
// OFFSET: LEGO1 0x100ca5e0
|
// OFFSET: LEGO1 0x100ca5e0
|
||||||
undefined4 MxDSMultiAction::unk14()
|
undefined4 MxDSMultiAction::unk14()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -12,6 +12,9 @@ class MxDSMultiAction : public MxDSAction
|
|||||||
MxDSMultiAction();
|
MxDSMultiAction();
|
||||||
virtual ~MxDSMultiAction() override;
|
virtual ~MxDSMultiAction() override;
|
||||||
|
|
||||||
|
void CopyFrom(MxDSMultiAction &p_dsMultiAction);
|
||||||
|
MxDSMultiAction &operator=(MxDSMultiAction &p_dsMultiAction);
|
||||||
|
|
||||||
// OFFSET: LEGO1 0x100c9f50
|
// OFFSET: LEGO1 0x100c9f50
|
||||||
inline virtual const char *ClassName() const override // vtable+0x0c
|
inline virtual const char *ClassName() const override // vtable+0x0c
|
||||||
{
|
{
|
||||||
|
|||||||
@ -59,6 +59,7 @@ class MxList : protected MxListParent<T>
|
|||||||
virtual ~MxList();
|
virtual ~MxList();
|
||||||
|
|
||||||
void Append(T*);
|
void Append(T*);
|
||||||
|
void DeleteAll();
|
||||||
MxU32 GetCount() { return m_count; }
|
MxU32 GetCount() { return m_count; }
|
||||||
void SetDestroy(void (*p_customDestructor)(T *)) { this->m_customDestructor = p_customDestructor; }
|
void SetDestroy(void (*p_customDestructor)(T *)) { this->m_customDestructor = p_customDestructor; }
|
||||||
|
|
||||||
@ -115,6 +116,12 @@ class MxListCursorChildChild : public MxListCursorChild<T>
|
|||||||
template <class T>
|
template <class T>
|
||||||
// OFFSET: LEGO1 0x1001ce20
|
// OFFSET: LEGO1 0x1001ce20
|
||||||
MxList<T>::~MxList()
|
MxList<T>::~MxList()
|
||||||
|
{
|
||||||
|
DeleteAll();
|
||||||
|
}
|
||||||
|
|
||||||
|
template <class T>
|
||||||
|
inline void MxList<T>::DeleteAll()
|
||||||
{
|
{
|
||||||
for (MxListEntry<T> *t = m_first;;) {
|
for (MxListEntry<T> *t = m_first;;) {
|
||||||
if (!t)
|
if (!t)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user