diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-12-02 14:15:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-02 14:15:38 +0100 |
commit | d1231be1c8f8f2c16fd1047adcd3c7f997a07c1f (patch) | |
tree | f7ceec96ce5251a3f7ed7ed33abcb163f29f0ad3 /modules/gdscript/gdscript_function.h | |
parent | 0019aa940e661fcc5e6b8f333ca291ba8726e6e4 (diff) | |
parent | 42bfa169960b59c5d9337e9f63862f5feae92d58 (diff) | |
download | redot-engine-d1231be1c8f8f2c16fd1047adcd3c7f997a07c1f.tar.gz |
Merge pull request #41095 from ThakeeNathees/GDScript-Documentation
GDScript(2.0) Documentation generation system
Diffstat (limited to 'modules/gdscript/gdscript_function.h')
-rw-r--r-- | modules/gdscript/gdscript_function.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_function.h b/modules/gdscript/gdscript_function.h index bb5cc1284d..7bc20672d5 100644 --- a/modules/gdscript/gdscript_function.h +++ b/modules/gdscript/gdscript_function.h @@ -379,6 +379,7 @@ private: #ifdef TOOLS_ENABLED Vector<StringName> arg_names; + Vector<Variant> default_arg_values; #endif List<StackDebug> stack_debug; @@ -458,6 +459,11 @@ public: ERR_FAIL_INDEX_V(p_idx, default_arguments.size(), Variant()); return default_arguments[p_idx]; } +#ifdef TOOLS_ENABLED + const Vector<Variant> &get_default_arg_values() const { + return default_arg_values; + } +#endif // TOOLS_ENABLED Variant call(GDScriptInstance *p_instance, const Variant **p_args, int p_argcount, Callable::CallError &r_err, CallState *p_state = nullptr); |