metaforce/Runtime/CRelayTracker.hpp

44 lines
1.0 KiB
C++
Raw Normal View History

2016-07-24 23:14:58 +00:00
#ifndef __URDE_CRELAYTRACKER_HPP__
#define __URDE_CRELAYTRACKER_HPP__
2015-08-17 05:26:58 +00:00
2016-04-12 08:01:24 +00:00
#include "IOStreams.hpp"
2016-04-18 01:58:13 +00:00
#include "World/ScriptObjectSupport.hpp"
2016-04-12 08:01:24 +00:00
#include "RetroTypes.hpp"
2016-03-04 23:04:53 +00:00
namespace urde
{
2016-04-12 08:01:24 +00:00
class CStateManager;
2016-07-24 23:14:58 +00:00
class CSaveWorld;
#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
2016-07-24 23:14:58 +00:00
class CRelayTracker
2015-08-17 05:26:58 +00:00
{
2016-07-24 23:14:58 +00:00
std::vector<TEditorId> x0_relayStates;
2016-04-12 08:01:24 +00:00
public:
2016-07-24 23:14:58 +00:00
CRelayTracker() = default;
CRelayTracker(CBitStreamReader&, const CSaveWorld&);
2016-04-12 08:01:24 +00:00
2016-07-24 23:14:58 +00:00
bool HasRelay(TEditorId);
void AddRelay(TEditorId);
void RemoveRelay(TEditorId);
2016-04-12 10:52:40 +00:00
void SendMsgs(const TAreaId&, CStateManager&);
2016-07-24 23:14:58 +00:00
void PutTo(CBitStreamWriter&, const CSaveWorld&);
2015-08-17 05:26:58 +00:00
};
}
2016-07-24 23:14:58 +00:00
#endif // __URDE_CRELAYTRACKER_HPP__