mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-18 17:01:15 +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>
49 lines
1.1 KiB
C++
49 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include "Game/Effect/MultiEmitterCallBack.hpp"
|
|
#include "Game/Player/MarioModule.hpp"
|
|
#include "Game/Util/Color.hpp"
|
|
#include <JSystem/JGeometry/TMatrix.hpp>
|
|
|
|
class MarioActor;
|
|
class JPABaseEmitter;
|
|
|
|
struct MovingFollowMtx {
|
|
MovingFollowMtx() {
|
|
_4.identity();
|
|
_34.identity();
|
|
_64 = nullptr;
|
|
_68 = nullptr;
|
|
_0 = 0;
|
|
}
|
|
|
|
/* 0x00 */ u32 _0;
|
|
/* 0x04 */ TMtx34f _4;
|
|
/* 0x34 */ TMtx34f _34;
|
|
/* 0x64 */ MtxPtr _64;
|
|
/* 0x68 */ JPABaseEmitter* _68;
|
|
};
|
|
|
|
class MarioEffect : public MarioModule, public MultiEmitterCallBackBase {
|
|
public:
|
|
MarioEffect(MarioActor*);
|
|
|
|
virtual void execute(JPABaseEmitter*);
|
|
|
|
virtual ~MarioEffect();
|
|
|
|
JPABaseEmitter* addRequest(const char*, MtxPtr);
|
|
void updateFollowMtx(MovingFollowMtx*);
|
|
void playSwingEffect();
|
|
void doCubeEffect();
|
|
|
|
/* 0x0C */ s32 _C;
|
|
/* 0x10 */ s32 _10;
|
|
/* 0x14 */ s32 _14;
|
|
/* 0x18 */ u8 _18;
|
|
/* 0x1C */ Color8 _1C;
|
|
/* 0x20 */ Color8 _20;
|
|
/* 0x24 */ TMtx34f _24;
|
|
/* 0x54 */ MovingFollowMtx _54[0x100];
|
|
};
|