2023-04-27 22:19:39 -04:00
|
|
|
#ifndef MXDSACTION_H
|
|
|
|
#define MXDSACTION_H
|
|
|
|
|
2023-06-19 20:18:53 -04:00
|
|
|
#include "mxdsobject.h"
|
2023-09-25 16:28:25 -04:00
|
|
|
#include "mxtypes.h"
|
2023-08-06 13:39:22 -04:00
|
|
|
#include "mxvector.h"
|
2023-09-25 16:28:25 -04:00
|
|
|
|
|
|
|
class MxOmni;
|
2023-04-27 22:19:39 -04:00
|
|
|
|
2023-06-29 04:10:08 -04:00
|
|
|
// VTABLE 0x100dc098
|
|
|
|
// SIZE 0x94
|
2023-06-19 20:18:53 -04:00
|
|
|
class MxDSAction : public MxDSObject
|
2023-04-27 22:19:39 -04:00
|
|
|
{
|
|
|
|
public:
|
2023-09-04 18:33:38 -04:00
|
|
|
enum
|
|
|
|
{
|
2023-09-22 17:42:23 -04:00
|
|
|
Flag_Looping = 0x01,
|
2023-09-25 14:58:15 -04:00
|
|
|
Flag_Bit3 = 0x04,
|
2023-10-05 06:31:20 -04:00
|
|
|
Flag_Bit5 = 0x10,
|
2023-09-04 18:33:38 -04:00
|
|
|
Flag_Enabled = 0x20,
|
2023-09-13 03:44:03 -04:00
|
|
|
Flag_Parsed = 0x80,
|
2023-10-04 09:43:34 -04:00
|
|
|
Flag_Bit9 = 0x200,
|
2023-09-04 18:33:38 -04:00
|
|
|
};
|
|
|
|
|
2023-04-27 22:19:39 -04:00
|
|
|
__declspec(dllexport) MxDSAction();
|
2023-06-11 21:03:54 -04:00
|
|
|
__declspec(dllexport) virtual ~MxDSAction();
|
2023-04-27 22:19:39 -04:00
|
|
|
|
2023-08-08 22:38:07 -04:00
|
|
|
void CopyFrom(MxDSAction &p_dsAction);
|
|
|
|
MxDSAction &operator=(MxDSAction &p_dsAction);
|
|
|
|
|
2023-06-29 04:10:08 -04:00
|
|
|
// OFFSET: LEGO1 0x100ad980
|
|
|
|
inline virtual const char *ClassName() const override // vtable+0x0c
|
|
|
|
{
|
|
|
|
// 0x101013f4
|
|
|
|
return "MxDSAction";
|
|
|
|
}
|
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x100ad990
|
|
|
|
inline virtual MxBool IsA(const char *name) const override // vtable+0x10
|
|
|
|
{
|
|
|
|
return !strcmp(name, MxDSAction::ClassName()) || MxDSObject::IsA(name);
|
|
|
|
}
|
2023-08-08 22:38:07 -04:00
|
|
|
|
2023-10-07 14:03:15 -04:00
|
|
|
virtual MxU32 GetSizeOnDisk() override; // vtable+18;
|
|
|
|
virtual void Deserialize(char **p_source, MxS16 p_unk24) override; // vtable+1c;
|
2023-08-08 22:38:07 -04:00
|
|
|
virtual MxLong GetDuration(); // vtable+24;
|
2023-09-25 16:28:25 -04:00
|
|
|
virtual void SetDuration(MxLong p_duration); // vtable+28;
|
2023-08-08 22:38:07 -04:00
|
|
|
virtual MxDSAction *Clone(); // vtable+2c;
|
|
|
|
virtual void MergeFrom(MxDSAction &p_dsAction); // vtable+30;
|
|
|
|
virtual MxBool HasId(MxU32 p_objectId); // vtable+34;
|
|
|
|
virtual void SetSomeTimingField(MxLong p_someTimingField); // vtable+38;
|
|
|
|
virtual MxLong GetSomeTimingField(); // vtable+3c;
|
|
|
|
virtual MxLong GetCurrentTime(); // vtable+40;
|
|
|
|
|
2023-09-13 03:44:03 -04:00
|
|
|
void AppendData(MxU16 p_extraLength, const char *p_extraData);
|
2023-08-08 22:38:07 -04:00
|
|
|
|
2023-10-04 09:43:34 -04:00
|
|
|
inline MxU32 GetFlags() { return m_flags; }
|
|
|
|
inline void SetFlags(MxU32 p_flags) { m_flags = p_flags; }
|
2023-09-13 03:44:03 -04:00
|
|
|
inline char *GetExtraData() { return m_extraData; }
|
|
|
|
inline MxU16 GetExtraLength() const { return m_extraLength; }
|
2023-09-25 14:58:15 -04:00
|
|
|
inline MxLong GetStartTime() const { return m_startTime; }
|
2023-10-04 09:43:34 -04:00
|
|
|
inline MxS32 GetLoopCount() { return m_loopCount; }
|
|
|
|
inline void SetLoopCount(MxS32 p_loopCount) { m_loopCount = p_loopCount; }
|
2023-09-19 17:45:16 -04:00
|
|
|
inline const MxVector3Data &GetLocation() const { return m_location; }
|
2023-09-13 03:44:03 -04:00
|
|
|
inline void SetOmni(MxOmni *p_omni) { m_omni = p_omni; }
|
2023-09-04 18:33:38 -04:00
|
|
|
|
2023-10-04 09:43:34 -04:00
|
|
|
inline MxBool IsLooping() const { return m_flags & Flag_Looping; }
|
|
|
|
inline MxBool IsBit3() const { return m_flags & Flag_Bit3; }
|
2023-09-22 17:42:23 -04:00
|
|
|
|
2023-07-16 02:51:11 -04:00
|
|
|
private:
|
2023-08-08 22:38:07 -04:00
|
|
|
MxU32 m_sizeOnDisk;
|
2023-09-04 18:33:38 -04:00
|
|
|
MxU32 m_flags;
|
2023-09-25 14:58:15 -04:00
|
|
|
MxLong m_startTime;
|
2023-08-16 18:02:26 -04:00
|
|
|
|
|
|
|
protected:
|
2023-08-08 22:38:07 -04:00
|
|
|
MxLong m_duration;
|
2023-08-06 13:39:22 -04:00
|
|
|
MxS32 m_loopCount;
|
2023-08-16 18:02:26 -04:00
|
|
|
|
|
|
|
private:
|
2023-08-06 13:39:22 -04:00
|
|
|
MxVector3Data m_location;
|
|
|
|
MxVector3Data m_direction;
|
|
|
|
MxVector3Data m_up;
|
2023-09-13 03:44:03 -04:00
|
|
|
char *m_extraData;
|
|
|
|
MxU16 m_extraLength;
|
2023-08-06 13:39:22 -04:00
|
|
|
undefined4 m_unk84;
|
|
|
|
undefined4 m_unk88;
|
2023-08-10 13:57:53 -04:00
|
|
|
MxOmni *m_omni; // 0x8c
|
2023-09-25 13:08:19 -04:00
|
|
|
|
|
|
|
protected:
|
2023-08-08 22:38:07 -04:00
|
|
|
MxLong m_someTimingField; // 0x90
|
2023-04-27 22:19:39 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MXDSACTION_H
|