diff options
| author | briaguya <70942617+briaguya-ai@users.noreply.github.com> | 2023-10-17 22:04:12 -0400 |
|---|---|---|
| committer | briaguya <70942617+briaguya-ai@users.noreply.github.com> | 2023-10-17 22:04:12 -0400 |
| commit | e9f4fc638ed904cc0dcdac24ea7708c9a220a702 (patch) | |
| tree | 114c3d432697e04831741e623ae2340f6239bbe9 /ZAPD/ZText.h | |
| parent | dcf56d93ecbd4db3bfd8a4832d7f991467964b98 (diff) | |
update to latest version used by SoH
Diffstat (limited to 'ZAPD/ZText.h')
| -rw-r--r-- | ZAPD/ZText.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/ZAPD/ZText.h b/ZAPD/ZText.h new file mode 100644 index 0000000..37b9c66 --- /dev/null +++ b/ZAPD/ZText.h @@ -0,0 +1,30 @@ +#pragma once + +#include "ZResource.h" +#include "tinyxml2.h" + +class MessageEntry +{ +public: + uint16_t id; + uint8_t textboxType; + uint8_t textboxYPos; + uint32_t segmentId; + uint32_t msgOffset; + std::string msg; +}; + +class ZText : public ZResource +{ +public: + std::vector<MessageEntry> messages; + + ZText(ZFile* nParent); + + void ParseRawData() override; + + std::string GetSourceTypeName() const override; + ZResourceType GetResourceType() const override; + + size_t GetRawDataSize() const override; +}; |
