Add CScriptSpawnPoint

Former-commit-id: 6d086a09e7
This commit is contained in:
Henrique Gemignani Passos Lima
2022-10-17 22:19:07 +03:00
parent 33543d78fc
commit e3d6fb4111
8 changed files with 144 additions and 9 deletions

View File

@@ -0,0 +1,29 @@
#ifndef _CSCRIPTSPAWNPOINT
#define _CSCRIPTSPAWNPOINT
#include "MetroidPrime/CEntity.hpp"
#include "MetroidPrime/Player/CPlayerState.hpp"
#include "Kyoto/Math/CTransform4f.hpp"
class CScriptSpawnPoint : public CEntity {
CTransform4f x34_xf;
rstl::reserved_vector< int, int(CPlayerState::kIT_Max) > x64_itemCounts;
bool x10c_24_firstSpawn : 1;
bool x10c_25_morphed : 1;
public:
CScriptSpawnPoint(TUniqueId, const rstl::string& name, const CEntityInfo& info,
const CTransform4f& xf,
const rstl::reserved_vector< int, int(CPlayerState::kIT_Max) >& itemCounts,
bool, bool, bool);
~CScriptSpawnPoint();
const CTransform4f& GetTransform() const;
int GetPowerup(const CPlayerState::EItemType&) const;
void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager&);
void Accept(IVisitor&);
};
#endif // _CSCRIPTSPAWNPOINT