metaforce/Runtime/Character/CEffectComponent.hpp

30 lines
801 B
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
2016-04-10 21:22:59 +00:00
#include "IOStreams.hpp"
2016-04-11 07:10:28 +00:00
#include "RetroTypes.hpp"
2017-06-03 06:03:07 +00:00
#include "CParticleData.hpp"
2016-04-10 21:22:59 +00:00
2018-12-08 05:30:43 +00:00
namespace urde {
class CEffectComponent {
std::string x0_name;
SObjectTag x10_tag;
std::string x18_boneName;
float x28_scale;
CParticleData::EParentedMode x2c_parentedMode;
u32 x30_flags;
static SObjectTag GetSObjectTagFromStream(CInputStream& in);
2016-04-10 21:22:59 +00:00
public:
2018-12-08 05:30:43 +00:00
CEffectComponent(CInputStream& in);
2016-05-03 08:27:28 +00:00
2018-12-08 05:30:43 +00:00
std::string_view GetComponentName() const { return x0_name; }
const SObjectTag& GetParticleTag() const { return x10_tag; }
std::string_view GetSegmentName() const { return x18_boneName; }
float GetScale() const { return x28_scale; }
CParticleData::EParentedMode GetParentedMode() const { return x2c_parentedMode; }
u32 GetFlags() const { return x30_flags; }
2016-04-10 21:22:59 +00:00
};
2018-12-08 05:30:43 +00:00
} // namespace urde