OpenRaider  0.1.4-dev
Open Source Tomb Raider Game Engine implementation
Loader.h
Go to the documentation of this file.
1 
8 #ifndef _LOADER_LOADER_H_
9 #define _LOADER_LOADER_H_
10 
11 #include <memory>
12 #include <string>
13 #include <cstdint>
14 
15 #include "utils/binary.h"
16 
17 class Loader {
18  public:
19  typedef enum {
21  TR_1 = 1,
22  TR_2 = 2,
23  TR_3 = 3,
24  TR_4 = 4,
25  TR_5 = 5
26  } LoaderVersion;
27 
28  static LoaderVersion checkFile(std::string f);
29  static std::unique_ptr<Loader> createLoader(std::string f);
30 
31  virtual int load(std::string f) = 0;
32 
33  protected:
35 };
36 
37 #endif
38 
static LoaderVersion checkFile(std::string f)
Definition: Loader.cpp:14
BinaryFile file
Definition: Loader.h:34
virtual int load(std::string f)=0
Binary file reading utilities.
static std::unique_ptr< Loader > createLoader(std::string f)
Definition: Loader.cpp:39
Definition: Loader.h:17
LoaderVersion
Definition: Loader.h:19