git subrepo clone https://github.com/HarbourMasters/ZAPDTR.git
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: "???"
This commit is contained in:
30
ZAPDTR/ZAPD/ZRoom/Commands/SetTimeSettings.cpp
Normal file
30
ZAPDTR/ZAPD/ZRoom/Commands/SetTimeSettings.cpp
Normal file
@@ -0,0 +1,30 @@
|
||||
#include "SetTimeSettings.h"
|
||||
#include "Utils/BitConverter.h"
|
||||
#include "Utils/StringHelper.h"
|
||||
|
||||
SetTimeSettings::SetTimeSettings(ZFile* nParent) : ZRoomCommand(nParent)
|
||||
{
|
||||
}
|
||||
|
||||
void SetTimeSettings::ParseRawData()
|
||||
{
|
||||
ZRoomCommand::ParseRawData();
|
||||
hour = parent->GetRawData().at(rawDataIndex + 4);
|
||||
min = parent->GetRawData().at(rawDataIndex + 5);
|
||||
unk = parent->GetRawData().at(rawDataIndex + 6);
|
||||
}
|
||||
|
||||
std::string SetTimeSettings::GetBodySourceCode() const
|
||||
{
|
||||
return StringHelper::Sprintf("SCENE_CMD_TIME_SETTINGS(%i, %i, %i)", hour, min, unk);
|
||||
}
|
||||
|
||||
std::string SetTimeSettings::GetCommandCName() const
|
||||
{
|
||||
return "SCmdTimeSettings";
|
||||
}
|
||||
|
||||
RoomCommand SetTimeSettings::GetRoomCommand() const
|
||||
{
|
||||
return RoomCommand::SetTimeSettings;
|
||||
}
|
||||
Reference in New Issue
Block a user