2018-11-13 20:16:11 -08:00
|
|
|
#pragma once
|
|
|
|
|
2019-09-22 14:52:05 -07:00
|
|
|
#include <optional>
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
#include "Runtime/World/CActor.hpp"
|
|
|
|
#include "Runtime/World/CDamageInfo.hpp"
|
2018-11-13 20:16:11 -08:00
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
namespace metaforce {
|
2018-11-13 20:16:11 -08:00
|
|
|
class CElementGen;
|
2018-12-07 21:30:43 -08:00
|
|
|
class CFire : public CActor {
|
|
|
|
std::unique_ptr<CElementGen> xe8_;
|
|
|
|
TUniqueId xec_ownerId;
|
|
|
|
CDamageInfo xf0_damageInfo;
|
|
|
|
CDamageInfo x10c_damageInfo;
|
2019-06-11 19:05:17 -07:00
|
|
|
std::optional<zeus::CAABox> x128_;
|
2018-12-07 21:30:43 -08:00
|
|
|
float x144_;
|
|
|
|
bool x148_24_ : 1;
|
|
|
|
bool x148_25_ : 1;
|
|
|
|
bool x148_26_ : 1;
|
|
|
|
bool x148_27_ : 1;
|
2020-04-19 21:57:50 -07:00
|
|
|
bool x148_28_ : 1 = false;
|
2018-12-07 21:30:43 -08:00
|
|
|
bool x148_29_ : 1;
|
|
|
|
float x14c_;
|
|
|
|
CAssetId x150_;
|
|
|
|
float x154_;
|
|
|
|
float x158_;
|
|
|
|
float x15c_ = 0.f;
|
|
|
|
|
2018-11-13 20:16:11 -08:00
|
|
|
public:
|
2021-05-26 07:00:57 -07:00
|
|
|
DEFINE_ENTITY
|
2018-12-07 21:30:43 -08:00
|
|
|
CFire(TToken<CGenDescription>, TUniqueId, TAreaId, bool, TUniqueId, const zeus::CTransform&, const CDamageInfo&,
|
|
|
|
const zeus::CAABox&, const zeus::CVector3f&, bool, CAssetId, bool, bool, bool, float, float, float, float);
|
2018-11-13 20:16:11 -08:00
|
|
|
|
2019-08-09 05:45:18 -07:00
|
|
|
void Accept(IVisitor&) override;
|
|
|
|
void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager&) override;
|
|
|
|
void Think(float, CStateManager&) override;
|
|
|
|
std::optional<zeus::CAABox> GetTouchBounds() const override {
|
2020-04-12 05:46:20 -07:00
|
|
|
if (GetActive()) {
|
2018-12-07 21:30:43 -08:00
|
|
|
return x128_;
|
2020-04-12 05:46:20 -07:00
|
|
|
}
|
2018-11-13 20:16:11 -08:00
|
|
|
|
2020-04-12 05:46:20 -07:00
|
|
|
return std::nullopt;
|
2018-12-07 21:30:43 -08:00
|
|
|
}
|
2018-11-13 20:16:11 -08:00
|
|
|
|
2019-08-09 05:45:18 -07:00
|
|
|
void Touch(CActor&, CStateManager&) override;
|
2020-04-05 04:54:02 -07:00
|
|
|
void AddToRenderer(const zeus::CFrustum&, CStateManager&) override;
|
2018-11-13 20:16:11 -08:00
|
|
|
};
|
2021-04-10 01:42:06 -07:00
|
|
|
} // namespace metaforce
|