mirror of
https://github.com/godotengine/godot.git
synced 2025-10-23 09:53:25 +00:00
[GDScript] Add static HashMap cleanup.
This commit is contained in:
parent
ec9302cecc
commit
ee973f5b90
5 changed files with 15 additions and 0 deletions
|
@ -94,6 +94,10 @@ Variant::Type GDScriptParser::get_builtin_type(const StringName &p_type) {
|
|||
return Variant::VARIANT_MAX;
|
||||
}
|
||||
|
||||
void GDScriptParser::cleanup() {
|
||||
builtin_types.clear();
|
||||
}
|
||||
|
||||
GDScriptFunctions::Function GDScriptParser::get_builtin_function(const StringName &p_name) {
|
||||
for (int i = 0; i < GDScriptFunctions::FUNC_MAX; i++) {
|
||||
if (p_name == GDScriptFunctions::get_func_name(GDScriptFunctions::Function(i))) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue