+
+void Gauge::CreateTypeDescription() {
+ Gauge g;
+ TypeDescription &td(TypeDescription::CreateOrGet("Gauge"));
+
+ td.SetSize(sizeof(Gauge));
+
+ int imageId(TypeDescription::GetTypeId("Image"));
+ int numberId(TypeDescription::GetTypeId("Number"));
+ int vectorId(TypeDescription::GetTypeId("Vector"));
+
+ td.AddField("image", FieldDescription(((char *)&g.surface) - ((char *)&g), imageId, true));
+ td.AddField("full", FieldDescription(((char *)&g.fullOffset) - ((char *)&g), vectorId, false));
+ td.AddField("empty", FieldDescription(((char *)&g.emptyOffset) - ((char *)&g), vectorId, false));
+ td.AddField("height", FieldDescription(((char *)&g.height) - ((char *)&g), numberId, false));
+ td.AddField("start", FieldDescription(((char *)&g.startWidth) - ((char *)&g), numberId, false));
+ td.AddField("repeat", FieldDescription(((char *)&g.repeatWidth) - ((char *)&g), numberId, false));
+ td.AddField("end", FieldDescription(((char *)&g.endWidth) - ((char *)&g), numberId, false));
+}
+