mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-27 11:52:18 -05:00
33 lines
842 B
C++
33 lines
842 B
C++
|
#include "SetSkyboxModifier.h"
|
||
|
|
||
|
#include "Utils/StringHelper.h"
|
||
|
|
||
|
SetSkyboxModifier::SetSkyboxModifier(ZFile* nParent) : ZRoomCommand(nParent)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
void SetSkyboxModifier::ParseRawData()
|
||
|
{
|
||
|
ZRoomCommand::ParseRawData();
|
||
|
disableSky = parent->GetRawData().at(rawDataIndex + 0x04);
|
||
|
disableSunMoon = parent->GetRawData().at(rawDataIndex + 0x05);
|
||
|
}
|
||
|
|
||
|
std::string SetSkyboxModifier::GetBodySourceCode() const
|
||
|
{
|
||
|
std::string sky = StringHelper::BoolStr(disableSky);
|
||
|
std::string soonMoon = StringHelper::BoolStr(disableSunMoon);
|
||
|
return StringHelper::Sprintf("SCENE_CMD_SKYBOX_DISABLES(%s, %s)", sky.c_str(),
|
||
|
soonMoon.c_str());
|
||
|
}
|
||
|
|
||
|
std::string SetSkyboxModifier::GetCommandCName() const
|
||
|
{
|
||
|
return "SCmdSkyboxDisables";
|
||
|
}
|
||
|
|
||
|
RoomCommand SetSkyboxModifier::GetRoomCommand() const
|
||
|
{
|
||
|
return RoomCommand::SetSkyboxModifier;
|
||
|
}
|