diff options
Diffstat (limited to 'engines/dreamweb/structs.h')
-rw-r--r-- | engines/dreamweb/structs.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/engines/dreamweb/structs.h b/engines/dreamweb/structs.h index 4e58988595..ce675fc816 100644 --- a/engines/dreamweb/structs.h +++ b/engines/dreamweb/structs.h @@ -292,6 +292,23 @@ struct MapFlag { uint8 _type; }; +struct TextFile { + TextFile() : _text(0) { } + + uint16 _offsetsLE[66]; + char *_text; + + const char *getString(unsigned int i) const { + assert(i < 66); + return _text + READ_LE_UINT16(&_offsetsLE[i]); + } + void clear() { + delete[] _text; + _text = 0; + } +}; + + } // End of namespace DreamWeb #endif |