Files

17 lines
638 B
C++
Raw Permalink Normal View History

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