3 #include "../loader/Interpreter.h"
4 #include "../loader/TypeDescription.h"
6 using loader::FieldDescription;
7 using loader::Interpreter;
8 using loader::TypeDescription;
19 void Tile::CreateTypeDescription() {
22 TypeDescription &td(TypeDescription::Create(TYPE_ID, "Tile"));
23 td.SetConstructor(&Construct);
24 td.SetSize(sizeof(Tile));
26 td.AddField("battlebg", FieldDescription(((char *)&t.battlebg) - ((char *)&t), Interpreter::IMAGE_ID).SetReferenced());
27 td.AddField("t", FieldDescription(((char *)&t.offset) - ((char *)&t), Interpreter::VECTOR_ID));
28 td.AddField("flags", FieldDescription(((char *)&t.flags) - ((char *)&t), Interpreter::NUMBER_ID));
32 void Tile::Construct(void *data) {