mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-18 15:35:03 -05:00
32 lines
745 B
C++
32 lines
745 B
C++
|
#include "SetCameraSettings.h"
|
||
|
|
||
|
#include "Utils/BitConverter.h"
|
||
|
#include "Utils/StringHelper.h"
|
||
|
|
||
|
SetCameraSettings::SetCameraSettings(ZFile* nParent) : ZRoomCommand(nParent)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
void SetCameraSettings::ParseRawData()
|
||
|
{
|
||
|
ZRoomCommand::ParseRawData();
|
||
|
cameraMovement = cmdArg1;
|
||
|
mapHighlight = BitConverter::ToUInt32BE(parent->GetRawData(), rawDataIndex + 4);
|
||
|
}
|
||
|
|
||
|
std::string SetCameraSettings::GetBodySourceCode() const
|
||
|
{
|
||
|
return StringHelper::Sprintf("SCENE_CMD_MISC_SETTINGS(0x%02X, 0x%08X)", cameraMovement,
|
||
|
mapHighlight);
|
||
|
}
|
||
|
|
||
|
std::string SetCameraSettings::GetCommandCName() const
|
||
|
{
|
||
|
return "SCmdMiscSettings";
|
||
|
}
|
||
|
|
||
|
RoomCommand SetCameraSettings::GetRoomCommand() const
|
||
|
{
|
||
|
return RoomCommand::SetCameraSettings;
|
||
|
}
|