Refactor some object type checking code with cast_to
Less stringly typed logic, and less String allocations and comparisons.
This commit is contained in:
parent
0154ce2c8d
commit
317cd0b19a
29 changed files with 140 additions and 171 deletions
|
|
@ -37,9 +37,9 @@ class PackedSceneEditorTranslationParserPlugin : public EditorTranslationParserP
|
|||
GDCLASS(PackedSceneEditorTranslationParserPlugin, EditorTranslationParserPlugin);
|
||||
|
||||
// Scene Node's properties that contain translation strings.
|
||||
Set<StringName> lookup_properties;
|
||||
Set<String> lookup_properties;
|
||||
// Properties from specific Nodes that should be ignored.
|
||||
Map<StringName, Vector<StringName>> exception_list;
|
||||
Map<String, Vector<String>> exception_list;
|
||||
|
||||
public:
|
||||
virtual Error parse_file(const String &p_path, Vector<String> *r_ids, Vector<Vector<String>> *r_ids_ctx_plural) override;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue