aboutsummaryrefslogtreecommitdiff
path: root/core/script_language.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2015-12-05 14:18:22 -0300
committerJuan Linietsky2015-12-05 14:18:22 -0300
commit200b7bb87c3d8d8b2011b08ed4bd7b034ceb452f (patch)
treed9dc837018c4c2c7680491889316eedb9fe6b36c /core/script_language.cpp
parent35fa048af555e1f8411a2034706e9e452ce2f399 (diff)
downloadgodot-200b7bb87c3d8d8b2011b08ed4bd7b034ceb452f.tar.gz
godot-200b7bb87c3d8d8b2011b08ed4bd7b034ceb452f.tar.zst
godot-200b7bb87c3d8d8b2011b08ed4bd7b034ceb452f.zip
Diffstat (limited to 'core/script_language.cpp')
-rw-r--r--core/script_language.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/core/script_language.cpp b/core/script_language.cpp
index 35c50b102..b7a0f579f 100644
--- a/core/script_language.cpp
+++ b/core/script_language.cpp
@@ -267,6 +267,20 @@ void PlaceHolderScriptInstance::get_property_list(List<PropertyInfo> *p_properti
}
}
+Variant::Type PlaceHolderScriptInstance::get_property_type(const StringName& p_name,bool *r_is_valid) const {
+
+ if (values.has(p_name)) {
+ if (r_is_valid)
+ *r_is_valid=true;
+ return values[p_name].get_type();
+ }
+ if (r_is_valid)
+ *r_is_valid=false;
+
+ return Variant::NIL;
+}
+
+
void PlaceHolderScriptInstance::update(const List<PropertyInfo> &p_properties,const Map<StringName,Variant>& p_values) {