summaryrefslogtreecommitdiffstats
path: root/core/variant.h
diff options
context:
space:
mode:
authorBernhard Liebl <Bernhard.Liebl@gmx.org>2017-12-15 16:43:27 +0100
committerBernhard Liebl <Bernhard.Liebl@gmx.org>2018-07-31 17:56:48 +0200
commitba974b8d1e245818d819791bd628e70ec3b92de3 (patch)
tree59a47903e6a0233d041a6938ea2a6cb5f9fe6a63 /core/variant.h
parent4e4702e3868af342b0e2964c7753fa4a3aa83af8 (diff)
downloadredot-engine-ba974b8d1e245818d819791bd628e70ec3b92de3.tar.gz
Allow some non-integer built-in constants in gdscript
Diffstat (limited to 'core/variant.h')
-rw-r--r--core/variant.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/variant.h b/core/variant.h
index 4b245d25e6..b48a0b3e73 100644
--- a/core/variant.h
+++ b/core/variant.h
@@ -398,9 +398,9 @@ public:
void static_assign(const Variant &p_variant);
static void get_constructor_list(Variant::Type p_type, List<MethodInfo> *p_list);
- static void get_numeric_constants_for_type(Variant::Type p_type, List<StringName> *p_constants);
- static bool has_numeric_constant(Variant::Type p_type, const StringName &p_value);
- static int get_numeric_constant_value(Variant::Type p_type, const StringName &p_value, bool *r_valid = NULL);
+ static void get_constants_for_type(Variant::Type p_type, List<StringName> *p_constants);
+ static bool has_constant(Variant::Type p_type, const StringName &p_value);
+ static Variant get_constant_value(Variant::Type p_type, const StringName &p_value, bool *r_valid = NULL);
typedef String (*ObjectDeConstruct)(const Variant &p_object, void *ud);
typedef void (*ObjectConstruct)(const String &p_text, void *ud, Variant &r_value);