Add EnumTags for EventCommand and MoveCommand
MODIFY
generator/templates/rpg_header.tmpl
generator/templates/rpg_header.tmpl
@@ -32,12 +32,12 @@ namespace RPG {
{{ name }}_{{ field.0 }} = {{ field.1 }}{%- if not loop.last %},{% endif %}
{%- endfor %}
};
- static constexpr auto k{{ name }}Tags = makeEnumTags<{{name}}>(
+ {%- endif %}
+ static constexpr auto k{{ name }}Tags = makeEnumTags<{{name}}{%- if name == "Code" %}::Index{%- endif %}>(
{%- for field in enum %}
"{{ field.0 }}"{%- if not loop.last %},{% endif %}
{%- endfor %}
);
- {%- endif %}
{%- endfor %}
{% endif %}
{%- if struct_name is needs_ctor %}

Add EnumTags for EventCommand and MoveCommand