2018-10-06 20:42:33 -07:00
|
|
|
#pragma once
|
2015-08-16 22:26:58 -07:00
|
|
|
|
2019-09-23 12:00:23 -07:00
|
|
|
#include <vector>
|
|
|
|
|
2022-02-19 05:04:45 -08:00
|
|
|
#include "Runtime/Streams/IOStreams.hpp"
|
2019-09-23 12:00:23 -07:00
|
|
|
#include "Runtime/RetroTypes.hpp"
|
|
|
|
#include "Runtime/World/ScriptObjectSupport.hpp"
|
2016-04-12 01:01:24 -07:00
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
namespace metaforce {
|
2021-06-04 22:27:52 -07:00
|
|
|
class CWorldSaveGameInfo;
|
2019-09-23 12:00:23 -07:00
|
|
|
class CStateManager;
|
|
|
|
|
2016-07-24 16:14:58 -07:00
|
|
|
#if 0
|
2016-04-12 01:01:24 -07:00
|
|
|
struct CMailMessage
|
|
|
|
{
|
|
|
|
TEditorId x0_id;
|
|
|
|
EScriptObjectMessage x4_msg;
|
|
|
|
bool x8_;
|
|
|
|
CMailMessage(TEditorId id, EScriptObjectMessage msg, bool flag) : x0_id(id), x4_msg(msg), x8_(flag) {}
|
|
|
|
CMailMessage(const CMailMessage& other) : x0_id(other.x0_id), x4_msg(other.x4_msg), x8_(other.x8_) {}
|
|
|
|
|
|
|
|
bool operator==(const CMailMessage& other) const
|
|
|
|
{ return (x0_id == other.x0_id && x4_msg == other.x4_msg); }
|
|
|
|
};
|
2016-07-24 16:14:58 -07:00
|
|
|
#endif
|
2015-08-17 15:05:00 -07:00
|
|
|
|
2021-06-03 14:39:49 -07:00
|
|
|
class CScriptMailbox {
|
|
|
|
std::vector<TEditorId> x0_relays;
|
2016-07-24 16:14:58 -07:00
|
|
|
|
2016-04-12 01:01:24 -07:00
|
|
|
public:
|
2021-06-03 14:39:49 -07:00
|
|
|
CScriptMailbox() = default;
|
2022-02-17 23:37:54 -08:00
|
|
|
CScriptMailbox(CInputStream& in, const CWorldSaveGameInfo& saveWorld);
|
2018-12-07 21:30:43 -08:00
|
|
|
|
2021-06-03 14:39:49 -07:00
|
|
|
bool HasMsg(TEditorId id) const;
|
|
|
|
void AddMsg(TEditorId id);
|
|
|
|
void RemoveMsg(TEditorId id);
|
2020-03-25 12:53:45 -07:00
|
|
|
void SendMsgs(TAreaId areaId, CStateManager& stateMgr);
|
2022-02-17 23:37:54 -08:00
|
|
|
void PutTo(COutputStream& out, const CWorldSaveGameInfo& saveWorld);
|
2015-08-16 22:26:58 -07:00
|
|
|
};
|
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
} // namespace metaforce
|