2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2015-08-17 05:26:58 +00:00
|
|
|
|
2019-09-23 19:00:23 +00:00
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "Runtime/IOStreams.hpp"
|
|
|
|
#include "Runtime/RetroTypes.hpp"
|
|
|
|
#include "Runtime/World/ScriptObjectSupport.hpp"
|
2016-04-12 08:01:24 +00:00
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
namespace metaforce {
|
2016-07-24 23:14:58 +00:00
|
|
|
class CSaveWorld;
|
2019-09-23 19:00:23 +00:00
|
|
|
class CStateManager;
|
|
|
|
|
2016-07-24 23:14:58 +00:00
|
|
|
#if 0
|
2016-04-12 08:01:24 +00: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 23:14:58 +00:00
|
|
|
#endif
|
2015-08-17 22:05:00 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CRelayTracker {
|
|
|
|
std::vector<TEditorId> x0_relayStates;
|
2016-07-24 23:14:58 +00:00
|
|
|
|
2016-04-12 08:01:24 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
CRelayTracker() = default;
|
2020-03-25 19:53:45 +00:00
|
|
|
CRelayTracker(CBitStreamReader& in, const CSaveWorld& saveWorld);
|
2018-12-08 05:30:43 +00:00
|
|
|
|
2020-03-25 19:53:45 +00:00
|
|
|
bool HasRelay(TEditorId id) const;
|
|
|
|
void AddRelay(TEditorId id);
|
|
|
|
void RemoveRelay(TEditorId id);
|
|
|
|
void SendMsgs(TAreaId areaId, CStateManager& stateMgr);
|
|
|
|
void PutTo(CBitStreamWriter& out, const CSaveWorld& saveWorld);
|
2015-08-17 05:26:58 +00:00
|
|
|
};
|
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
} // namespace metaforce
|