2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-12-22 19:57:21 +00:00
|
|
|
|
2019-09-22 21:52:05 +00:00
|
|
|
#include "Runtime/IOStreams.hpp"
|
|
|
|
#include "Runtime/RetroTypes.hpp"
|
|
|
|
#include <zeus/CColor.hpp>
|
2016-12-22 19:57:21 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
2019-01-03 03:47:28 +00:00
|
|
|
class CBeamInfo {
|
2018-12-08 05:30:43 +00:00
|
|
|
u32 x0_;
|
2019-01-03 03:47:28 +00:00
|
|
|
/*
|
|
|
|
* 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;
|
2016-12-22 19:57:21 +00:00
|
|
|
|
2019-01-03 03:47:28 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
CBeamInfo(CInputStream& in)
|
|
|
|
: x0_(in.readUint32Big())
|
2019-01-03 03:47:28 +00:00
|
|
|
, 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)) {}
|
2018-11-17 05:05:57 +00:00
|
|
|
|
2019-01-03 03:47:28 +00:00
|
|
|
CBeamInfo(s32 beamAttributes, CAssetId contactFxId, CAssetId pulseFxId, CAssetId textureId, CAssetId glowTextureId,
|
2019-01-16 04:22:44 +00:00
|
|
|
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)
|
2019-01-03 03:47:28 +00:00
|
|
|
: x4_beamAttributes(beamAttributes)
|
|
|
|
, x8_contactFxId(contactFxId)
|
|
|
|
, xc_pulseFxId(pulseFxId)
|
|
|
|
, x10_textureId(textureId)
|
|
|
|
, x14_glowTextureId(glowTextureId)
|
|
|
|
, x18_length(length)
|
|
|
|
, x1c_radius(radius)
|
2019-01-16 04:22:44 +00:00
|
|
|
, x20_expansionSpeed(expansionSpeed)
|
|
|
|
, x24_lifeTime(lifeTime)
|
|
|
|
, x28_pulseSpeed(pulseSpeed)
|
|
|
|
, x2c_shutdownTime(shutdownTime)
|
2019-01-03 03:47:28 +00:00
|
|
|
, 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; }
|
2016-12-22 19:57:21 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|