mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 12:31:15 +00:00
* Implement/match LegoAnimationManager::FUN_10064b50 (#926) * Implement/match LegoAnimationManager::FUN_10063d10 (#927) * Implement/match LegoAnimationManager::FUN_10064380 (#928) * Implement/match LegoAnimationManager::FUN_10064380 * Fix naming * Revert * Implement/matche LegoAnimationManager::FUN_10064740 and FUN_10064670 (#929) * Implement/match FUN_1003ef00 and related (#931) * Implement/match LegoAnimationManager::FUN_10064120 (#932) * Implement/match LegoAnimationManager::FUN_10064120 * Fix naming * Fix parentheses * Implement LegoAnimationManager::FUN_10064010 (#933) * Implement/match ViewManager::FUN_100a6150 (#934) * Implement/match PlayCamAnim and CameraTriggerFire (#935) * Implement/match PlayCamAnim and CameraTriggerFire * Fix type * Name var * Implement/match LegoAnimationManager::FUN_10063fb0 (#936) * basic name improvements (#930) * basic name improvements * clang-format --------- Co-authored-by: Christian Semmler <mail@csemmler.com> * Implement/match LegoPathBoundary::Intersect (#937) * Implement LegoPathActor::VTable0x68 (#938) * Implement LegoPathActor::VTable0x68 * Fix naming * Implement/match LegoPathBoundary::FUN_100575b0 (#939) * Implement LegoUnknown::FUN_1009a1e0 (#940) * Implement/match LegoPathController::FUN_1004a240 (#941) * Implement LegoPathActor::VTable0x9c (#942) * Implement LegoPathActor::VTable0x9c * Add annotation * Implement/match LegoPathActor::SwitchBoundary (#943) * Implement/match LegoPathActor::SwitchBoundary * Rename var * Implement/match LegoPathStruct (#944) * Implement/match LegoPathStruct * Rename some nums * Consistent naming * Naming * relax regex * Name some functions * Improve naming * Rename * Implement/match LegoPathActor::VTable0xa4 and VTable0xa8 (#945) * Implement/match LegoPathActor::VTable0xa4 * Implement/match LegoPathActor::VTable0xa8 * Name enum constants --------- Co-authored-by: Cameron <25990062+crtdll@users.noreply.github.com>
81 lines
1.7 KiB
C++
81 lines
1.7 KiB
C++
#ifndef LEGOPATHSTRUCT_H
|
|
#define LEGOPATHSTRUCT_H
|
|
|
|
#include "decomp.h"
|
|
#include "mxatom.h"
|
|
#include "mxtypes.h"
|
|
|
|
class LegoPathActor;
|
|
class LegoWorld;
|
|
|
|
// VTABLE: LEGO1 0x100d7d9c
|
|
// SIZE 0x0c
|
|
struct LegoPathStructBase {
|
|
public:
|
|
enum {
|
|
c_bit1 = 0x01 << 24,
|
|
c_bit2 = 0x02 << 24,
|
|
c_bit3 = 0x04 << 24,
|
|
c_bit4 = 0x08 << 24,
|
|
c_bit5 = 0x10 << 24,
|
|
c_bit6 = 0x20 << 24,
|
|
c_bit7 = 0x40 << 24
|
|
};
|
|
|
|
LegoPathStructBase() : m_name(NULL), m_flags(0) {}
|
|
|
|
// FUNCTION: LEGO1 0x10047420
|
|
virtual ~LegoPathStructBase()
|
|
{
|
|
if (m_name != NULL) {
|
|
delete[] m_name;
|
|
}
|
|
}
|
|
|
|
char* m_name; // 0x04
|
|
MxU32 m_flags; // 0x08
|
|
};
|
|
|
|
// VTABLE: LEGO1 0x100d7da0
|
|
// SIZE 0x14
|
|
class LegoPathStruct : public LegoPathStructBase {
|
|
public:
|
|
enum Trigger {
|
|
c_camAnim = 'C',
|
|
c_d = 'D',
|
|
c_e = 'E',
|
|
c_g = 'G',
|
|
c_h = 'H',
|
|
c_music = 'M',
|
|
c_s = 'S',
|
|
c_w = 'W'
|
|
};
|
|
|
|
// FUNCTION: LEGO1 0x100473a0
|
|
LegoPathStruct() : m_world(NULL) {}
|
|
|
|
// FUNCTION: LEGO1 0x10047470
|
|
~LegoPathStruct() override {}
|
|
|
|
virtual void HandleTrigger(LegoPathActor* p_actor, MxBool p_direction, MxU32 p_data); // vtable+0x04
|
|
|
|
inline void SetWorld(LegoWorld* p_world) { m_world = p_world; }
|
|
inline void SetAtomId(const MxAtomId& p_atomId) { m_atomId = p_atomId; }
|
|
|
|
private:
|
|
MxBool HandleTrigger(LegoPathActor* p_actor, MxBool p_direction, MxU32 p_data, MxBool p_bool);
|
|
void FUN_1001bc40(const char* p_name, MxU32 p_data, MxBool p_bool);
|
|
void PlayMusic(MxBool p_direction, MxU32 p_data);
|
|
|
|
LegoWorld* m_world; // 0x0c
|
|
MxAtomId m_atomId; // 0x10
|
|
};
|
|
|
|
// SYNTHETIC: LEGO1 0x10047440
|
|
// LegoPathStructBase::`scalar deleting destructor'
|
|
|
|
// SYNTHETIC: LEGO1 0x10047890
|
|
// LegoPathStruct::`vector deleting destructor'
|
|
|
|
#endif // LEGOPATHSTRUCT_H
|