2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-04-11 07:10:28 +00:00
|
|
|
|
|
|
|
#include "IOStreams.hpp"
|
|
|
|
#include "RetroTypes.hpp"
|
2017-06-04 01:01:09 +00:00
|
|
|
#include "zeus/CVector3f.hpp"
|
2016-04-11 07:10:28 +00:00
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
|
|
|
class CParticleData
|
|
|
|
{
|
2016-04-11 23:35:37 +00:00
|
|
|
public:
|
|
|
|
enum class EParentedMode
|
|
|
|
{
|
|
|
|
Initial,
|
|
|
|
ContinuousEmitter,
|
|
|
|
ContinuousSystem
|
|
|
|
};
|
|
|
|
private:
|
2016-04-16 21:49:47 +00:00
|
|
|
u32 x0_duration = 0;
|
2016-04-11 07:10:28 +00:00
|
|
|
SObjectTag x4_particle;
|
2016-04-16 21:49:47 +00:00
|
|
|
std::string xc_boneName = "root";
|
|
|
|
float x1c_scale = 1.f;
|
|
|
|
EParentedMode x20_parentMode = EParentedMode::Initial;
|
2016-04-11 07:10:28 +00:00
|
|
|
public:
|
2016-04-16 21:49:47 +00:00
|
|
|
CParticleData() = default;
|
2016-04-11 07:10:28 +00:00
|
|
|
CParticleData(CInputStream& in);
|
2017-06-03 06:03:07 +00:00
|
|
|
u32 GetDuration() const { return x0_duration; }
|
|
|
|
const SObjectTag& GetTag() const { return x4_particle; }
|
2017-11-13 06:19:18 +00:00
|
|
|
std::string_view GetSegmentName() const { return xc_boneName; }
|
2017-06-03 06:03:07 +00:00
|
|
|
float GetScale() const { return x1c_scale; }
|
|
|
|
EParentedMode GetParentedMode() const { return x20_parentMode; }
|
|
|
|
};
|
|
|
|
|
|
|
|
class CAuxiliaryParticleData
|
|
|
|
{
|
2017-06-04 01:01:09 +00:00
|
|
|
u32 x0_duration = 0;
|
|
|
|
SObjectTag x4_particle;
|
|
|
|
zeus::CVector3f xc_translation;
|
|
|
|
float x18_scale = 1.f;
|
2017-06-03 06:03:07 +00:00
|
|
|
public:
|
2017-06-04 01:01:09 +00:00
|
|
|
u32 GetDuration() const { return x0_duration; }
|
|
|
|
const SObjectTag& GetTag() const { return x4_particle; }
|
|
|
|
const zeus::CVector3f& GetTranslation() const { return xc_translation; }
|
|
|
|
float GetScale() const { return x18_scale; }
|
2016-04-11 07:10:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|