2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2017-02-03 23:32:15 +00:00
|
|
|
|
2019-09-28 02:53:03 +00:00
|
|
|
#include <string_view>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "Runtime/RetroTypes.hpp"
|
|
|
|
#include "Runtime/World/CDamageInfo.hpp"
|
|
|
|
#include "Runtime/World/CScriptActor.hpp"
|
2017-02-03 23:32:15 +00:00
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
namespace metaforce {
|
2017-05-18 10:58:15 +00:00
|
|
|
class CFlameThrower;
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace MP1 {
|
|
|
|
class CActorContraption : public CScriptActor {
|
|
|
|
/* AKA Why Zoid?!?!?!? */
|
|
|
|
std::vector<std::pair<TUniqueId, std::string>> x2e8_children;
|
|
|
|
TToken<CGenDescription> x300_flameThrowerGen;
|
|
|
|
CAssetId x308_flameFxId;
|
|
|
|
CDamageInfo x30c_dInfo;
|
|
|
|
|
2017-02-03 23:32:15 +00:00
|
|
|
public:
|
2021-05-26 14:00:57 +00:00
|
|
|
DEFINE_ENTITY
|
2020-03-25 06:46:20 +00:00
|
|
|
CActorContraption(TUniqueId uid, std::string_view name, const CEntityInfo& info, const zeus::CTransform& xf,
|
|
|
|
CModelData&& mData, const zeus::CAABox& aabox, const CMaterialList& matList, float mass,
|
|
|
|
float zMomentum, const CHealthInfo& hInfo, const CDamageVulnerability& dVuln,
|
|
|
|
const CActorParameters& aParams, CAssetId part, const CDamageInfo& dInfo, bool active);
|
2017-05-07 06:55:01 +00:00
|
|
|
|
2019-08-09 19:46:49 +00:00
|
|
|
void Accept(IVisitor& visitor) override;
|
2020-03-25 06:46:20 +00:00
|
|
|
void AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CStateManager& mgr) override;
|
|
|
|
void Think(float dt, CStateManager& mgr) override;
|
|
|
|
void DoUserAnimEvent(CStateManager& mgr, const CInt32POINode& node, EUserEventType evType, float dt) override;
|
|
|
|
CFlameThrower* CreateFlameThrower(std::string_view name, CStateManager& mgr);
|
2018-12-08 05:30:43 +00:00
|
|
|
void ResetFlameThrowers(CStateManager& mgr);
|
2017-02-03 23:32:15 +00:00
|
|
|
};
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace MP1
|
2021-04-10 08:42:06 +00:00
|
|
|
} // namespace metaforce
|