mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-22 07:54:23 +00:00
Clear unknowns in LegoCarBuild
(#1691)
This commit is contained in:
@@ -75,18 +75,28 @@ class LegoCarBuild : public LegoWorld {
|
||||
public:
|
||||
// SIZE 0x1c
|
||||
struct LookupTableActions {
|
||||
undefined4 m_unk0x00; // 0x00
|
||||
undefined4 m_unk0x04; // 0x04
|
||||
undefined4 m_unk0x08; // 0x08
|
||||
undefined4 m_unk0x0c; // 0x0c
|
||||
undefined4 m_unk0x10; // 0x10
|
||||
undefined4 m_unk0x14; // 0x14
|
||||
undefined4 m_unk0x18; // 0x18
|
||||
MxU32 m_introduction0; // 0x00
|
||||
MxU32 m_leaveUnfinished; // 0x04
|
||||
MxU32 m_completed; // 0x08
|
||||
MxU32 m_introduction1; // 0x0c
|
||||
MxU32 m_introduction2; // 0x10
|
||||
MxU32 m_introduction3; // 0x14
|
||||
MxU32 m_shortExplanation; // 0x18
|
||||
};
|
||||
|
||||
enum Unknown0xf8 {
|
||||
c_unknownminusone = -1,
|
||||
c_unknown8 = 8
|
||||
enum LookupTableActionType {
|
||||
e_introduction0 = 0,
|
||||
e_introduction1 = 1,
|
||||
e_introduction2 = 2,
|
||||
e_introduction3 = 3,
|
||||
e_leaveUnfinished = 4,
|
||||
e_completed = 5,
|
||||
e_shortExplanation = 6,
|
||||
};
|
||||
|
||||
enum ResetPlacedSelectedPart {
|
||||
c_disabled = -1,
|
||||
c_enabled = 8
|
||||
};
|
||||
|
||||
LegoCarBuild();
|
||||
@@ -113,15 +123,15 @@ public:
|
||||
return !strcmp(p_name, LegoCarBuild::ClassName()) || LegoWorld::IsA(p_name);
|
||||
}
|
||||
|
||||
MxResult Create(MxDSAction& p_dsAction) override; // vtable+0x18
|
||||
void ReadyWorld() override; // vtable+0x50
|
||||
MxBool Escape() override; // vtable+0x64
|
||||
void Enable(MxBool p_enable) override; // vtable+0x68
|
||||
virtual void VTable0x6c(); // vtable+0x6c
|
||||
virtual void VTable0x70(); // vtable+0x70
|
||||
virtual void VTable0x74(MxFloat p_param1[2], MxFloat p_param2[3]); // vtable+0x74
|
||||
virtual void VTable0x78(MxFloat p_param1[2], MxFloat p_param2[3]); // vtable+0x78
|
||||
virtual void VTable0x7c(MxFloat p_param1[2], MxFloat p_param2[3]); // vtable+0x7c
|
||||
MxResult Create(MxDSAction& p_dsAction) override; // vtable+0x18
|
||||
void ReadyWorld() override; // vtable+0x50
|
||||
MxBool Escape() override; // vtable+0x64
|
||||
void Enable(MxBool p_enable) override; // vtable+0x68
|
||||
virtual void InitializeDisplayingTransform(); // vtable+0x6c
|
||||
virtual void CalculateStartAndTargetScreenPositions(); // vtable+0x70
|
||||
virtual void CalculateDragPositionAbove(MxFloat p_coordinates[2], MxFloat p_position[3]); // vtable+0x74
|
||||
virtual void CalculateDragPositionBetween(MxFloat p_coordinates[2], MxFloat p_position[3]); // vtable+0x78
|
||||
virtual void CalculateDragPositionOnGround(MxFloat p_coordinates[2], MxFloat p_position[3]); // vtable+0x7c
|
||||
virtual void VTable0x80(
|
||||
MxFloat p_param1[2],
|
||||
MxFloat p_param2[2],
|
||||
@@ -132,33 +142,33 @@ public:
|
||||
MxS16 GetPlacedPartCount();
|
||||
void SetPlacedPartCount(MxU8 p_placedPartCount);
|
||||
void InitPresenters();
|
||||
void FUN_10022f00();
|
||||
void FUN_10022f30();
|
||||
void FUN_10023130(MxLong p_x, MxLong p_y);
|
||||
void DisplaySelectedPart();
|
||||
void ResetSelectedPart();
|
||||
void CalculateSelectedPartMatrix(MxLong p_x, MxLong p_y);
|
||||
void AddSelectedPartToBuild();
|
||||
undefined4 FUN_10024250(LegoEventNotificationParam* p_param);
|
||||
void FUN_100243a0();
|
||||
undefined4 FUN_10024480(MxActionNotificationParam* p_param);
|
||||
undefined4 SelectPartFromMousePosition(MxLong p_x, MxLong p_y);
|
||||
undefined4 FUN_100246e0(MxLong p_x, MxLong p_y);
|
||||
MxS32 FUN_10024850(MxLong p_x, MxLong p_y);
|
||||
undefined4 FUN_10024890(MxParam* p_param);
|
||||
undefined4 FUN_10024c20(MxNotificationParam* p_param);
|
||||
void FUN_10024ef0();
|
||||
void FUN_10024f30();
|
||||
void FUN_10024f50();
|
||||
void FUN_10024f70(MxBool p_enabled);
|
||||
void SetPresentersEnabled(MxBool p_enabled);
|
||||
void TogglePresentersEnabled();
|
||||
void FUN_100250e0(MxBool p_param);
|
||||
void FUN_10025350(MxS32 p_objectId);
|
||||
void FUN_10025450();
|
||||
void FUN_10025720(undefined4 p_param1);
|
||||
void FUN_10025d10(MxS32 p_param);
|
||||
MxS32 FUN_10025d70();
|
||||
void FUN_10025db0(const char* p_param1, undefined4 p_param2);
|
||||
void FUN_10025e40();
|
||||
MxS32 FUN_10025ee0(undefined4 p_param1);
|
||||
MxLong HandleKeyPress(LegoEventNotificationParam* p_param);
|
||||
void InitExiting();
|
||||
MxLong HandleEndAction(MxActionNotificationParam* p_param);
|
||||
MxLong SelectPartFromMousePosition(MxLong p_x, MxLong p_y);
|
||||
MxLong HandleButtonUp(MxLong p_x, MxLong p_y);
|
||||
MxLong HandleMouseMove(MxLong p_x, MxLong p_y);
|
||||
MxLong HandleControl(MxParam* p_param);
|
||||
MxLong HandleType0Notification(MxNotificationParam* p_param);
|
||||
void StartIntroduction();
|
||||
void MoveShelves();
|
||||
void RotateVehicle();
|
||||
void EnableColorControlsForSelectedPart(MxBool p_enabled);
|
||||
void SetColorControlsEnabled(MxBool p_enabled);
|
||||
void ToggleColorControlsEnabled();
|
||||
void EnableDecalForSelectedPart(MxBool p_enabled);
|
||||
void SetPartColor(MxS32 p_objectId);
|
||||
void CalculateStartAndTargetTransforms();
|
||||
void StartActorScriptByType(MxS32 p_actionType);
|
||||
void StartActorScript(MxS32 p_streamId);
|
||||
MxS32 GetNextIntroduction();
|
||||
void TickleControl(const char* p_controlName, MxULong p_time);
|
||||
void HandleEndAnim();
|
||||
MxS32 GetBuildMovieId(MxS32 p_carId);
|
||||
|
||||
// FUNCTION: BETA10 0x100735b0
|
||||
void SetCarBuildAnimPresenter(LegoCarBuildAnimPresenter* p_animPresenter) { m_animPresenter = p_animPresenter; }
|
||||
@@ -167,43 +177,45 @@ public:
|
||||
// LegoCarBuild::`scalar deleting destructor'
|
||||
|
||||
private:
|
||||
// inline functions
|
||||
MxU32 Beta0x10070520();
|
||||
void StopActionIn0x344();
|
||||
enum {
|
||||
e_idle = 0,
|
||||
e_returning = 3,
|
||||
e_selecting = 4,
|
||||
e_displaying = 5,
|
||||
e_dragging = 6,
|
||||
};
|
||||
|
||||
Unknown0xf8 m_unk0xf8; // 0xf8
|
||||
MxS16 m_unk0xfc; // 0xfc
|
||||
MxS32 m_unk0x100; // 0x100
|
||||
undefined4 m_unk0x104; // 0x104
|
||||
// inline functions
|
||||
MxU32 GetLookupIndex();
|
||||
void StopPlayingActorScript();
|
||||
|
||||
ResetPlacedSelectedPart m_resetPlacedSelectedPart; // 0xf8
|
||||
MxS16 m_rotateBuild; // 0xfc
|
||||
MxS32 m_clickState; // 0x100
|
||||
undefined4 m_unk0x104; // 0x104
|
||||
|
||||
// name verified by BETA10 0x1006ebba
|
||||
MxS8 m_numAnimsRun; // 0x108
|
||||
|
||||
MxU8 m_unk0x109; // 0x109
|
||||
MxU16 m_unk0x10a; // 0x10a
|
||||
DWORD m_unk0x10c; // 0x10c
|
||||
LegoROI* m_selectedPart; // 0x110
|
||||
BoundingSphere m_unk0x114; // 0x114
|
||||
MxMatrix m_unk0x12c; // 0x12c
|
||||
undefined m_unk0x174; // 0x174
|
||||
MxMatrix m_unk0x178; // 0x178
|
||||
MxMatrix m_unk0x1c0; // 0x1c0
|
||||
MxMatrix m_unk0x208; // 0x208
|
||||
|
||||
// This is likely a location in pixel space
|
||||
MxS32 m_unk0x250[2]; // 0x250
|
||||
|
||||
LegoCarBuildAnimPresenter* m_animPresenter; // 0x258
|
||||
MxQuaternionTransformer m_unk0x25c; // 0x25c
|
||||
|
||||
// These two are likely locations in pixel space
|
||||
MxS32 m_unk0x290[2]; // 0x290
|
||||
MxS32 m_unk0x298[2]; // 0x298
|
||||
|
||||
MxFloat m_unk0x2a0; // 0x2a0
|
||||
Mx4DPointFloat m_unk0x2a4; // 0x2a4
|
||||
Mx4DPointFloat m_unk0x2bc; // 0x2bc
|
||||
MxBool m_selectedPartIsPlaced; // 0x2d4
|
||||
MxU8 m_missclickCounter; // 0x109
|
||||
MxU16 m_lastActorScript; // 0x10a
|
||||
MxULong m_lastActorScriptStartTime; // 0x10c
|
||||
LegoROI* m_selectedPart; // 0x110
|
||||
BoundingSphere m_targetBoundingSphere; // 0x114
|
||||
MxMatrix m_originalSelectedPartTransform; // 0x12c
|
||||
MxBool m_alreadyFinished; // 0x174
|
||||
MxMatrix m_selectedPartStartTransform; // 0x178
|
||||
MxMatrix m_displayTransform; // 0x1c0
|
||||
MxMatrix m_selectedPartTargetTransform; // 0x208
|
||||
MxS32 m_selectedPartStartMousePosition[2]; // 0x250
|
||||
LegoCarBuildAnimPresenter* m_animPresenter; // 0x258
|
||||
MxQuaternionTransformer m_draggingQuarternionTransformer; // 0x25c
|
||||
MxS32 m_selectedPartStartScreenPosition[2]; // 0x290
|
||||
MxS32 m_selectedPartTargetScreenPosition[2]; // 0x298
|
||||
MxFloat m_normalizedDistance; // 0x2a0
|
||||
Mx4DPointFloat m_selectedPartStartPosition; // 0x2a4
|
||||
Mx4DPointFloat m_selectedPartTargetPosition; // 0x2bc
|
||||
MxBool m_displayedPartIsPlaced; // 0x2d4
|
||||
|
||||
// variable names verified by BETA10 0x1006b27a
|
||||
MxStillPresenter* m_ColorBook_Bitmap; // 0x2dc
|
||||
@@ -232,21 +244,21 @@ private:
|
||||
LegoVehicleBuildState* m_buildState; // 0x32c
|
||||
|
||||
// variable name verified by BETA10 0x1006d742
|
||||
undefined4 m_carId; // 0x330
|
||||
MxS32 m_carId; // 0x330
|
||||
|
||||
// variable name verified by BETA10 0x1006cba7
|
||||
LegoGameState::Area m_destLocation; // 0x334
|
||||
|
||||
MxPresenter* m_unk0x338; // 0x338
|
||||
MxControlPresenter* m_unk0x33c; // 0x33c
|
||||
undefined4 m_unk0x340; // 0x340
|
||||
undefined4 m_unk0x344; // 0x344
|
||||
MxU8 m_presentersEnabled; // 0x348
|
||||
MxPresenter* m_jukeboxPresenter; // 0x338
|
||||
MxControlPresenter* m_tickledControl; // 0x33c
|
||||
undefined4 m_unk0x340; // 0x340
|
||||
MxS32 m_playingActorScript; // 0x344
|
||||
MxU8 m_presentersEnabled; // 0x348
|
||||
|
||||
static MxS16 g_unk0x100f11cc;
|
||||
static MxFloat g_unk0x100d65a4;
|
||||
static MxS16 g_lastTickleState;
|
||||
static MxFloat g_selectedPartRotationAngleStepYAxis;
|
||||
static MxFloat g_rotationAngleStepYAxis;
|
||||
static LookupTableActions g_unk0x100d65b0[];
|
||||
static LookupTableActions g_actorScripts[];
|
||||
};
|
||||
|
||||
#endif // LEGOCARBUILD_H
|
||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user