2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2017-01-30 02:15:21 +00:00
|
|
|
|
|
|
|
#include <vector>
|
2019-09-22 21:52:05 +00:00
|
|
|
|
|
|
|
#include "Runtime/RetroTypes.hpp"
|
|
|
|
#include "Runtime/World/ScriptObjectSupport.hpp"
|
2017-01-30 02:15:21 +00:00
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
namespace metaforce {
|
2018-12-08 05:30:43 +00:00
|
|
|
struct SConnection {
|
2021-05-27 06:31:38 +00:00
|
|
|
EScriptObjectState x0_state = EScriptObjectState::Any;
|
|
|
|
EScriptObjectMessage x4_msg = EScriptObjectMessage::None;
|
|
|
|
TEditorId x8_objId = kInvalidEditorId;
|
|
|
|
bool operator==(const SConnection& other) const {
|
|
|
|
return x0_state == other.x0_state && x4_msg == other.x4_msg && x8_objId == other.x8_objId;
|
|
|
|
}
|
|
|
|
bool operator<(const SConnection& other) const {
|
|
|
|
return x8_objId < other.x8_objId;
|
|
|
|
}
|
2017-01-30 02:15:21 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CEntityInfo {
|
|
|
|
TAreaId x0_areaId;
|
|
|
|
std::vector<SConnection> x4_conns;
|
|
|
|
TEditorId x14_editorId;
|
|
|
|
|
2017-01-30 02:15:21 +00:00
|
|
|
public:
|
2019-09-15 20:04:13 +00:00
|
|
|
CEntityInfo(TAreaId aid, std::vector<SConnection> conns, TEditorId eid = kInvalidEditorId)
|
|
|
|
: x0_areaId(aid), x4_conns(std::move(conns)), x14_editorId(eid) {}
|
2018-12-08 05:30:43 +00:00
|
|
|
TAreaId GetAreaId() const { return x0_areaId; }
|
|
|
|
std::vector<SConnection> GetConnectionList() const { return x4_conns; }
|
|
|
|
TEditorId GetEditorId() const { return x14_editorId; }
|
2017-01-30 02:15:21 +00:00
|
|
|
};
|
2021-04-10 08:42:06 +00:00
|
|
|
} // namespace metaforce
|