metaforce/Runtime/Character/CPOINode.cpp

32 lines
607 B
C++
Raw Normal View History

2016-04-11 07:10:28 +00:00
#include "CPOINode.hpp"
namespace urde
{
CPOINode::CPOINode(const std::string& name, u16 a, const CCharAnimTime& time,
2016-04-28 04:52:41 +00:00
u32 index, bool c, float weight, u32 e, u32 f)
2016-04-11 07:10:28 +00:00
: x4_(1),
x8_name(name),
x18_(a),
x1c_time(time),
x24_index(index),
x28_(c),
2016-04-28 04:52:41 +00:00
x2c_weight(weight),
2016-04-11 07:10:28 +00:00
x30_(e),
x34_(f)
{}
CPOINode::CPOINode(CInputStream& in)
: x4_(in.readUint16Big()),
x8_name(in.readString()),
x18_(in.readUint16Big()),
x1c_time(in),
x24_index(in.readUint32Big()),
x28_(in.readBool()),
2016-04-28 04:52:41 +00:00
x2c_weight(in.readFloatBig()),
2016-04-11 07:10:28 +00:00
x30_(in.readUint32Big()),
x34_(in.readUint32Big())
{}
}