#pragma once #include "Runtime/IOStreams.hpp" #include "Runtime/RetroTypes.hpp" #include namespace urde { class CBeamInfo { u32 x0_; /* * 0x1: motion blur * 0x2: pulse effect * 0x4: one shot * 0x8: phazon damage */ s32 x4_beamAttributes; CAssetId x8_contactFxId; CAssetId xc_pulseFxId; CAssetId x10_textureId; CAssetId x14_glowTextureId; s32 x18_length; float x1c_radius; float x20_expansionSpeed; float x24_lifeTime; float x28_pulseSpeed; float x2c_shutdownTime; float x30_contactFxScale; float x34_pulseFxScale; float x38_travelSpeed; zeus::CColor x3c_innerColor; zeus::CColor x40_outerColor; public: CBeamInfo(CInputStream& in) : x0_(in.readUint32Big()) , x4_beamAttributes(in.readUint32Big()) , x8_contactFxId(in.readUint32Big()) , xc_pulseFxId(in.readUint32Big()) , x10_textureId(in.readUint32Big()) , x14_glowTextureId(in.readUint32Big()) , x18_length(in.readFloatBig()) , x1c_radius(in.readFloatBig()) , x20_expansionSpeed(in.readFloatBig()) , x24_lifeTime(in.readFloatBig()) , x28_pulseSpeed(in.readFloatBig()) , x2c_shutdownTime(in.readFloatBig()) , x30_contactFxScale(in.readFloatBig()) , x34_pulseFxScale(in.readFloatBig()) , x38_travelSpeed(in.readFloatBig()) , x3c_innerColor(zeus::CColor::ReadRGBABig(in)) , x40_outerColor(zeus::CColor::ReadRGBABig(in)) {} CBeamInfo(s32 beamAttributes, CAssetId contactFxId, CAssetId pulseFxId, CAssetId textureId, CAssetId glowTextureId, s32 length, float radius, float expansionSpeed, float lifeTime, float pulseSpeed, float shutdownTime, float contactFxScale, float pulseFxScale, const zeus::CColor& innerColor, const zeus::CColor& outerColor, float travelSpeed) : x4_beamAttributes(beamAttributes) , x8_contactFxId(contactFxId) , xc_pulseFxId(pulseFxId) , x10_textureId(textureId) , x14_glowTextureId(glowTextureId) , x18_length(length) , x1c_radius(radius) , x20_expansionSpeed(expansionSpeed) , x24_lifeTime(lifeTime) , x28_pulseSpeed(pulseSpeed) , x2c_shutdownTime(shutdownTime) , x30_contactFxScale(contactFxScale) , x34_pulseFxScale(pulseFxScale) , x38_travelSpeed(travelSpeed) , x3c_innerColor(innerColor) , x40_outerColor(outerColor) {} s32 GetBeamAttributes() const { return x4_beamAttributes; } CAssetId GetContactFxId() const { return x8_contactFxId; } CAssetId GetPulseFxId() const { return xc_pulseFxId; } CAssetId GetTextureId() const { return x10_textureId; } CAssetId GetGlowTextureId() const { return x14_glowTextureId; } s32 GetLength() const { return x18_length; } float GetRadius() const { return x1c_radius; } float GetExpansionSpeed() const { return x20_expansionSpeed; } float GetLifeTime() const { return x24_lifeTime; } float GetPulseSpeed() const { return x28_pulseSpeed; } float GetShutdownTime() const { return x2c_shutdownTime; } float GetContactFxScale() const { return x30_contactFxScale; } float GetPulseFxScale() const { return x34_pulseFxScale; } float GetTravelSpeed() const { return x38_travelSpeed; } const zeus::CColor& GetInnerColor() const { return x3c_innerColor; } const zeus::CColor& GetOuterColor() const { return x40_outerColor; } }; } // namespace urde