SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
MessageHolder.hpp
1#pragma once
2
3#include "Game/Util.hpp"
4
5class TalkNode;
7
9public:
10 MessageData(const char *);
11
12 TalkNode* getNode(u32) const;
13
14 TalkNode* getBranchNode(u32) const;
15
16 bool getMessage(TalkMessageInfo *, u16, u16);
17
18 bool isValidBranchNode(u32) const;
19
20 JMapInfo* mIDTable; // _0
21 void* mInfoBlock; // _4
22 void* mDataBlock; // _8
23 u32 _C;
24 void* mFlowBlock; // _10
25 u32 _14;
26 u32 _18;
27 void* mFLI1Block; // _1C
28};
29
31public:
33
34 void initSceneData();
35 void destroySceneData();
36 void initSystemData();
37 void initGameData();
38
39 MessageData* mSystemMessage; // _0
40 MessageData* mGameMessage; // _4
41 MessageData* mSceneData; // _8
42};
43
45public:
46
47 class Node {
48
49 };
50
52
53 };
54
56 u8 mFlowType; // _0
57 u8 mEventType; // _1
58 u16 mBranchID; // _2
59 u32 mArg; // _4
60 };
61
62 static inline TalkNode* getCurrentBranchNodeFromSceneMsg(u32 idx) {
63 return getSceneMessageData()->getBranchNode(idx);
64 }
65
66 static MessageData* getSceneMessageData();
67};