mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 00:27:42 +00:00
New code style refactor
This commit is contained in:
@@ -1,35 +1,25 @@
|
||||
#include "CSoundPOINode.hpp"
|
||||
#include "CAnimSourceReader.hpp"
|
||||
|
||||
namespace urde
|
||||
{
|
||||
namespace urde {
|
||||
|
||||
CSoundPOINode::CSoundPOINode()
|
||||
: CPOINode("root", EPOIType::Sound, CCharAnimTime(), -1, false, 1.f, -1, 0),
|
||||
x38_sfxId(0),
|
||||
x3c_falloff(0.f),
|
||||
x40_maxDist(0.f)
|
||||
{}
|
||||
: CPOINode("root", EPOIType::Sound, CCharAnimTime(), -1, false, 1.f, -1, 0)
|
||||
, x38_sfxId(0)
|
||||
, x3c_falloff(0.f)
|
||||
, x40_maxDist(0.f) {}
|
||||
|
||||
CSoundPOINode::CSoundPOINode(CInputStream& in)
|
||||
: CPOINode(in),
|
||||
x38_sfxId(in.readUint32Big()),
|
||||
x3c_falloff(in.readFloatBig()),
|
||||
x40_maxDist(in.readFloatBig())
|
||||
{}
|
||||
: CPOINode(in), x38_sfxId(in.readUint32Big()), x3c_falloff(in.readFloatBig()), x40_maxDist(in.readFloatBig()) {}
|
||||
|
||||
CSoundPOINode::CSoundPOINode(std::string_view name, EPOIType a,
|
||||
const CCharAnimTime& time, u32 b, bool c,
|
||||
float d, u32 e, u32 f, u32 sfxId, float falloff, float maxDist)
|
||||
: CPOINode(name, a, time, b, c, d, e, f),
|
||||
x38_sfxId(sfxId), x3c_falloff(falloff), x40_maxDist(maxDist) {}
|
||||
CSoundPOINode::CSoundPOINode(std::string_view name, EPOIType a, const CCharAnimTime& time, u32 b, bool c, float d,
|
||||
u32 e, u32 f, u32 sfxId, float falloff, float maxDist)
|
||||
: CPOINode(name, a, time, b, c, d, e, f), x38_sfxId(sfxId), x3c_falloff(falloff), x40_maxDist(maxDist) {}
|
||||
|
||||
CSoundPOINode CSoundPOINode::CopyNodeMinusStartTime(const CSoundPOINode& node,
|
||||
const CCharAnimTime& startTime)
|
||||
{
|
||||
CSoundPOINode ret = node;
|
||||
ret.x1c_time -= startTime;
|
||||
return ret;
|
||||
CSoundPOINode CSoundPOINode::CopyNodeMinusStartTime(const CSoundPOINode& node, const CCharAnimTime& startTime) {
|
||||
CSoundPOINode ret = node;
|
||||
ret.x1c_time -= startTime;
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace urde
|
||||
|
||||
Reference in New Issue
Block a user