2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-13 15:11:22 +00:00
metaforce/Runtime/Character/CSoundPOINode.hpp
Lioncash 67f6666ea1 Runtime: Add more usages of explicit
Prevents error-prone implicit conversions where applicable.

This targets the regular RuntimeCommon target this time around.
2020-03-31 03:53:49 -04:00

27 lines
798 B
C++

#pragma once
#include "Runtime/Character/CCharAnimTime.hpp"
#include "Runtime/Character/CPOINode.hpp"
namespace urde {
class IAnimSourceInfo;
class CSoundPOINode : public CPOINode {
u32 x38_sfxId;
float x3c_falloff;
float x40_maxDist;
public:
explicit CSoundPOINode();
explicit CSoundPOINode(CInputStream& in);
explicit CSoundPOINode(std::string_view name, EPOIType type, const CCharAnimTime& time, u32 b, bool c, float d, u32 e,
u32 f, u32 sfxId, float falloff, float maxDist);
static CSoundPOINode CopyNodeMinusStartTime(const CSoundPOINode& node, const CCharAnimTime& startTime);
u32 GetSfxId() const { return x38_sfxId; }
float GetFalloff() const { return x3c_falloff; }
float GetMaxDist() const { return x40_maxDist; }
};
} // namespace urde