mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-16 12:54:40 +00:00
subrepo: subdir: "tools/ZAPD" merged: "4751db5c9" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "4751db5c9" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596"
30 lines
No EOL
820 B
C++
30 lines
No EOL
820 B
C++
#include "SetSoundSettings.h"
|
|
#include "../../StringHelper.h"
|
|
|
|
using namespace std;
|
|
|
|
SetSoundSettings::SetSoundSettings(ZRoom* nZRoom, std::vector<uint8_t> rawData, int rawDataIndex)
|
|
: ZRoomCommand(nZRoom, rawData, rawDataIndex)
|
|
{
|
|
reverb = rawData[rawDataIndex + 0x01];
|
|
nightTimeSFX = rawData[rawDataIndex + 0x06];
|
|
musicSequence = rawData[rawDataIndex + 0x07];
|
|
}
|
|
|
|
string SetSoundSettings::GenerateSourceCodePass1(string roomName, int baseAddress)
|
|
{
|
|
return StringHelper::Sprintf(
|
|
"%s 0x%02X, 0x00, 0x00, 0x00, 0x00, 0x%02X, 0x%02X",
|
|
ZRoomCommand::GenerateSourceCodePass1(roomName, baseAddress).c_str(), reverb, nightTimeSFX,
|
|
musicSequence);
|
|
}
|
|
|
|
string SetSoundSettings::GetCommandCName()
|
|
{
|
|
return "SCmdSoundSettings";
|
|
}
|
|
|
|
RoomCommand SetSoundSettings::GetRoomCommand()
|
|
{
|
|
return RoomCommand::SetSoundSettings;
|
|
} |