-/*
- * PartyLayout.cpp
- *
- * Created on: Aug 5, 2012
- * Author: holy
- */
-
#include "PartyLayout.h"
+#include "../loader/Interpreter.h"
#include "../loader/TypeDescription.h"
-using geometry::Vector;
+using math::Vector;
using loader::FieldDescription;
+using loader::Interpreter;
using loader::TypeDescription;
using std::vector;
void PartyLayout::CreateTypeDescription() {
PartyLayout p;
- int vectorId(TypeDescription::GetTypeId("Vector"));
-
- TypeDescription &td(TypeDescription::CreateOrGet("PartyLayout"));
+ TypeDescription &td(TypeDescription::Create(TYPE_ID, "PartyLayout"));
td.SetDescription("Positions of party members");
td.SetConstructor(&Construct);
td.SetSize(sizeof(PartyLayout));
- td.AddField("positions", FieldDescription(((char *)&p.positions) - ((char *)&p), vectorId).SetReferenced().SetAggregate().SetDescription("the members' positions"));
+ td.AddField("positions", FieldDescription(((char *)&p.positions) - ((char *)&p), Interpreter::VECTOR_ID).SetReferenced().SetAggregate().SetDescription("the members' positions"));
}
void PartyLayout::Construct(void *data) {