mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-23 01:42:19 -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: "???"
35 lines
832 B
C++
35 lines
832 B
C++
#include "SetSpecialObjects.h"
|
|
|
|
#include "Utils/BitConverter.h"
|
|
#include "Utils/StringHelper.h"
|
|
#include "ZRoom/ZNames.h"
|
|
|
|
SetSpecialObjects::SetSpecialObjects(ZFile* nParent) : ZRoomCommand(nParent)
|
|
{
|
|
}
|
|
|
|
void SetSpecialObjects::ParseRawData()
|
|
{
|
|
ZRoomCommand::ParseRawData();
|
|
elfMessage = cmdArg1;
|
|
globalObject = BitConverter::ToUInt16BE(parent->GetRawData(), rawDataIndex + 0x06);
|
|
}
|
|
|
|
std::string SetSpecialObjects::GetBodySourceCode() const
|
|
{
|
|
std::string objectName = ZNames::GetObjectName(globalObject);
|
|
|
|
return StringHelper::Sprintf("SCENE_CMD_SPECIAL_FILES(0x%02X, %s)", elfMessage,
|
|
objectName.c_str());
|
|
}
|
|
|
|
std::string SetSpecialObjects::GetCommandCName() const
|
|
{
|
|
return "SCmdSpecialFiles";
|
|
}
|
|
|
|
RoomCommand SetSpecialObjects::GetRoomCommand() const
|
|
{
|
|
return RoomCommand::SetSpecialObjects;
|
|
}
|