Open Source Tomb Raider Engine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*!
  2. * \file include/loader/Loader.h
  3. * \brief Level file loader
  4. *
  5. * \author xythobuz
  6. */
  7. #ifndef _LOADER_LOADER_H_
  8. #define _LOADER_LOADER_H_
  9. #include <string>
  10. #include "utils/binary.h"
  11. class Loader {
  12. public:
  13. typedef enum {
  14. TR_UNKNOWN = 0,
  15. TR_1 = 1,
  16. TR_2 = 2,
  17. TR_3 = 3,
  18. TR_4 = 4,
  19. TR_5 = 5
  20. } LoaderVersion;
  21. static LoaderVersion checkFile(std::string f);
  22. static Loader *createLoader(std::string f);
  23. virtual ~Loader();
  24. virtual int load(std::string f) = 0;
  25. protected:
  26. BinaryFile file;
  27. };
  28. #endif