void Resources::CreateTypeDescription() {
Resources r;
- TypeDescription &td(TypeDescription::CreateOrGet("BattleResources"));
-
- td.SetSize(sizeof(Resources));
int animationId(TypeDescription::GetTypeId("Animation"));
int colorId(TypeDescription::GetTypeId("Color"));
int spriteId(TypeDescription::GetTypeId("Sprite"));
int stringId(TypeDescription::GetTypeId("String"));
+ TypeDescription &td(TypeDescription::CreateOrGet("BattleResources"));
+ td.SetSize(sizeof(Resources));
+
td.AddField("swapCursor", FieldDescription(((char *)&r.swapCursor) - ((char *)&r), spriteId, true));
td.AddField("moveIcons", FieldDescription(((char *)&r.moveIcons) - ((char *)&r), spriteId, true));
td.AddField("attackIcons", FieldDescription(((char *)&r.attackIcons) - ((char *)&r), spriteId, true));