mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-18 18:02:04 +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>
55 lines
1.2 KiB
C++
55 lines
1.2 KiB
C++
#pragma once
|
|
|
|
#include <JSystem/JGeometry/TVec.hpp>
|
|
#include <revolution.h>
|
|
|
|
struct LightInfo {
|
|
/* 0x00 */ GXColor mColor;
|
|
/* 0x04 */ Vec mPos;
|
|
/* 0x10 */ bool mIsFollowCamera;
|
|
};
|
|
|
|
struct LightInfoCoin {
|
|
LightInfo base;
|
|
struct {
|
|
GXColor _14;
|
|
f32 _18;
|
|
};
|
|
};
|
|
|
|
struct ActorLightInfo {
|
|
LightInfo mInfo0; // 0x0
|
|
LightInfo mInfo1; // 0x14
|
|
u8 mAlpha2; // 0x28
|
|
GXColor mColor; // 0x29
|
|
};
|
|
|
|
struct AreaLightInfo {
|
|
/* 0x00 */ const char* mAreaLightName;
|
|
/* 0x04 */ s32 mInterpolate;
|
|
/* 0x08 */ bool mFix;
|
|
/* 0x0C */ ActorLightInfo mPlayerLight;
|
|
/* 0x3C */ ActorLightInfo mStrongLight;
|
|
/* 0x6C */ ActorLightInfo mWeakLight;
|
|
/* 0x9C */ ActorLightInfo mPlanetLight;
|
|
};
|
|
|
|
class LightDataHolder {
|
|
public:
|
|
LightDataHolder();
|
|
|
|
void initLightData();
|
|
|
|
AreaLightInfo* findAreaLight(const char*) const;
|
|
const char* getDefaultAreaLightName() const;
|
|
s32 getDefaultStepInterpolate() const;
|
|
|
|
inline AreaLightInfo* getLightInfo(s32 idx) const {
|
|
return &mLights[idx];
|
|
}
|
|
|
|
/* 0x00 */ s32 mLightCount;
|
|
/* 0x04 */ AreaLightInfo* mLights;
|
|
/* 0x08 */ LightInfoCoin _8;
|
|
};
|