2016-04-27 00:21:08 +00:00
|
|
|
#ifndef __CSCRIPTSPAWNPOINT_HPP__
|
|
|
|
#define __CSCRIPTSPAWNPOINT_HPP__
|
|
|
|
|
|
|
|
#include "CEntity.hpp"
|
|
|
|
#include "zeus/CTransform.hpp"
|
2016-08-14 21:11:44 +00:00
|
|
|
#include "CPlayerState.hpp"
|
2016-04-27 00:21:08 +00:00
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
|
|
|
class CScriptSpawnPoint : public CEntity
|
|
|
|
{
|
2016-08-14 21:11:44 +00:00
|
|
|
zeus::CTransform x34_xf;
|
2018-01-06 06:50:42 +00:00
|
|
|
rstl::reserved_vector<u32, int(CPlayerState::EItemType::Max)> x64_itemCounts;
|
2016-08-14 21:11:44 +00:00
|
|
|
union
|
|
|
|
{
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
bool x10c_24_firstSpawn : 1;
|
2017-01-07 01:58:05 +00:00
|
|
|
bool x10c_25_morphed : 1;
|
2016-08-14 21:11:44 +00:00
|
|
|
};
|
|
|
|
u8 _dummy = 0;
|
|
|
|
};
|
2016-04-27 00:21:08 +00:00
|
|
|
public:
|
2018-01-06 06:50:42 +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,
|
2016-04-27 00:21:08 +00:00
|
|
|
bool, bool, bool);
|
2016-08-14 21:11:44 +00:00
|
|
|
|
2017-01-15 03:07:01 +00:00
|
|
|
void Accept(IVisitor& visitor);
|
2017-01-07 01:58:05 +00:00
|
|
|
void AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId objId, CStateManager &stateMgr);
|
2016-08-14 21:11:44 +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
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __CSCRIPTSPAWNPOINT_HPP__
|