mirror of
https://github.com/zeldaret/oot
synced 2026-08-03 08:53:08 -04:00
0432011bd9
* Updated config file * Added missing files * Temporarily removed asm_processor changes. * git subrepo pull --force tools/ZAPD subrepo: subdir: "tools/ZAPD" merged: "96ffc1e62" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "96ffc1e62" git-subrepo: version: "0.4.3" origin: "???" commit: "???" * git subrepo pull --force tools/ZAPD subrepo: subdir: "tools/ZAPD" merged: "179af7d11" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "179af7d11" git-subrepo: version: "0.4.3" origin: "???" commit: "???" * Cleanup and fixes. * git subrepo pull --force tools/ZAPD subrepo: subdir: "tools/ZAPD" merged: "50ad2fe78" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "50ad2fe78" git-subrepo: version: "0.4.3" origin: "???" commit: "???" * Makefile fix * git subrepo pull --force tools/ZAPD subrepo: subdir: "tools/ZAPD" merged: "b9120803e" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "b9120803e" git-subrepo: version: "0.4.3" origin: "???" commit: "???" Co-authored-by: Jack Walker <7463599+Jack-Walker@users.noreply.github.com>
32 lines
933 B
C++
32 lines
933 B
C++
#include "SetSkyboxSettings.h"
|
|
#include "../../Globals.h"
|
|
#include "../../StringHelper.h"
|
|
|
|
using namespace std;
|
|
|
|
SetSkyboxSettings::SetSkyboxSettings(ZRoom* nZRoom, std::vector<uint8_t> rawData, uint32_t rawDataIndex)
|
|
: ZRoomCommand(nZRoom, rawData, rawDataIndex)
|
|
{
|
|
unk1 = rawData[rawDataIndex + 0x01];
|
|
skyboxNumber = rawData[rawDataIndex + 0x04];
|
|
cloudsType = rawData[rawDataIndex + 0x05];
|
|
lightingSettingsControl = rawData[rawDataIndex + 0x06];
|
|
}
|
|
|
|
string SetSkyboxSettings::GenerateSourceCodePass1(string roomName, uint32_t baseAddress)
|
|
{
|
|
return StringHelper::Sprintf(
|
|
"%s 0x%02X, 0x00, 0x00, 0x%02X, 0x%02X, 0x%02X",
|
|
ZRoomCommand::GenerateSourceCodePass1(roomName, baseAddress).c_str(), unk1, skyboxNumber,
|
|
cloudsType, lightingSettingsControl);
|
|
}
|
|
|
|
string SetSkyboxSettings::GetCommandCName()
|
|
{
|
|
return "SCmdSkyboxSettings";
|
|
}
|
|
|
|
RoomCommand SetSkyboxSettings::GetRoomCommand()
|
|
{
|
|
return RoomCommand::SetSkyboxSettings;
|
|
} |