2022-11-29 19:17:12 +02:00
|
|
|
#ifndef _CSCRIPTPICKUPGENERATOR
|
|
|
|
|
#define _CSCRIPTPICKUPGENERATOR
|
|
|
|
|
|
|
|
|
|
#include "MetroidPrime/CEntity.hpp"
|
|
|
|
|
|
|
|
|
|
class CScriptPickupGenerator : public CEntity {
|
|
|
|
|
public:
|
|
|
|
|
CScriptPickupGenerator(TUniqueId, const rstl::string&, const CEntityInfo&, const CVector3f&,
|
|
|
|
|
float, bool);
|
2022-11-30 22:15:15 +02:00
|
|
|
~CScriptPickupGenerator();
|
2022-11-29 19:17:12 +02:00
|
|
|
|
2023-02-06 12:01:01 -05:00
|
|
|
void Accept(IVisitor& visitor) override;
|
2022-11-29 19:17:12 +02:00
|
|
|
void AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId sender,
|
2023-02-06 12:01:01 -05:00
|
|
|
CStateManager& stateMgr) override;
|
2022-11-29 19:17:12 +02:00
|
|
|
|
2023-10-17 17:36:08 -04:00
|
|
|
// float GetNothingPossibility() const;
|
|
|
|
|
|
2022-11-29 19:17:12 +02:00
|
|
|
private:
|
|
|
|
|
CVector3f x34_position;
|
|
|
|
|
float x40_frequency;
|
|
|
|
|
float x44_delayTimer;
|
2023-10-17 17:36:08 -04:00
|
|
|
|
|
|
|
|
void ResetSpawnNothingCounter();
|
|
|
|
|
void GetTargets(CStateManager& mgr, TUniqueId sender, rstl::vector< TUniqueId >& idsOut) const;
|
|
|
|
|
float GetSpawnablePickups(CStateManager& mgr,
|
|
|
|
|
rstl::vector< rstl::pair< float, TEditorId > >& idsOut) const;
|
|
|
|
|
void SpawnPickup(CStateManager& mgr, TEditorId templateId, TUniqueId generatorId) const;
|
2022-11-29 19:17:12 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // _CSCRIPTPICKUPGENERATOR
|