2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 22:27:43 +00:00

More GameState imps

This commit is contained in:
2016-07-24 16:14:58 -07:00
parent 37a2d81ff2
commit f73b1b641f
10 changed files with 133 additions and 71 deletions

43
Runtime/CRelayTracker.hpp Normal file
View File

@@ -0,0 +1,43 @@
#ifndef __URDE_CRELAYTRACKER_HPP__
#define __URDE_CRELAYTRACKER_HPP__
#include "IOStreams.hpp"
#include "World/ScriptObjectSupport.hpp"
#include "RetroTypes.hpp"
namespace urde
{
class CStateManager;
class CSaveWorld;
#if 0
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); }
};
#endif
class CRelayTracker
{
std::vector<TEditorId> x0_relayStates;
public:
CRelayTracker() = default;
CRelayTracker(CBitStreamReader&, const CSaveWorld&);
bool HasRelay(TEditorId);
void AddRelay(TEditorId);
void RemoveRelay(TEditorId);
void SendMsgs(const TAreaId&, CStateManager&);
void PutTo(CBitStreamWriter&, const CSaveWorld&);
};
}
#endif // __URDE_CRELAYTRACKER_HPP__