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:
32
ZAPDTR/ZAPD/ZRoom/Commands/SetWind.cpp
Normal file
32
ZAPDTR/ZAPD/ZRoom/Commands/SetWind.cpp
Normal file
@@ -0,0 +1,32 @@
|
||||
#include "SetWind.h"
|
||||
#include "Utils/StringHelper.h"
|
||||
|
||||
SetWind::SetWind(ZFile* nParent) : ZRoomCommand(nParent)
|
||||
{
|
||||
}
|
||||
|
||||
void SetWind::ParseRawData()
|
||||
{
|
||||
ZRoomCommand::ParseRawData();
|
||||
auto& parentRawData = parent->GetRawData();
|
||||
windWest = parentRawData.at(rawDataIndex + 0x04);
|
||||
windVertical = parentRawData.at(rawDataIndex + 0x05);
|
||||
windSouth = parentRawData.at(rawDataIndex + 0x06);
|
||||
clothFlappingStrength = parentRawData.at(rawDataIndex + 0x07);
|
||||
}
|
||||
|
||||
std::string SetWind::GetBodySourceCode() const
|
||||
{
|
||||
return StringHelper::Sprintf("SCENE_CMD_WIND_SETTINGS(%i, %i, %i, %i)", windWest, windVertical,
|
||||
windSouth, clothFlappingStrength);
|
||||
}
|
||||
|
||||
std::string SetWind::GetCommandCName() const
|
||||
{
|
||||
return "SCmdWindSettings";
|
||||
}
|
||||
|
||||
RoomCommand SetWind::GetRoomCommand() const
|
||||
{
|
||||
return RoomCommand::SetWind;
|
||||
}
|
||||
Reference in New Issue
Block a user