mirror of
https://github.com/isledecomp/isle.git
synced 2024-12-02 04:17:25 -05:00
7e9d3bde65
* Name substitution for reccmp asm output * Decomp marker corrections * Fix a few annotations * Fix IslePathActor dtor * Fix audio presenter * Fix LegoEntity::Create * Fix Pizza and related * Fix path part * Add missing annotations * Add missing annotations * Add more missing annotations * Fix MxNotificationParam * More fixes * More fixes * Add missing annotations * Fixes * More annotations * More annotations * More annotations * More annotations * Fixes and annotations * Find imports and thunk functions * Fix more bugs * Add some markers for LEGO1 imports, fix SIZE comment * Add more annotations * Rename annotation * Fix bugs and annotations * Fix bug * Order * Update legoanimpresenter.h * Re-enable print-rec-addr option --------- Co-authored-by: Christian Semmler <mail@csemmler.com>
103 lines
3.6 KiB
C++
103 lines
3.6 KiB
C++
#ifndef MXDSACTION_H
|
|
#define MXDSACTION_H
|
|
|
|
#include "mxdsobject.h"
|
|
#include "mxgeometry/mxgeometry3d.h"
|
|
#include "mxtypes.h"
|
|
|
|
class MxOmni;
|
|
|
|
// VTABLE: LEGO1 0x100dc098
|
|
// SIZE 0x94
|
|
class MxDSAction : public MxDSObject {
|
|
public:
|
|
enum {
|
|
Flag_Looping = 0x01,
|
|
Flag_Bit3 = 0x04,
|
|
Flag_Bit4 = 0x08,
|
|
Flag_Bit5 = 0x10,
|
|
Flag_Enabled = 0x20,
|
|
Flag_Bit7 = 0x40,
|
|
Flag_World = 0x80,
|
|
Flag_Bit9 = 0x100,
|
|
Flag_Bit10 = 0x200,
|
|
Flag_Bit11 = 0x400,
|
|
};
|
|
|
|
__declspec(dllexport) MxDSAction();
|
|
__declspec(dllexport) virtual ~MxDSAction();
|
|
|
|
void CopyFrom(MxDSAction& p_dsAction);
|
|
MxDSAction& operator=(MxDSAction& p_dsAction);
|
|
|
|
// FUNCTION: LEGO1 0x100ad980
|
|
inline virtual const char* ClassName() const override // vtable+0x0c
|
|
{
|
|
// STRING: LEGO1 0x101013f4
|
|
return "MxDSAction";
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x100ad990
|
|
inline virtual MxBool IsA(const char* p_name) const override // vtable+0x10
|
|
{
|
|
return !strcmp(p_name, MxDSAction::ClassName()) || MxDSObject::IsA(p_name);
|
|
}
|
|
|
|
virtual undefined4 VTable0x14() override; // vtable+14;
|
|
virtual MxU32 GetSizeOnDisk() override; // vtable+18;
|
|
virtual void Deserialize(MxU8** p_source, MxS16 p_unk0x24) override; // vtable+1c;
|
|
virtual MxLong GetDuration(); // vtable+24;
|
|
virtual void SetDuration(MxLong p_duration); // vtable+28;
|
|
virtual MxDSAction* Clone(); // vtable+2c;
|
|
virtual void MergeFrom(MxDSAction& p_dsAction); // vtable+30;
|
|
virtual MxBool HasId(MxU32 p_objectId); // vtable+34;
|
|
virtual void SetUnknown90(MxLong p_unk0x90); // vtable+38;
|
|
virtual MxLong GetUnknown90(); // vtable+3c;
|
|
virtual MxLong GetElapsedTime(); // vtable+40;
|
|
|
|
void AppendData(MxU16 p_extraLength, const char* p_extraData);
|
|
|
|
inline MxU32 GetFlags() { return m_flags; }
|
|
inline void SetFlags(MxU32 p_flags) { m_flags = p_flags; }
|
|
inline char* GetExtraData() { return m_extraData; }
|
|
inline MxU16 GetExtraLength() const { return m_extraLength; }
|
|
inline MxLong GetStartTime() const { return m_startTime; }
|
|
inline MxS32 GetLoopCount() { return m_loopCount; }
|
|
inline void SetLoopCount(MxS32 p_loopCount) { m_loopCount = p_loopCount; }
|
|
inline Mx3DPointFloat& GetLocation() { return m_location; }
|
|
inline Mx3DPointFloat& GetDirection() { return m_direction; }
|
|
inline Mx3DPointFloat& GetUp() { return m_up; }
|
|
inline MxCore* GetUnknown84() { return m_unk0x84; }
|
|
inline void SetUnknown84(MxCore* p_unk0x84) { m_unk0x84 = p_unk0x84; }
|
|
inline MxCore* GetOrigin() { return m_origin; }
|
|
inline void SetOrigin(MxCore* p_origin) { m_origin = p_origin; }
|
|
|
|
inline MxBool IsLooping() const { return m_flags & Flag_Looping; }
|
|
inline MxBool IsBit3() const { return m_flags & Flag_Bit3; }
|
|
|
|
inline void CopyFlags(MxU32 p_flags)
|
|
{
|
|
if (p_flags & MxDSAction::Flag_Looping)
|
|
SetFlags(GetFlags() | MxDSAction::Flag_Looping);
|
|
else if (p_flags & MxDSAction::Flag_Bit3)
|
|
SetFlags(GetFlags() | MxDSAction::Flag_Bit3);
|
|
}
|
|
|
|
protected:
|
|
MxU32 m_sizeOnDisk; // 0x2c
|
|
MxU32 m_flags; // 0x30
|
|
MxLong m_startTime; // 0x34
|
|
MxLong m_duration; // 0x38
|
|
MxS32 m_loopCount; // 0x3c
|
|
Mx3DPointFloat m_location; // 0x40
|
|
Mx3DPointFloat m_direction; // 0x54
|
|
Mx3DPointFloat m_up; // 0x68
|
|
char* m_extraData; // 0x7c
|
|
MxU16 m_extraLength; // 0x80
|
|
MxCore* m_unk0x84; // 0x84
|
|
undefined4 m_unk0x88; // 0x88
|
|
MxCore* m_origin; // 0x8c
|
|
MxLong m_unk0x90; // 0x90
|
|
};
|
|
|
|
#endif // MXDSACTION_H
|