2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2017-08-18 01:30:15 +00:00
|
|
|
|
2019-09-23 19:00:23 +00:00
|
|
|
#include <string_view>
|
|
|
|
|
|
|
|
#include "Runtime/RetroTypes.hpp"
|
|
|
|
#include "Runtime/rstl.hpp"
|
|
|
|
#include "Runtime/World/CActor.hpp"
|
2017-08-18 01:30:15 +00:00
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
namespace metaforce {
|
2018-12-08 05:30:43 +00:00
|
|
|
|
|
|
|
class CScriptPlayerHint : public CActor {
|
|
|
|
rstl::reserved_vector<TUniqueId, 8> xe8_objectList;
|
|
|
|
bool xfc_deactivated = false;
|
|
|
|
u32 x100_priority;
|
|
|
|
u32 x104_overrideFlags;
|
|
|
|
TUniqueId x108_mpId = kInvalidUniqueId;
|
|
|
|
void AddToObjectList(TUniqueId uid);
|
|
|
|
void RemoveFromObjectList(TUniqueId uid);
|
2017-08-18 01:30:15 +00:00
|
|
|
|
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
CScriptPlayerHint(TUniqueId uid, std::string_view name, const CEntityInfo& info, const zeus::CTransform& xf,
|
|
|
|
bool active, u32 priority, u32 overrideFlags);
|
2019-08-09 12:45:18 +00:00
|
|
|
void Accept(IVisitor& visit) override;
|
|
|
|
void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager&) override;
|
2018-12-08 05:30:43 +00:00
|
|
|
u32 GetPriority() const { return x100_priority; }
|
|
|
|
u32 GetOverrideFlags() const { return x104_overrideFlags; }
|
|
|
|
TUniqueId GetActorId() const { return x108_mpId; }
|
|
|
|
void ClearObjectList() { xe8_objectList.clear(); }
|
|
|
|
void SetDeactivated() { xfc_deactivated = true; }
|
2017-08-18 01:30:15 +00:00
|
|
|
};
|
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
} // namespace metaforce
|