mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 18:24:55 +00:00
Initial CAtomicBeta imps, needs variable names
This commit is contained in:
38
Runtime/Weapon/CElectricBeamProjectile.hpp
Normal file
38
Runtime/Weapon/CElectricBeamProjectile.hpp
Normal file
@@ -0,0 +1,38 @@
|
||||
#pragma once
|
||||
|
||||
#include "CBeamProjectile.hpp"
|
||||
|
||||
namespace urde {
|
||||
struct SElectricBeamInfo {
|
||||
TToken<CElectricDescription> x0_electricDescription;
|
||||
float x8_maxLength;
|
||||
float xc_radius;
|
||||
float x10_travelSpeed;
|
||||
CAssetId x14_particleId;
|
||||
float x18_;
|
||||
float x1c_;
|
||||
};
|
||||
class CElectricBeamProjectile : public CBeamProjectile {
|
||||
std::unique_ptr<CParticleElectric> x468_electric;
|
||||
TToken<CGenDescription> x46c_genDescription;
|
||||
std::unique_ptr<CElementGen> x478_elementGen;
|
||||
float x47c_;
|
||||
float x480_;
|
||||
float x484_ = 0.f;
|
||||
float x488_;
|
||||
bool x48c_ = false;
|
||||
|
||||
public:
|
||||
CElectricBeamProjectile(const TToken<CWeaponDescription>&, EWeaponType, const SElectricBeamInfo&,
|
||||
const zeus::CTransform&, EMaterialTypes, const CDamageInfo&, TUniqueId, TAreaId, TUniqueId,
|
||||
EProjectileAttrib);
|
||||
|
||||
void Accept(IVisitor&);
|
||||
void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager&);
|
||||
void PreRender(CStateManager&, const zeus::CFrustum&);
|
||||
void Touch(CActor&, CStateManager&){};
|
||||
void UpdateFx(const zeus::CTransform&, float, CStateManager&);
|
||||
void ResetBeam(CStateManager&, bool);
|
||||
void Fire(const zeus::CTransform&, CStateManager&, bool);
|
||||
};
|
||||
} // namespace urde
|
||||
Reference in New Issue
Block a user