2024-01-05 10:15:41 -06:00
|
|
|
#include "2s2h/resource/importer/scenecommand/SetSkyboxSettingsFactory.h"
|
|
|
|
|
#include "2s2h/resource/type/scenecommand/SetSkyboxSettings.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>
|
|
|
|
|
SetSkyboxSettingsFactory::ReadResource(std::shared_ptr<Ship::ResourceInitData> initData,
|
|
|
|
|
std::shared_ptr<Ship::BinaryReader> reader) {
|
2024-03-26 21:26:31 -04:00
|
|
|
auto setSkyboxSettings = std::make_shared<SetSkyboxSettings>(initData);
|
2024-01-05 10:15:41 -06:00
|
|
|
|
|
|
|
|
ReadCommandId(setSkyboxSettings, reader);
|
2024-05-22 09:52:56 -04:00
|
|
|
|
2024-01-05 10:15:41 -06:00
|
|
|
setSkyboxSettings->settings.unk = reader->ReadInt8();
|
|
|
|
|
setSkyboxSettings->settings.skyboxId = reader->ReadInt8();
|
|
|
|
|
setSkyboxSettings->settings.weather = reader->ReadInt8();
|
|
|
|
|
setSkyboxSettings->settings.indoors = reader->ReadInt8();
|
|
|
|
|
|
2024-03-26 21:26:31 -04:00
|
|
|
return setSkyboxSettings;
|
|
|
|
|
}
|
|
|
|
|
} // namespace SOH
|