metaforce/Runtime/Character/CPOINode.cpp

32 lines
660 B
C++
Raw Normal View History

2016-04-11 07:10:28 +00:00
#include "CPOINode.hpp"
namespace urde
{
2016-08-21 20:39:18 +00:00
CPOINode::CPOINode(const std::string& name, EPOIType type, 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),
2016-08-21 20:39:18 +00:00
x18_type(type),
2016-04-11 07:10:28 +00:00
x1c_time(time),
x24_index(index),
x28_(c),
2016-04-28 04:52:41 +00:00
x2c_weight(weight),
2016-08-21 20:39:18 +00:00
x30_charIdx(e),
x34_flags(f)
2016-04-11 07:10:28 +00:00
{}
CPOINode::CPOINode(CInputStream& in)
: x4_(in.readUint16Big()),
x8_name(in.readString()),
2016-08-21 20:39:18 +00:00
x18_type(EPOIType(in.readUint16Big())),
2016-04-11 07:10:28 +00:00
x1c_time(in),
x24_index(in.readUint32Big()),
x28_(in.readBool()),
2016-04-28 04:52:41 +00:00
x2c_weight(in.readFloatBig()),
2016-08-21 20:39:18 +00:00
x30_charIdx(in.readUint32Big()),
x34_flags(in.readUint32Big())
2016-04-11 07:10:28 +00:00
{}
}