mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 13:47:43 +00:00
Work on character animation
This commit is contained in:
@@ -7,27 +7,42 @@
|
||||
namespace urde
|
||||
{
|
||||
|
||||
enum class EPOIType : u16
|
||||
{
|
||||
Loop = 0,
|
||||
EmptyBool = 1,
|
||||
EmptyInt32 = 2,
|
||||
Particle = 5,
|
||||
UserEvent = 6,
|
||||
RandRate = 7,
|
||||
Sound = 8,
|
||||
};
|
||||
|
||||
class CPOINode
|
||||
{
|
||||
protected:
|
||||
u16 x4_ = 1;
|
||||
std::string x8_name;
|
||||
u16 x18_;
|
||||
EPOIType x18_type;
|
||||
CCharAnimTime x1c_time;
|
||||
u32 x24_index;
|
||||
bool x28_;
|
||||
float x2c_weight;
|
||||
u32 x30_;
|
||||
u32 x34_;
|
||||
u32 x30_charIdx = -1;
|
||||
u32 x34_flags;
|
||||
public:
|
||||
CPOINode(const std::string& name, u16, const CCharAnimTime& time, u32 index, bool, float weight, u32, u32);
|
||||
CPOINode(const std::string& name, EPOIType type, const CCharAnimTime& time,
|
||||
u32 index, bool, float weight, u32 charIdx, u32 flags);
|
||||
CPOINode(CInputStream& in);
|
||||
virtual ~CPOINode() = default;
|
||||
|
||||
const std::string& GetName() const {return x8_name;}
|
||||
const CCharAnimTime& GetTime() const {return x1c_time;}
|
||||
EPOIType GetPoiType() const { return x18_type; }
|
||||
u32 GetIndex() const {return x24_index;}
|
||||
float GetWeight() const { return x2c_weight; }
|
||||
u32 GetCharIdx() const { return x30_charIdx; }
|
||||
u32 GetFlags() const { return x34_flags; }
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user