mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-23 15:01:36 +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>
108 lines
3.2 KiB
C++
108 lines
3.2 KiB
C++
#pragma once
|
|
|
|
#include "Game/Screen/LayoutActor.hpp"
|
|
#include "Game/Util/Array.hpp"
|
|
|
|
class DemoPadRumbler;
|
|
class MovieSubtitles;
|
|
|
|
/// @brief The general parameters for a movie.
|
|
struct MoviePlayingInfo {
|
|
/// @brief A pointer to the null-terminated absolute path of the associated movie file.
|
|
/* 0x00 */ const char* mMovieName;
|
|
|
|
/// @brief A pointer to the null-terminated absolute path of the associated movie file for Luigi.
|
|
/* 0x04 */ const char* mMovieNameLuigi;
|
|
|
|
/// @brief A pointer to the null-terminated name of the galaxy to enter after playback.
|
|
/* 0x08 */ const char* mStageName;
|
|
|
|
/// @brief A pointer to the null-terminated name of the background music to start after playback.
|
|
/* 0x0C */ const char* mStageBgmName;
|
|
|
|
/// @brief The number of frames to wait on a blank screen before playback.
|
|
/* 0x10 */ s32 mPlayWaitTime;
|
|
|
|
/// @brief The number of frames to wait on a blank screen after playback.
|
|
/* 0x14 */ s32 mEndWaitTime;
|
|
|
|
/// @brief The type of screen transition for the start of playback.
|
|
/* 0x18 */ s32 mOpenWipeType;
|
|
|
|
/// @brief The number of frames for the screen to transition at the start of playback.
|
|
/* 0x1C */ s32 mOpenWipeTime;
|
|
|
|
/// @brief The type of screen transition for the end of playback.
|
|
/* 0x20 */ s32 mCloseWipeType;
|
|
|
|
/// @brief The number of frames for the screen to transition at the end of playback.
|
|
/* 0x24 */ s32 mCloseWipeTime;
|
|
|
|
/// @brief The type of screen transition for after playback.
|
|
/* 0x28 */ s32 mEndWaitWipeType;
|
|
|
|
/// @brief The loudness of the audio within the unit interval.
|
|
/* 0x2C */ f32 mVolume;
|
|
};
|
|
|
|
class MoviePlayingSequence : public LayoutActor {
|
|
public:
|
|
enum MovieType {
|
|
MovieType_PrologueA,
|
|
MovieType_PrologueB,
|
|
MovieType_FinalBattle,
|
|
MovieType_EpilogueA,
|
|
MovieType_EpilogueB,
|
|
MovieType_EndingA,
|
|
MovieType_EndingB,
|
|
};
|
|
|
|
MoviePlayingSequence(const char*, s32);
|
|
|
|
virtual void appear();
|
|
virtual void kill();
|
|
|
|
static const char* getMovieName(MovieType);
|
|
|
|
void exeWait();
|
|
void exePlayWait();
|
|
void exePlayStart();
|
|
void exePlay();
|
|
bool tryStartSubtitles();
|
|
bool tryEnd();
|
|
bool trySkip();
|
|
void exeCloseWipeOnPlaying();
|
|
void exeEndWait();
|
|
|
|
private:
|
|
/* 0x20 */ const MoviePlayingInfo* mInfo;
|
|
/* 0x24 */ MR::Vector< MR::AssignableArray< MovieSubtitles* > > mSubtitles;
|
|
/* 0x30 */ DemoPadRumbler* mPadRumbler;
|
|
};
|
|
|
|
class MoviePlayingSequenceHolder : public NameObj {
|
|
public:
|
|
/// @brief Creates a new `MoviePlayingSequenceHolder`.
|
|
/// @param pName A pointer to the null-terminated name of the object.
|
|
MoviePlayingSequenceHolder(const char* pName);
|
|
|
|
MoviePlayingSequence* getSequence(int) const;
|
|
s32 getSequenceNum() const;
|
|
|
|
private:
|
|
/* 0x0C */ MR::AssignableArray< MoviePlayingSequence* > mSequence;
|
|
};
|
|
|
|
namespace MR {
|
|
void createMoviePlayingSequence();
|
|
void startMovie(int);
|
|
bool isEndMovie(int);
|
|
void startMovieEpilogueA();
|
|
void startMovieEndingA();
|
|
void startMovieEndingB();
|
|
bool isEndMovieEpilogueA();
|
|
bool isEndMovieEndingA();
|
|
bool isEndMovieEndingB();
|
|
bool isMoviePlayingOnSequence();
|
|
}; // namespace MR
|