metaforce/Runtime/Character/CInt32POINode.cpp

23 lines
932 B
C++
Raw Normal View History

#include "Runtime/Character/CInt32POINode.hpp"
#include "Runtime/Character/CAnimSourceReader.hpp"
2016-04-11 00:10:28 -07:00
2021-04-10 01:42:06 -07:00
namespace metaforce {
CInt32POINode::CInt32POINode()
: CInt32POINode(""sv, EPOIType::EmptyInt32, CCharAnimTime(), -1, false, 1.f, -1, 0, 0, "root"sv) {}
2021-06-07 12:29:18 -07: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 00:10:28 -07:00
CInt32POINode::CInt32POINode(CInputStream& in)
: CPOINode(in), x38_val(in.ReadLong()), x3c_locatorName(in.Get<std::string>()) {}
2016-04-11 00:10:28 -07:00
2018-12-07 21:30:43 -08:00
CInt32POINode CInt32POINode::CopyNodeMinusStartTime(const CInt32POINode& node, const CCharAnimTime& startTime) {
CInt32POINode ret = node;
ret.x1c_time -= startTime;
return ret;
2016-04-11 23:15:32 -07:00
}
2021-04-10 01:42:06 -07:00
} // namespace metaforce