mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-19 05: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>
66 lines
1.7 KiB
C++
66 lines
1.7 KiB
C++
#pragma once
|
|
|
|
#include "Game/LiveActor/LiveActor.hpp"
|
|
|
|
class JUTTexture;
|
|
class SpinDriverShootPath;
|
|
|
|
class SpinDriverPathDrawer : public LiveActor {
|
|
public:
|
|
SpinDriverPathDrawer(SpinDriverShootPath*);
|
|
|
|
virtual void init(const JMapInfoIter&);
|
|
virtual void draw() const;
|
|
|
|
s32 calcPositionCount(f32, f32) const;
|
|
void initPositionList(f32, f32);
|
|
void initClipping();
|
|
void initPathEnd();
|
|
f32 calcDrawCode() const;
|
|
f32 calcDrawBaseCode() const;
|
|
void setCoord(f32);
|
|
void setColorNormal();
|
|
void setColorGreen();
|
|
void setColorPink();
|
|
void setMaskLength(f32);
|
|
void setFadeScale(f32);
|
|
void sendPoint(const TVec3f&, f32, f32) const;
|
|
|
|
/* 0x8C */ SpinDriverShootPath* mShootPath;
|
|
/* 0x90 */ TVec3f* _90;
|
|
/* 0x94 */ TVec3f* _94;
|
|
/* 0x98 */ TVec3f* _98;
|
|
/* 0x9C */ f32* _9C;
|
|
/* 0xA0 */ s32 mPositionCount;
|
|
/* 0xA4 */ u32 _A4;
|
|
/* 0xA8 */ u32 _A8;
|
|
/* 0xAC */ f32 _AC;
|
|
/* 0xB0 */ f32 _B0;
|
|
/* 0xB4 */ s32 mColor;
|
|
/* 0xB8 */ f32 _B8;
|
|
/* 0xBC */ f32 mFadeScale;
|
|
/* 0xC0 */ f32 mMaskLength;
|
|
};
|
|
|
|
class SpinDriverPathDrawInit : public NameObj {
|
|
public:
|
|
SpinDriverPathDrawInit();
|
|
|
|
void initDraw();
|
|
|
|
/* 0x0C */ JUTTexture* mOrangeTexture;
|
|
/* 0x10 */ JUTTexture* mGreenTexture;
|
|
/* 0x14 */ JUTTexture* mPinkTexture;
|
|
/* 0x18 */ JUTTexture* mMaskTexture;
|
|
/* 0x1C */ bool mIsPathAtOpa;
|
|
};
|
|
|
|
namespace MR {
|
|
void setSpinDriverPathColorNormal() NO_INLINE;
|
|
void setSpinDriverPathColorGreen() NO_INLINE;
|
|
void setSpinDriverPathColorPink() NO_INLINE;
|
|
bool isDrawSpinDriverPathAtOpa();
|
|
void onDrawSpinDriverPathAtOpa();
|
|
void offDrawSpinDriverPathAtOpa();
|
|
}; // namespace MR
|