mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 08:23:29 +00:00
Use OrderedHashMap for enum_values
This commit is contained in:
parent
ed395c6b99
commit
b5b75cad43
2 changed files with 5 additions and 5 deletions
|
@ -3510,12 +3510,12 @@ bool GDScriptParser::export_annotations(const AnnotationNode *p_annotation, Node
|
|||
variable->export_info.hint = PROPERTY_HINT_ENUM;
|
||||
|
||||
String enum_hint_string;
|
||||
for (const Map<StringName, int>::Element *E = export_type.enum_values.front(); E; E = E->next()) {
|
||||
enum_hint_string += E->key().operator String().capitalize().xml_escape();
|
||||
for (OrderedHashMap<StringName, int>::Element E = export_type.enum_values.front(); E; E = E.next()) {
|
||||
enum_hint_string += E.key().operator String().capitalize().xml_escape();
|
||||
enum_hint_string += ":";
|
||||
enum_hint_string += String::num_int64(E->get()).xml_escape();
|
||||
enum_hint_string += String::num_int64(E.value()).xml_escape();
|
||||
|
||||
if (E->next()) {
|
||||
if (E.next()) {
|
||||
enum_hint_string += ",";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue