TextSubfile.h 985 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // Created by Иван_Архипов on 24.11.2017.
  3. //
  4. #ifndef LOTRO_DAT_LIBRARY_TEXTSUBFILE_H
  5. #define LOTRO_DAT_LIBRARY_TEXTSUBFILE_H
  6. #include "../Subfile.h"
  7. namespace LOTRO_DAT {
  8. class TextSubfile : Subfile {
  9. TextSubfile();
  10. TextSubfile(DatFile *dat, long long fragments_count, long long unknown1, long long file_id, long long file_offset,
  11. long long file_size, long long timestamp, long long version, long long block_size) override;
  12. FILE_TYPE FileType() const override;
  13. std::string GetExtension() const override;
  14. bool PrepareAsBinary(BinaryData &data) override;
  15. bool PrepareAsText(std::string &text, std::string &args, std::string &args_order) override;
  16. BinaryData& MakeFromBinary(const BinaryData &data) override;
  17. BinaryData& MakeFromText(const std::string &text, const std::string &args, const std::string &args_order) override;
  18. };
  19. };
  20. #endif //LOTRO_DAT_LIBRARY_TEXTSUBFILE_H