mirror of
https://github.com/encounter/Petari.git
synced 2026-03-30 11:34:15 -07:00
67 lines
1.3 KiB
C++
67 lines
1.3 KiB
C++
#pragma once
|
|
|
|
#include "Game/Util.hpp"
|
|
|
|
class TalkNode;
|
|
class TalkMessageInfo;
|
|
|
|
class MessageData {
|
|
public:
|
|
MessageData(const char *);
|
|
|
|
TalkNode* getNode(u32) const;
|
|
|
|
TalkNode* getBranchNode(u32) const;
|
|
|
|
bool getMessage(TalkMessageInfo *, u16, u16);
|
|
|
|
bool isValidBranchNode(u32) const;
|
|
|
|
JMapInfo* mIDTable; // 0x0
|
|
void* mInfoBlock; // 0x4
|
|
void* mDataBlock; // 0x8
|
|
u32 _C;
|
|
void* mFlowBlock; // 0x10
|
|
u32 _14;
|
|
u32 _18;
|
|
void* mFLI1Block; // 0x1C
|
|
};
|
|
|
|
class MessageHolder {
|
|
public:
|
|
MessageHolder();
|
|
|
|
void initSceneData();
|
|
void destroySceneData();
|
|
void initSystemData();
|
|
void initGameData();
|
|
|
|
MessageData* mSystemMessage; // 0x0
|
|
MessageData* mGameMessage; // 0x4
|
|
MessageData* mSceneData; // 0x8
|
|
};
|
|
|
|
class MessageSystem {
|
|
public:
|
|
|
|
class Node {
|
|
|
|
};
|
|
|
|
struct FlowNodeBranch {
|
|
|
|
};
|
|
|
|
struct FlowNodeEvent {
|
|
u8 mFlowType; // 0x0
|
|
u8 mEventType; // 0x1
|
|
u16 mBranchID; // 0x2
|
|
u32 mArg; // 0x4
|
|
};
|
|
|
|
static inline TalkNode* getCurrentBranchNodeFromSceneMsg(u32 idx) {
|
|
return getSceneMessageData()->getBranchNode(idx);
|
|
}
|
|
|
|
static MessageData* getSceneMessageData();
|
|
}; |