int stringId(TypeDescription::GetTypeId("String"));
TypeDescription &td(TypeDescription::CreateOrGet("BattleResources"));
+ td.SetConstructor(&Construct);
td.SetSize(sizeof(Resources));
td.AddField("swapCursor", FieldDescription(((char *)&r.swapCursor) - ((char *)&r), spriteId, true));
td.AddField("heroesBgColor", FieldDescription(((char *)&r.heroesBgColor) - ((char *)&r), colorId, false));
}
+void Resources::Construct(void *data) {
+ new (data) Resources;
+}
+
}