SubDirectory.h 801 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // Created by Иван_Архипов on 07.11.2017.
  3. //
  4. #ifndef LOTRO_DAT_PATCHER_SUBDIRECTORY_H
  5. #define LOTRO_DAT_PATCHER_SUBDIRECTORY_H
  6. extern "C++"
  7. {
  8. namespace LOTRO_DAT {
  9. class SubDirectory {
  10. public:
  11. struct SubDirectoryOffsetComparator {
  12. bool operator()(const SubDirectory &f, const SubDirectory &s) {
  13. return f.offset_ < s.offset_;
  14. }
  15. };
  16. SubDirectory() = default;
  17. SubDirectory(const SubDirectory &other) = default;
  18. SubDirectory &operator=(const SubDirectory &other) = default;
  19. SubDirectory(long long unknown, long long offset);
  20. public:
  21. long long offset();
  22. private:
  23. long long unknown_;
  24. long long offset_;
  25. };
  26. }
  27. };
  28. #endif //LOTRO_DAT_PATCHER_SUBDIRECTORY_H