2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2017-11-12 05:14:57 +00:00
|
|
|
|
2019-09-23 19:00:23 +00:00
|
|
|
#include <string_view>
|
|
|
|
|
|
|
|
#include "Runtime/RetroTypes.hpp"
|
|
|
|
#include "Runtime/World/CActor.hpp"
|
|
|
|
|
|
|
|
#include <zeus/CColor.hpp>
|
2017-11-12 05:14:57 +00:00
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
namespace metaforce {
|
2018-12-08 05:30:43 +00:00
|
|
|
|
|
|
|
class CScriptVisorGoo : public CActor {
|
|
|
|
TToken<CGenDescription> xe8_particleDesc;
|
|
|
|
TToken<CElectricDescription> xf0_electricDesc;
|
|
|
|
u16 xf8_sfx;
|
|
|
|
CAssetId xfc_particleId;
|
|
|
|
CAssetId x100_electricId;
|
|
|
|
float x104_minDist;
|
|
|
|
float x108_maxDist;
|
|
|
|
float x10c_nearProb;
|
|
|
|
float x110_farProb;
|
|
|
|
zeus::CColor x114_color;
|
|
|
|
bool x118_24_angleTest : 1;
|
2017-11-12 05:14:57 +00:00
|
|
|
|
|
|
|
public:
|
2021-05-26 14:00:57 +00:00
|
|
|
DEFINE_ENTITY
|
2018-12-08 05:30:43 +00:00
|
|
|
CScriptVisorGoo(TUniqueId uid, std::string_view name, const CEntityInfo& info, const zeus::CTransform& xf,
|
|
|
|
CAssetId particle, CAssetId electric, float minDist, float maxDist, float nearProb, float farProb,
|
|
|
|
const zeus::CColor& color, int sfx, bool forceShow, bool active);
|
2017-11-12 05:14:57 +00:00
|
|
|
|
2019-08-09 12:45:18 +00:00
|
|
|
void Accept(IVisitor& visitor) override;
|
|
|
|
void Think(float, CStateManager& stateMgr) override;
|
|
|
|
void AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId objId, CStateManager& stateMgr) override;
|
2020-04-05 11:54:02 +00:00
|
|
|
void AddToRenderer(const zeus::CFrustum&, CStateManager&) override;
|
2020-04-09 17:28:20 +00:00
|
|
|
void Render(CStateManager&) override;
|
2019-08-09 12:45:18 +00:00
|
|
|
std::optional<zeus::CAABox> GetTouchBounds() const override;
|
|
|
|
void Touch(CActor&, CStateManager&) override;
|
2017-11-12 05:14:57 +00:00
|
|
|
};
|
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
} // namespace metaforce
|