metaforce/Runtime/Character/CPrimitive.hpp

24 lines
552 B
C++
Raw Normal View History

2018-10-06 20:42:33 -07:00
#pragma once
2016-04-10 14:22:59 -07:00
#include <string>
#include "Runtime/Streams/IOStreams.hpp"
#include "Runtime/RetroTypes.hpp"
2016-04-10 20:59:54 -07:00
2021-04-10 01:42:06 -07:00
namespace metaforce {
2018-12-07 21:30:43 -08:00
class CPrimitive {
CAssetId x0_animId;
u32 x4_animIdx;
std::string x8_animName;
2016-04-10 14:22:59 -07:00
2016-04-10 20:59:54 -07:00
public:
explicit CPrimitive(CInputStream& in);
2018-12-07 21:30:43 -08:00
CAssetId GetAnimResId() const { return x0_animId; }
u32 GetAnimDbIdx() const { return x4_animIdx; }
std::string_view GetName() const { return x8_animName; }
bool operator<(const CPrimitive& other) const { return x8_animName < other.x8_animName; }
2016-04-10 14:22:59 -07:00
};
2021-04-10 01:42:06 -07:00
} // namespace metaforce