22 #ifndef TITANIC_DIALOGUE_FILE_H 23 #define TITANIC_DIALOGUE_FILE_H 25 #include "titanic/support/simple_file.h" 26 #include "titanic/support/string.h" 39 uint _offset, _bytesRead, _size;
43 _bytesRead(0), _size(0), _entryPtr(
nullptr) {}
48 size_t size()
const {
return _active ? _size : 0; }
70 File *getFile() {
return &_file; }
76 return addToCache(index * 2);
83 return addToCache(index * 2 + 1);
DialogueResource * openWaveEntry(int index)
Definition: dialogue_file.h:82
DialogueResource * openTextEntry(int index)
Definition: dialogue_file.h:75
Definition: dialogue_file.h:37
Definition: simple_file.h:41
size_t size() const
Definition: dialogue_file.h:48
Definition: dialogue_file.h:51
Definition: dialogue_file.h:30