mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-21 17:01:40 +02:00
The sources of Petari (https://github.com/SMGCommunity/Petari), the Super Mario Galaxy decompilation by the SMGCommunity, at commit 0a5c6608dc3b4c44a9aa68c2535d1793dc565f02, unchanged but for LF line endings: LICENSE (as LICENSE-Petari.txt; CC0 1.0), include/, libs/ and src/. Left out: the game data Petari keeps from the original executable, the error message archive (include/Game/System/ ErrorArchive.hpp) and two tables (src/Game/System/GalaxyID.bcsv and StoryEvent.bcsv); GalaxyQuest's converter takes them from the player's own disc. The port's changes follow in the next commit, so `git diff petari-base -- decomp` shows them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
110 lines
2.7 KiB
C++
110 lines
2.7 KiB
C++
#pragma once
|
|
|
|
#include "Game/LiveActor/LiveActor.hpp"
|
|
#include "Game/System/DrawSyncManager.hpp"
|
|
#include "Game/Util/Array.hpp"
|
|
|
|
class BrightCamInfo;
|
|
class BrightObjBase;
|
|
class TriggerChecker;
|
|
|
|
class LensFlareModel : public LiveActor {
|
|
public:
|
|
/// @brief Creates a new `LensFlareModel`.
|
|
/// @param pName The pointer to the null-terminated name of the object.
|
|
/// @param pArcName The pointer to the null-terminated base name of the resource archive.
|
|
LensFlareModel(const char* pName, const char* pArcName);
|
|
|
|
virtual void appear();
|
|
virtual void control();
|
|
virtual void appearAnim() {
|
|
}
|
|
virtual void controlAnim() {
|
|
}
|
|
|
|
void update(bool, bool);
|
|
|
|
void exeKill();
|
|
void exeHide();
|
|
void exeShow();
|
|
void exeFadeIn();
|
|
void exeFadeOut();
|
|
|
|
void notifyInArea();
|
|
|
|
/* 0x8C */ f32 _8C;
|
|
/* 0x90 */ f32 _90;
|
|
/* 0x94 */ f32 _94;
|
|
/* 0x98 */ TriggerChecker* _98;
|
|
/* 0x9C */ TriggerChecker* _9C;
|
|
};
|
|
|
|
class LensFlareRing : public LensFlareModel {
|
|
public:
|
|
/// @brief Creates a new `LensFlareRing`.
|
|
LensFlareRing();
|
|
|
|
virtual void appearAnim();
|
|
virtual void controlAnim();
|
|
|
|
/* 0xA0 */ f32 _A0;
|
|
};
|
|
|
|
class LensFlareGlow : public LensFlareModel {
|
|
public:
|
|
/// @brief Creates a new `LensFlareGlow`.
|
|
LensFlareGlow();
|
|
|
|
virtual void appearAnim();
|
|
virtual void controlAnim();
|
|
};
|
|
|
|
class LensFlareLine : public LensFlareModel {
|
|
public:
|
|
/// @brief Creates a new `LensFlareLine`.
|
|
LensFlareLine();
|
|
|
|
virtual void appearAnim();
|
|
virtual void controlAnim();
|
|
};
|
|
|
|
class LensFlareDirector : public NameObj, public DrawSyncCallback {
|
|
public:
|
|
/// @brief Creates a new `LensFlareDirector`.
|
|
LensFlareDirector();
|
|
|
|
virtual ~LensFlareDirector();
|
|
|
|
/// @brief Intializes the `LensFlareDirector` while being placed into a scene.
|
|
/// @param rIter The reference to an iterator over a `JMapInfo`.
|
|
virtual void init(const JMapInfoIter& rIter);
|
|
|
|
virtual void movement();
|
|
virtual void drawSyncCallback(u16);
|
|
|
|
void pauseOff();
|
|
void setDrawSyncToken();
|
|
s32 checkArea();
|
|
bool checkBrightObj(bool);
|
|
void controlFlare(s32, bool);
|
|
|
|
/* 0x10 */ LensFlareRing* mRing;
|
|
/* 0x14 */ LensFlareGlow* mGlow;
|
|
/* 0x18 */ LensFlareLine* mLine;
|
|
/* 0x1C */ BrightObjBase* mBrightObjArray[16];
|
|
/* 0x5C */ u32 mBrightObjCount;
|
|
/* 0x60 */ TVec2f _60;
|
|
/* 0x68 */ f32 _68;
|
|
/* 0x6C */ TVec2f _6C;
|
|
/* 0x74 */ TVec2f _74;
|
|
/* 0x7C */ u16 _7C;
|
|
/* 0x7E */ u16 mDrawSyncTokenIndex;
|
|
/* 0x80 */ BrightCamInfo* mBrightCamInfo;
|
|
};
|
|
|
|
namespace MR {
|
|
void addBrightObj(BrightObjBase* pBrightObj);
|
|
void setLensFlareDrawSyncToken();
|
|
u32 getLensFlareDrawSyncTokenIndex();
|
|
}; // namespace MR
|