Athena IO Library
ALTTPFileReader.hpp
1 #ifndef ALTTP_FILE_READER_HPP
2 #define ALTTP_FILE_READER_HPP
3 
4 #include <string>
5 #include "athena/Types.hpp"
6 #include "athena/MemoryReader.hpp"
7 #include "athena/ALTTPQuest.hpp"
8 
9 namespace athena
10 {
11 class ALTTPFile;
12 
13 namespace io
14 {
23 {
24  MEMORYCOPYREADER_BASE();
25 
26 public:
32  ALTTPFileReader(atUint8*, atUint64);
33 
38  ALTTPFileReader(const std::string&);
39 
45 private:
46  ALTTPRoomFlags* readRoomFlags();
47  ALTTPOverworldEvent* readOverworldEvent();
48  ALTTPDungeonItemFlags readDungeonFlags();
49 };
50 
51 } // io
52 } // zelda
53 #endif // ALTTP_FILE_READER_HPP
A Link to the Past data container class class.
Definition: ALTTPFile.hpp:18
A Link to the Past save data reader class.
ALTTPFile * readFile()
Reads the SRAM data from the buffer.
ALTTPFileReader(atUint8 *, atUint64)
This constructor takes an existing buffer to read from.