mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-19 08:01:16 +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.7 KiB
C++
49 lines
1.7 KiB
C++
#pragma once
|
|
|
|
#include "Game/LiveActor/PartsModel.hpp"
|
|
|
|
class LodCtrl;
|
|
class NameObjArchiveListCollector;
|
|
|
|
#define ITEM_TYPE_COIN 0
|
|
#define ITEM_TYPE_KINOPIO 1
|
|
#define ITEM_TYPE_STARPIECE 4
|
|
#define ITEM_TYPE_POWER_STAR 7
|
|
#define ITEM_TYPE_GRAND_STAR 13
|
|
|
|
struct DummyDisplayModelInfo {
|
|
/* 0x00 */ const char* mName;
|
|
/* 0x4 */ Vec _4;
|
|
/* 0x10 */ u32 _10;
|
|
/* 0x14 */ const char* mAnim;
|
|
/* 0x18 */ bool mHasColorChange;
|
|
};
|
|
|
|
class DummyDisplayModel : public PartsModel {
|
|
public:
|
|
DummyDisplayModel(LiveActor*, const DummyDisplayModelInfo*, int, s32, s32);
|
|
|
|
virtual void init(const JMapInfoIter&);
|
|
virtual void makeActorAppeared();
|
|
virtual void makeActorDead();
|
|
virtual void control();
|
|
virtual void calcAndSetBaseMtx();
|
|
|
|
/* 0x9C */ const DummyDisplayModelInfo* mModelInfo;
|
|
/* 0xA0 */ s32 mItemType;
|
|
/* 0xA4 */ s32 _A4;
|
|
/* 0xA8 */ LodCtrl* _A8;
|
|
/* 0xAC */ bool _AC;
|
|
};
|
|
|
|
namespace MR {
|
|
DummyDisplayModel* createDummyDisplayModel(LiveActor*, const JMapInfoIter&, s32, const TVec3f&, const TVec3f&);
|
|
DummyDisplayModel* createDummyDisplayModel(LiveActor*, const JMapInfoIter&, const char*, s32);
|
|
DummyDisplayModel* createDummyDisplayModel(LiveActor*, const JMapInfoIter&, MtxPtr, s32, const TVec3f&, const TVec3f&);
|
|
DummyDisplayModel* createDummyDisplayModelCrystalItem(LiveActor*, const JMapInfoIter&, const TVec3f&, const TVec3f&);
|
|
DummyDisplayModel* createDummyDisplayModelCrystalItem(LiveActor*, s32, const TVec3f&, const TVec3f&);
|
|
s32 getDummyDisplayModelId(const JMapInfoIter&, s32);
|
|
s32 getDummyDisplayModelId(const LiveActor*);
|
|
void makeArchiveListDummyDisplayModel(NameObjArchiveListCollector*, const JMapInfoIter&);
|
|
}; // namespace MR
|