mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-23 18:02:18 -05:00
5dda5762ba
subrepo: subdir: "ZAPDTR" merged: "a53a53ea4" upstream: origin: "https://github.com/HarbourMasters/ZAPDTR.git" branch: "master" commit: "a53a53ea4" git-subrepo: version: "0.4.1" origin: "???" commit: "???"
31 lines
744 B
C++
31 lines
744 B
C++
#include "SetSoundSettings.h"
|
|
#include "Utils/StringHelper.h"
|
|
|
|
SetSoundSettings::SetSoundSettings(ZFile* nParent) : ZRoomCommand(nParent)
|
|
{
|
|
}
|
|
|
|
void SetSoundSettings::ParseRawData()
|
|
{
|
|
ZRoomCommand::ParseRawData();
|
|
reverb = cmdArg1;
|
|
nightTimeSFX = parent->GetRawData().at(rawDataIndex + 0x06);
|
|
musicSequence = parent->GetRawData().at(rawDataIndex + 0x07);
|
|
}
|
|
|
|
std::string SetSoundSettings::GetBodySourceCode() const
|
|
{
|
|
return StringHelper::Sprintf("SCENE_CMD_SOUND_SETTINGS(%i, %i, %i)", reverb, nightTimeSFX,
|
|
musicSequence);
|
|
}
|
|
|
|
std::string SetSoundSettings::GetCommandCName() const
|
|
{
|
|
return "SCmdSoundSettings";
|
|
}
|
|
|
|
RoomCommand SetSoundSettings::GetRoomCommand() const
|
|
{
|
|
return RoomCommand::SetSoundSettings;
|
|
}
|