4 * Created on: Sep 29, 2012
10 #include "../loader/Interpreter.h"
11 #include "../loader/TypeDescription.h"
13 using loader::FieldDescription;
14 using loader::Interpreter;
15 using loader::TypeDescription;
26 void Tile::CreateTypeDescription() {
29 TypeDescription &td(TypeDescription::Create(TYPE_ID, "Tile"));
30 td.SetConstructor(&Construct);
31 td.SetSize(sizeof(Tile));
33 td.AddField("battlebg", FieldDescription(((char *)&t.battlebg) - ((char *)&t), Interpreter::IMAGE_ID).SetReferenced());
34 td.AddField("t", FieldDescription(((char *)&t.offset) - ((char *)&t), Interpreter::VECTOR_ID));
35 td.AddField("flags", FieldDescription(((char *)&t.flags) - ((char *)&t), Interpreter::NUMBER_ID));
39 void Tile::Construct(void *data) {