#ifndef LOADER_INTERPRETER_H_
#define LOADER_INTERPRETER_H_
-#include "fwd.h"
#include "PagedAllocator.h"
#include "ParsedSource.h"
-#include "TypeDescription.h"
-#include "../battle/fwd.h"
-#include "../common/fwd.h"
#include "../common/Script.h"
-#include "../geometry/Vector.h"
-#include "../graphics/Color.h"
-#include "../graphics/ComplexAnimation.h"
-#include "../graphics/fwd.h"
#include <map>
#include <set>
int id;
};
struct PostponedDefinition {
- PostponedDefinition(int type, int id, std::ptrdiff_t offset, const char *identifier, int linkedType, bool inlined)
- : type(type), id(id), offset(offset), identifier(identifier), linkedType(linkedType), inlined(inlined) { }
- int type;
- int id;
- std::ptrdiff_t offset;
+ PostponedDefinition(
+ char *dest,
+ const char *identifier,
+ int type,
+ bool inlined,
+ bool aggregate)
+ : dest(dest)
+ , identifier(identifier)
+ , type(type)
+ , inlined(inlined)
+ , aggregate(aggregate) { }
+ char *dest;
const char *identifier;
- int linkedType;
+ int type;
bool inlined;
+ bool aggregate;
};
const std::set<std::string> &ExportedIdentifiers() const { return source.Exports(); }
SDL_Surface *GetImage(const std::string &);
bool CanLink(const Value &) const;
- void Postpone(int type, int id, std::ptrdiff_t offset, const std::string &identifier, int linkedType, bool inlined);
+ void Postpone(
+ char *dest,
+ const std::string &identifier,
+ int type,
+ bool inlined = true,
+ bool aggregate = false);
private:
const ParsedSource &source;
}
-#endif /* LOADER_INTERPRETER_H_ */
+#endif