Files
botw/src/KingSystem/Sound/sndInfoData.h
T
2021-04-26 14:17:48 +02:00

49 lines
1.7 KiB
C++

#pragma once
#include <heap/seadDisposer.h>
#include "KingSystem/Resource/resHandle.h"
#include "KingSystem/Utils/Byaml/Byaml.h"
namespace ksys::snd {
class InfoData {
SEAD_SINGLETON_DISPOSER(InfoData)
InfoData() = default;
virtual ~InfoData();
public:
void init(sead::Heap* heap);
al::ByamlIter getInfo(const sead::SafeString& key) const;
sead::SafeString getSoundSettingUserName(const sead::SafeString& key) const;
sead::SafeString getReactionSettingLandType(const al::ByamlIter& iter,
const sead::SafeString& key) const;
float getReactionSettingLandPitch(const al::ByamlIter& iter) const;
float getReactionSettingLandVolume(const al::ByamlIter& iter) const;
float getReactionSettingLandVelocityRatio(const al::ByamlIter& iter) const;
sead::SafeString getReactionSettingSlideType(const al::ByamlIter& iter) const;
sead::SafeString getReactionSettingSlideSlideType(const al::ByamlIter& iter) const;
float getReactionSettingSlidePitch(const al::ByamlIter& iter) const;
float getReactionSettingSlideVolume(const al::ByamlIter& iter) const;
float getReactionSettingSlideVelocityRatio(const al::ByamlIter& iter) const;
sead::SafeString getWeaponOwnerSettingOwnerType(const al::ByamlIter& iter) const;
sead::SafeString getEquipSoundSettingEquipMaterial(const al::ByamlIter& iter) const;
bool getMiscInDoorOcclusion(const al::ByamlIter& iter) const;
sead::SafeString getMiscPlantShakeType(const al::ByamlIter& iter) const;
private:
void loadSoundInfo(sead::Heap* heap);
al::ByamlIter* mRootIter{};
res::Handle mResHandle{};
};
} // namespace ksys::snd