1
0

fix: finish enums migration

confirm project works as expected comparing before-refactor one.
This commit is contained in:
2026-01-27 17:23:58 +08:00
parent 0419dc3939
commit f601782370
4 changed files with 16 additions and 18 deletions

View File

@@ -1,8 +1,8 @@
{%- for benum in payload.iter_enums() %}
{%- if benum.get_enum_comment() is not none %}
{{ benum.get_enum_comment() | block_comment('/// ') }}
{%- endif %}
{% if benum.get_use_flags() %}[Flags]{%- endif %}
{%- endif %} {%- if benum.get_use_flags() %}
[Flags]{%- endif %}
public enum {{ benum.get_enum_name() }} : {% if benum.get_can_unsigned() -%} uint {%- else -%} int {%- endif %} {
{%- for entry in benum.iter_entries() %}
{{ entry.get_entry_name() }} {%- if entry.get_entry_value() is not none %} = {{ entry.get_entry_value() }} {%- endif %}, {%- if entry.get_entry_comment() is not none %} /// {{ entry.get_entry_comment() | line_comment }} {%- endif %}