metaforce/Runtime/Character/CInt32POINode.cpp

23 lines
931 B
C++
Raw Normal View History

#include "Runtime/Character/CInt32POINode.hpp"
#include "Runtime/Character/CAnimSourceReader.hpp"
2016-04-11 07:10:28 +00:00
2021-04-10 08:42:06 +00:00
namespace metaforce {
CInt32POINode::CInt32POINode()
: CInt32POINode(""sv, EPOIType::EmptyInt32, CCharAnimTime(), -1, false, 1.f, -1, 0, 0, "root"sv) {}
2021-06-07 19:29:18 +00:00
CInt32POINode::CInt32POINode(std::string_view name, EPOIType type, const CCharAnimTime& time, s32 index, bool unique,
float weight, s32 charIndex, s32 flags, s32 val, std::string_view locator)
: CPOINode(name, type, time, index, unique, weight, charIndex, flags), x38_val(val), x3c_locatorName(locator) {}
2016-04-11 07:10:28 +00:00
CInt32POINode::CInt32POINode(CInputStream& in)
2016-04-28 04:52:41 +00:00
: CPOINode(in), x38_val(in.readUint32Big()), x3c_locatorName(in.readString()) {}
2016-04-11 07:10:28 +00:00
2018-12-08 05:30:43 +00:00
CInt32POINode CInt32POINode::CopyNodeMinusStartTime(const CInt32POINode& node, const CCharAnimTime& startTime) {
CInt32POINode ret = node;
ret.x1c_time -= startTime;
return ret;
2016-04-12 06:15:32 +00:00
}
2021-04-10 08:42:06 +00:00
} // namespace metaforce