mirror of
https://github.com/zeldaret/oot
synced 2026-05-23 06:54:24 -04:00
515ebdce9d
* git subrepo pull --force tools/ZAPD subrepo: subdir: "tools/ZAPD" merged: "769f5702a" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "769f5702a" git-subrepo: version: "0.4.3" origin: "???" commit: "???" * Add `libpng` to readme * Remove `-ifp` since it doesn't exists anymore in ZAPD * Remove extra print I added * Add UNK_09 macro and other minor fixes * Simplify PNG rules * simplify gitignore * Update README.md Co-authored-by: Roman971 <32455037+Roman971@users.noreply.github.com> * Update dockerfile * basic instructions for cygwin and mac * git subrepo pull --force tools/ZAPD subrepo: subdir: "tools/ZAPD" merged: "86160be69" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "86160be69" git-subrepo: version: "0.4.3" origin: "???" commit: "???" * Change nanoseconds to seconds in extract_assets.py Co-authored-by: Roman971 <32455037+Roman971@users.noreply.github.com>
33 lines
836 B
C++
33 lines
836 B
C++
#include "SetSkyboxModifier.h"
|
|
|
|
#include "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;
|
|
}
|