mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-12-11 02:32:18 -05:00
28 lines
575 B
C++
28 lines
575 B
C++
|
#include "SetEchoSettings.h"
|
||
|
#include "Utils/StringHelper.h"
|
||
|
|
||
|
SetEchoSettings::SetEchoSettings(ZFile* nParent) : ZRoomCommand(nParent)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
void SetEchoSettings::ParseRawData()
|
||
|
{
|
||
|
ZRoomCommand::ParseRawData();
|
||
|
echo = parent->GetRawData().at(rawDataIndex + 0x07);
|
||
|
}
|
||
|
|
||
|
std::string SetEchoSettings::GetBodySourceCode() const
|
||
|
{
|
||
|
return StringHelper::Sprintf("SCENE_CMD_ECHO_SETTINGS(%i)", echo);
|
||
|
}
|
||
|
|
||
|
std::string SetEchoSettings::GetCommandCName() const
|
||
|
{
|
||
|
return "SCmdEchoSettings";
|
||
|
}
|
||
|
|
||
|
RoomCommand SetEchoSettings::GetRoomCommand() const
|
||
|
{
|
||
|
return RoomCommand::SetEchoSettings;
|
||
|
}
|