2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-04-27 00:21:08 +00:00
|
|
|
|
2019-09-23 19:00:23 +00:00
|
|
|
#include <string_view>
|
|
|
|
|
|
|
|
#include "Runtime/CPlayerState.hpp"
|
|
|
|
#include "Runtime/GCNTypes.hpp"
|
|
|
|
#include "Runtime/rstl.hpp"
|
|
|
|
#include "Runtime/World/CEntity.hpp"
|
|
|
|
|
|
|
|
#include <zeus/CTransform.hpp>
|
2016-04-27 00:21:08 +00:00
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
namespace metaforce {
|
2016-04-27 00:21:08 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CScriptSpawnPoint : public CEntity {
|
|
|
|
zeus::CTransform x34_xf;
|
|
|
|
rstl::reserved_vector<u32, int(CPlayerState::EItemType::Max)> x64_itemCounts;
|
2020-04-11 05:50:10 +00:00
|
|
|
bool x10c_24_firstSpawn : 1;
|
|
|
|
bool x10c_25_morphed : 1;
|
2018-12-08 05:30:43 +00:00
|
|
|
|
2016-04-27 00:21:08 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
CScriptSpawnPoint(TUniqueId, std::string_view name, const CEntityInfo& info, const zeus::CTransform& xf,
|
|
|
|
const rstl::reserved_vector<u32, int(CPlayerState::EItemType::Max)>& itemCounts, bool, bool, bool);
|
2016-08-14 21:11:44 +00:00
|
|
|
|
2019-08-09 12:45:18 +00:00
|
|
|
void Accept(IVisitor& visitor) override;
|
|
|
|
void AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId objId, CStateManager& stateMgr) override;
|
2018-12-08 05:30:43 +00:00
|
|
|
bool FirstSpawn() const { return x10c_24_firstSpawn; }
|
|
|
|
const zeus::CTransform& GetTransform() const { return x34_xf; }
|
|
|
|
u32 GetPowerup(CPlayerState::EItemType item) const;
|
2016-04-27 00:21:08 +00:00
|
|
|
};
|
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
} // namespace metaforce
|