metaforce/Runtime/Character/CPrimitive.hpp

26 lines
569 B
C++
Raw Normal View History

2016-04-13 06:07:23 +00:00
#ifndef __URDE_CPRIMITIVE_HPP__
#define __URDE_CPRIMITIVE_HPP__
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
{
2016-04-14 21:42:47 +00:00
ResId x0_animId;
2016-04-11 03:59:54 +00:00
u32 x4_animIdx;
std::string x8_animName;
public:
CPrimitive(CInputStream& in);
2016-08-27 04:54:53 +00:00
ResId GetAnimResId() const { return x0_animId; }
u32 GetAnimDbIdx() const { return x4_animIdx; }
const std::string& 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
};
}
2016-04-13 06:07:23 +00:00
#endif // __URDE_CPRIMITIVE_HPP__