Files

23 lines
977 B
C++
Raw Permalink Normal View History

2024-01-05 10:15:41 -06:00
#include "2s2h/resource/importer/scenecommand/SetRoomBehaviorFactory.h"
#include "2s2h/resource/type/scenecommand/SetRoomBehavior.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>
SetRoomBehaviorMMFactory::ReadResource(std::shared_ptr<Ship::ResourceInitData> initData,
std::shared_ptr<Ship::BinaryReader> reader) {
2024-03-26 21:26:31 -04:00
auto setRoomBehavior = std::make_shared<SetRoomBehaviorMM>(initData);
2024-01-05 10:15:41 -06:00
ReadCommandId(setRoomBehavior, reader);
setRoomBehavior->roomBehavior.gameplayFlags = reader->ReadInt8();
setRoomBehavior->roomBehavior.currRoomUnk2 = reader->ReadInt8();
setRoomBehavior->roomBehavior.currRoomUnk5 = reader->ReadInt8();
setRoomBehavior->roomBehavior.msgCtxUnk = reader->ReadInt8();
setRoomBehavior->roomBehavior.enablePointLights = reader->ReadInt8();
setRoomBehavior->roomBehavior.kankyoContextUnkE2 = reader->ReadInt8();
2024-03-26 21:26:31 -04:00
return setRoomBehavior;
}
} // namespace SOH