mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-19 23:01:27 +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>
40 lines
1.1 KiB
C++
40 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include "Game/NameObj/NameObj.hpp"
|
|
|
|
class ChipBase;
|
|
class ChipCounter;
|
|
class ChipGroup;
|
|
class ChipHolder;
|
|
|
|
class ChipHolder : public NameObj {
|
|
public:
|
|
ChipHolder(const char* pName, s32 chipType);
|
|
|
|
virtual ~ChipHolder();
|
|
virtual void init(const JMapInfoIter&);
|
|
|
|
void registerChipGroup(ChipGroup*);
|
|
ChipGroup* findChipGroup(s32) const;
|
|
|
|
/* 0x0C */ ChipCounter* mChipCounter;
|
|
/* 0x10 */ ChipGroup** mChipGroups;
|
|
/* 0x14 */ s32 mNumChipGroups;
|
|
/* 0x18 */ s32 mChipType; ///< Determines whether the chip is blue (`0`) or yellow (`1`).
|
|
};
|
|
|
|
namespace MR {
|
|
void createChipHolder(s32);
|
|
ChipHolder* getChipHolder(s32);
|
|
void registerChipGroup(s32, ChipGroup* pChipGroup);
|
|
void registerChip(s32, ChipBase*, s32);
|
|
void noticeGetChip(s32, ChipBase*, s32);
|
|
void showChipCounter(s32, s32);
|
|
void hideChipCounter(s32, s32);
|
|
void requestStartChipCompleteDemo(s32, s32);
|
|
void noticeEndChipCompleteDemo(s32, s32);
|
|
s32 getGotChipCount(s32, s32);
|
|
void activateChipLayout();
|
|
void deactivateChipLayout();
|
|
}; // namespace MR
|