Files

19 lines
778 B
C++
Raw Permalink Normal View History

2024-01-05 10:15:41 -06:00
#include "2s2h/resource/importer/scenecommand/SetSoundSettingsFactory.h"
#include "2s2h/resource/type/scenecommand/SetSoundSettings.h"
#include "spdlog/spdlog.h"
2024-03-26 21:26:31 -04:00
namespace SOH {
std::shared_ptr<Ship::IResource> SetSoundSettingsFactory::ReadResource(std::shared_ptr<Ship::ResourceInitData> initData,
2024-05-22 09:52:56 -04:00
std::shared_ptr<Ship::BinaryReader> reader) {
2024-03-26 21:26:31 -04:00
auto setSoundSettings = std::make_shared<SetSoundSettings>(initData);
2024-01-05 10:15:41 -06:00
ReadCommandId(setSoundSettings, reader);
2024-05-22 09:52:56 -04:00
2024-01-05 10:15:41 -06:00
setSoundSettings->settings.reverb = reader->ReadInt8();
setSoundSettings->settings.natureAmbienceId = reader->ReadInt8();
setSoundSettings->settings.seqId = reader->ReadInt8();
2024-03-26 21:26:31 -04:00
return setSoundSettings;
}
} // namespace SOH