1
0

fix: update BMapSharp virtools type.

- update BMapSharp virtools types.
- fix enum migration generation error.
This commit is contained in:
2026-02-06 10:21:23 +08:00
parent 8bc0792f1e
commit d2a9b18ede
3 changed files with 448 additions and 98 deletions

View File

@@ -5,7 +5,12 @@
[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 %}
{%- if entry.get_entry_comment() is not none %}
/// <summary>
/// {{ entry.get_entry_comment() | line_comment }}
/// </summary>
{%- endif %}
{{ entry.get_entry_name() }} {%- if entry.get_entry_value() is not none %} = {{ utils.to_cs_num_literal(entry.get_entry_value()) }} {%- endif %},
{%- endfor %}
};
{%- endfor %}