mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
Implement MxDSSelectAction Clone/operator=/CopyFrom (#154)
This commit is contained in:
committed by
GitHub
parent
e6507b874a
commit
4a674d823b
@@ -15,3 +15,37 @@ MxDSSelectAction::~MxDSSelectAction()
|
||||
if (this->m_unk0xac)
|
||||
delete this->m_unk0xac;
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x100cb950
|
||||
void MxDSSelectAction::CopyFrom(MxDSSelectAction &p_dsSelectAction)
|
||||
{
|
||||
this->m_unk0x9c = p_dsSelectAction.m_unk0x9c;
|
||||
|
||||
this->m_unk0xac->DeleteAll();
|
||||
|
||||
MxStringListCursor cursor(p_dsSelectAction.m_unk0xac);
|
||||
MxString string;
|
||||
while (cursor.Next(string))
|
||||
this->m_unk0xac->OtherAppend(string);
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x100cbd50
|
||||
MxDSSelectAction &MxDSSelectAction::operator=(MxDSSelectAction &p_dsSelectAction)
|
||||
{
|
||||
if (this != &p_dsSelectAction) {
|
||||
MxDSParallelAction::operator=(p_dsSelectAction);
|
||||
this->CopyFrom(p_dsSelectAction);
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x100cbd80
|
||||
MxDSAction *MxDSSelectAction::Clone()
|
||||
{
|
||||
MxDSSelectAction *clone = new MxDSSelectAction();
|
||||
|
||||
if (clone)
|
||||
*clone = *this;
|
||||
|
||||
return clone;
|
||||
}
|
||||
Reference in New Issue
Block a user