2018-10-06 20:42:33 -07:00
|
|
|
#pragma once
|
2016-04-10 14:22:59 -07:00
|
|
|
|
2019-09-27 19:53:03 -07:00
|
|
|
#include <string>
|
|
|
|
|
2022-02-19 05:04:45 -08:00
|
|
|
#include "Runtime/Streams/IOStreams.hpp"
|
2019-09-27 19:53:03 -07:00
|
|
|
#include "Runtime/RetroTypes.hpp"
|
|
|
|
#include "Runtime/Character/CParticleData.hpp"
|
2016-04-10 14:22:59 -07:00
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
namespace metaforce {
|
2018-12-07 21:30:43 -08:00
|
|
|
|
|
|
|
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 14:22:59 -07:00
|
|
|
|
|
|
|
public:
|
2020-03-30 20:52:22 -07:00
|
|
|
explicit CEffectComponent(CInputStream& in);
|
2016-05-03 01:27:28 -07:00
|
|
|
|
2018-12-07 21:30:43 -08: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 14:22:59 -07:00
|
|
|
};
|
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
} // namespace metaforce
|