#define LOADER_INTERPRETER_H_
#include "fwd.h"
+#include "PagedAllocator.h"
#include "ParsedSource.h"
#include "TypeDescription.h"
#include "../battle/fwd.h"
};
public:
- explicit Interpreter(const ParsedSource &source) : source(source) { }
+ explicit Interpreter(const ParsedSource &source) : source(source), alloc(4096) { }
~Interpreter();
private:
Interpreter(const Interpreter &);
private:
const ParsedSource &source;
+ PagedAllocator alloc;
+
std::map<std::string, ParsedDefinition> parsedDefinitions;
std::vector<PostponedDefinition> postponedDefinitions;
std::map<std::string, SDL_Surface *> imageCache;