summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript.h
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2023-04-07 14:01:57 +0200
committerkobewi <kobewi4e@gmail.com>2023-08-28 15:18:48 +0200
commit67db4693ebdc972eae2395fecd39dc174045b980 (patch)
tree54bd2a4097fd2b744459e45f3f14a66895a46cb2 /modules/gdscript/gdscript.h
parent713bfaf5eac1eb8a770e5ee825db29de99f3d0f7 (diff)
downloadredot-engine-67db4693ebdc972eae2395fecd39dc174045b980.tar.gz
Expose _validate_property() for scripting
Diffstat (limited to 'modules/gdscript/gdscript.h')
-rw-r--r--modules/gdscript/gdscript.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript.h b/modules/gdscript/gdscript.h
index c41b1a0def..c6142dc10b 100644
--- a/modules/gdscript/gdscript.h
+++ b/modules/gdscript/gdscript.h
@@ -319,6 +319,7 @@ public:
virtual bool get(const StringName &p_name, Variant &r_ret) const;
virtual void get_property_list(List<PropertyInfo> *p_properties) const;
virtual Variant::Type get_property_type(const StringName &p_name, bool *r_is_valid = nullptr) const;
+ virtual void validate_property(PropertyInfo &p_property) const;
virtual bool property_can_revert(const StringName &p_name) const;
virtual bool property_get_revert(const StringName &p_name, Variant &r_ret) const;
@@ -466,6 +467,7 @@ public:
StringName _set;
StringName _get;
StringName _get_property_list;
+ StringName _validate_property;
StringName _property_can_revert;
StringName _property_get_revert;
StringName _script_source;