mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-14 21:45:16 -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: "???"
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;
|
|
}
|