summaryrefslogtreecommitdiffstats
path: root/core/variant.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-12-31 00:54:00 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-12-31 00:54:00 -0300
commitb60a3e72028349493effe26811725d420c7e125b (patch)
tree92f209cc128b6c62e8197e3aa4970c1313403b75 /core/variant.h
parent335c52ba03ecbccd0c9af8f9278b69da09a3e931 (diff)
downloadredot-engine-b60a3e72028349493effe26811725d420c7e125b.tar.gz
-Changed var2str and str2var in GDScript to use VariantWriter and VariantParser
-It is now finally possible to parse back a variant from text!
Diffstat (limited to 'core/variant.h')
-rw-r--r--core/variant.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/variant.h b/core/variant.h
index e75a2b1c92..198f493476 100644
--- a/core/variant.h
+++ b/core/variant.h
@@ -425,7 +425,7 @@ public:
typedef String (*ObjectDeConstruct)(const Variant& p_object,void *ud);
typedef void (*ObjectConstruct)(const String& p_text,void *ud,Variant& r_value);
- String get_construct_string(ObjectDeConstruct p_obj_deconstruct=NULL,void *p_deconstruct_ud=NULL) const;
+ String get_construct_string() const;
static void construct_from_string(const String& p_string,Variant& r_value,ObjectConstruct p_obj_construct=NULL,void *p_construct_ud=NULL);
void operator=(const Variant& p_variant); // only this is enough for all the other types