2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-12-10 02:35:20 +00:00
|
|
|
|
|
|
|
#include "CEntity.hpp"
|
|
|
|
#include "zeus/CVector3f.hpp"
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
|
|
|
class CScriptPickupGenerator : public CEntity {
|
|
|
|
zeus::CVector3f x34_position;
|
|
|
|
float x40_frequency;
|
2019-02-18 05:47:46 +00:00
|
|
|
float x44_delayTimer = 0.f;
|
|
|
|
void ResetDelayTimer();
|
|
|
|
void GetGeneratorIds(CStateManager& mgr, TUniqueId sender, std::vector<TUniqueId>& idsOut) const;
|
|
|
|
float GetPickupTemplates(CStateManager& mgr, std::vector<std::pair<float, TEditorId>>& idsOut) const;
|
|
|
|
void GeneratePickup(CStateManager& mgr, TEditorId templateId, TUniqueId generatorId) const;
|
2018-12-08 05:30:43 +00:00
|
|
|
|
2016-12-10 02:35:20 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
CScriptPickupGenerator(TUniqueId, std::string_view, const CEntityInfo&, const zeus::CVector3f&, float, bool);
|
2016-12-10 02:35:20 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
void Accept(IVisitor& visitor);
|
2019-02-18 05:47:46 +00:00
|
|
|
void AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId sender, CStateManager& stateMgr);
|
2016-12-10 02:35:20 +00:00
|
|
|
};
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|