summaryrefslogtreecommitdiffstats
path: root/core/object.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-08-23 19:10:32 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-08-23 19:11:11 -0300
commit3d1c03187132677800b7f6bc609eeef8fe51f315 (patch)
treed92a3bf3730e4a443858ce9dd96ee4268693ee7a /core/object.cpp
parent21d53f29f392f4a33095de75c478da345a362555 (diff)
downloadredot-engine-3d1c03187132677800b7f6bc609eeef8fe51f315.tar.gz
Changed MethodBind API to request information from methods. It's much claner now.
Also changed PropertyInfo to include informatino about class names.
Diffstat (limited to 'core/object.cpp')
-rw-r--r--core/object.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/object.cpp b/core/object.cpp
index a43a9c85b1..928e9bb978 100644
--- a/core/object.cpp
+++ b/core/object.cpp
@@ -65,6 +65,7 @@ PropertyInfo::operator Dictionary() const {
Dictionary d;
d["name"] = name;
+ d["class_name"] = class_name;
d["type"] = type;
d["hint"] = hint;
d["hint_string"] = hint_string;
@@ -82,6 +83,9 @@ PropertyInfo PropertyInfo::from_dict(const Dictionary &p_dict) {
if (p_dict.has("name"))
pi.name = p_dict["name"];
+ if (p_dict.has("class_name"))
+ pi.class_name = p_dict["class_name"];
+
if (p_dict.has("hint"))
pi.hint = PropertyHint(int(p_dict["hint"]));