metaforce/Runtime/World/CScriptPickupGenerator.hpp

26 lines
871 B
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
#include <string_view>
#include "Runtime/World/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
public:
2018-12-08 05:30:43 +00:00
CScriptPickupGenerator(TUniqueId, std::string_view, const CEntityInfo&, const zeus::CVector3f&, float, bool);
void Accept(IVisitor& visitor) override;
void AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId sender, CStateManager& stateMgr) override;
};
2018-12-08 05:30:43 +00:00
} // namespace urde