metaforce/Runtime/Character/CPrimitive.hpp

24 lines
488 B
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
2016-04-10 21:22:59 +00:00
2016-04-11 03:59:54 +00:00
#include "IOStreams.hpp"
2016-04-11 07:10:28 +00:00
#include "RetroTypes.hpp"
2016-04-11 03:59:54 +00:00
2016-04-10 21:22:59 +00:00
namespace urde
{
class CPrimitive
{
2017-08-13 05:26:14 +00:00
CAssetId x0_animId;
2016-04-11 03:59:54 +00:00
u32 x4_animIdx;
std::string x8_animName;
public:
CPrimitive(CInputStream& in);
2017-08-13 05:26:14 +00:00
CAssetId GetAnimResId() const { return x0_animId; }
2016-08-27 04:54:53 +00:00
u32 GetAnimDbIdx() const { return x4_animIdx; }
2017-11-13 06:19:18 +00:00
std::string_view GetName() const { return x8_animName; }
2016-08-27 21:16:44 +00:00
bool operator<(const CPrimitive& other) const { return x8_animName < other.x8_animName; }
2016-04-10 21:22:59 +00:00
};
}