Add MxDSAnim

This commit is contained in:
Christian Semmler 2023-08-15 10:05:30 -04:00
parent 75c1276292
commit e95d5b913e
2 changed files with 34 additions and 1 deletions

View File

@ -1,5 +1,7 @@
#include "mxdsanim.h"
DECOMP_SIZE_ASSERT(MxDSAnim, 0xb8)
// OFFSET: LEGO1 0x100c8ff0
MxDSAnim::MxDSAnim()
{
@ -10,3 +12,30 @@ MxDSAnim::MxDSAnim()
MxDSAnim::~MxDSAnim()
{
}
// OFFSET: LEGO1 0x100c91f0
void MxDSAnim::CopyFrom(MxDSAnim &p_dsAnim)
{
}
// OFFSET: LEGO1 0x100c9200
MxDSAnim &MxDSAnim::operator=(MxDSAnim &p_dsAnim)
{
if (this == &p_dsAnim)
return *this;
MxDSMediaAction::operator=(p_dsAnim);
this->CopyFrom(p_dsAnim);
return *this;
}
// OFFSET: LEGO1 0x100c9230
MxDSAction *MxDSAnim::Clone()
{
MxDSAnim *clone = new MxDSAnim();
if (clone)
*clone = *this;
return clone;
}

View File

@ -9,9 +9,11 @@ class MxDSAnim : public MxDSMediaAction
{
public:
MxDSAnim();
virtual ~MxDSAnim() override;
void CopyFrom(MxDSAnim &p_dsAnim);
MxDSAnim &operator=(MxDSAnim &p_dsAnim);
// OFFSET: LEGO1 0x100c9060
inline virtual const char *ClassName() const override // vtable+0x0c
{
@ -24,6 +26,8 @@ class MxDSAnim : public MxDSMediaAction
{
return !strcmp(name, MxDSAnim::ClassName()) || MxDSMediaAction::IsA(name);
}
virtual MxDSAction *Clone(); // vtable+2c;
};
#endif // MXDSANIM_H