From 4410b554e835ab7844c8eb78fd54fa3842d50f16 Mon Sep 17 00:00:00 2001 From: Anghelo Carvajal Date: Wed, 26 May 2021 20:04:02 -0400 Subject: Check XML resource attributes (#126) * register attibutes * fix array problems * cutscene problems * Set inner * fix merge * ups * Run format * small cleaning * A small blob cleanup * Simplify the logic a bit * ups * Fix merge problem * Fix merge issues * Fix merge issues * fix merge-produced type * Fix merge issues * run format and update easteregg * register ZPath attributes * dumb problems * How dumb can I be? * future proof change * empty commit * Check if Width and Height attributes of ZTexture has only decimal digits --- ZAPD/ZRoom/ZRoomCommand.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'ZAPD/ZRoom/ZRoomCommand.cpp') diff --git a/ZAPD/ZRoom/ZRoomCommand.cpp b/ZAPD/ZRoom/ZRoomCommand.cpp index e600ca4..6c45c32 100644 --- a/ZAPD/ZRoom/ZRoomCommand.cpp +++ b/ZAPD/ZRoom/ZRoomCommand.cpp @@ -40,9 +40,14 @@ std::string ZRoomCommand::GetCommandCName() const return "SCmdBase"; } -RoomCommand ZRoomCommand::GetRoomCommand() const +ZResourceType ZRoomCommand::GetResourceType() const { - return RoomCommand::Error; + return ZResourceType::RoomCommand; +} + +size_t ZRoomCommand::GetRawDataSize() const +{ + return 0x08; } std::string ZRoomCommand::GetCommandHex() const -- cgit v1.2.3