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>
72 lines
1.6 KiB
C++
72 lines
1.6 KiB
C++
#ifndef __LEGOUNKNOWN100DB7F4_H
|
|
#define __LEGOUNKNOWN100DB7F4_H
|
|
|
|
#include "legoedge.h"
|
|
#include "legowegedge.h"
|
|
#include "mxgeometry/mxgeometry3d.h"
|
|
|
|
// VTABLE: LEGO1 0x100db7f4
|
|
// SIZE 0x40
|
|
struct LegoUnknown100db7f4 : public LegoEdge {
|
|
public:
|
|
enum {
|
|
c_bit1 = 0x01,
|
|
c_bit2 = 0x02,
|
|
c_bit3 = 0x04,
|
|
c_bit4 = 0x08
|
|
};
|
|
|
|
LegoUnknown100db7f4();
|
|
|
|
// FUNCTION: LEGO1 0x1002ddc0
|
|
// FUNCTION: BETA10 0x100372a0
|
|
LegoResult FUN_1002ddc0(LegoWEEdge& p_f, Vector3& p_point)
|
|
{
|
|
if (p_f.IsEqual(*m_faceA)) {
|
|
p_point[0] = -m_unk0x28[0];
|
|
p_point[1] = -m_unk0x28[1];
|
|
p_point[2] = -m_unk0x28[2];
|
|
}
|
|
else {
|
|
p_point = m_unk0x28;
|
|
}
|
|
|
|
return SUCCESS;
|
|
}
|
|
|
|
// FUNCTION: BETA10 0x1004a830
|
|
LegoU32 Unknown(LegoWEGEdge& p_face, LegoU8 p_mask)
|
|
{
|
|
return (p_face.IsEqual(*m_faceB) && (m_flags & c_bit1) && (p_face.GetMask0x03() & p_mask) == p_mask) ||
|
|
(p_face.IsEqual(*m_faceA) && (m_flags & c_bit2) && (p_face.GetMask0x03() & p_mask) == p_mask);
|
|
}
|
|
|
|
// FUNCTION: BETA10 0x100b53b0
|
|
LegoU32 Unknown2(LegoWEGEdge& p_face)
|
|
{
|
|
return (p_face.IsEqual(*m_faceA) && (m_flags & c_bit1)) || (p_face.IsEqual(*m_faceB) && (m_flags & c_bit2));
|
|
}
|
|
|
|
// FUNCTION: BETA10 0x1001cbe0
|
|
LegoWEEdge* OtherFace(LegoWEEdge* p_other)
|
|
{
|
|
if (m_faceA == p_other) {
|
|
return m_faceB;
|
|
}
|
|
else {
|
|
return m_faceA;
|
|
}
|
|
}
|
|
|
|
LegoU32 GetMask0x03() { return m_flags & (c_bit1 | c_bit2); }
|
|
|
|
// SYNTHETIC: LEGO1 0x1009a6c0
|
|
// LegoUnknown100db7f4::`scalar deleting destructor'
|
|
|
|
LegoU16 m_flags; // 0x24
|
|
Mx3DPointFloat m_unk0x28; // 0x28
|
|
float m_unk0x3c; // 0x3c
|
|
};
|
|
|
|
#endif // __LEGOUNKNOWN100DB7F4_H
|