2018-11-14 04:16:11 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "CActor.hpp"
|
|
|
|
#include "CDamageInfo.hpp"
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
2018-11-14 04:16:11 +00:00
|
|
|
class CElementGen;
|
2018-12-08 05:30:43 +00:00
|
|
|
class CFire : public CActor {
|
|
|
|
std::unique_ptr<CElementGen> xe8_;
|
|
|
|
TUniqueId xec_ownerId;
|
|
|
|
CDamageInfo xf0_damageInfo;
|
|
|
|
CDamageInfo x10c_damageInfo;
|
2019-06-12 02:05:17 +00:00
|
|
|
std::optional<zeus::CAABox> x128_;
|
2018-12-08 05:30:43 +00:00
|
|
|
float x144_;
|
|
|
|
bool x148_24_ : 1;
|
|
|
|
bool x148_25_ : 1;
|
|
|
|
bool x148_26_ : 1;
|
|
|
|
bool x148_27_ : 1;
|
|
|
|
bool x148_28_ : 1;
|
|
|
|
bool x148_29_ : 1;
|
|
|
|
float x14c_;
|
|
|
|
CAssetId x150_;
|
|
|
|
float x154_;
|
|
|
|
float x158_;
|
|
|
|
float x15c_ = 0.f;
|
|
|
|
|
2018-11-14 04:16:11 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00: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-14 04:16:11 +00:00
|
|
|
|
2019-08-09 12:45:18 +00:00
|
|
|
void Accept(IVisitor&) override;
|
|
|
|
void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager&) override;
|
|
|
|
void Think(float, CStateManager&) override;
|
|
|
|
std::optional<zeus::CAABox> GetTouchBounds() const override {
|
2018-12-08 05:30:43 +00:00
|
|
|
if (GetActive())
|
|
|
|
return x128_;
|
2018-11-14 04:16:11 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
return {};
|
|
|
|
}
|
2018-11-14 04:16:11 +00:00
|
|
|
|
2019-08-09 12:45:18 +00:00
|
|
|
void Touch(CActor&, CStateManager&) override;
|
|
|
|
void AddToRenderer(const zeus::CFrustum&, const CStateManager&) const override;
|
2018-11-14 04:16:11 +00:00
|
|
|
};
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|