diff options
| author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-05-04 14:27:08 +0300 |
|---|---|---|
| committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-05-06 10:17:51 +0300 |
| commit | 031a83b0ea6b147c9466529b123cb149a52ea395 (patch) | |
| tree | 1f42cd87c7c9173c31e6e3d59032636db5a67a7e /test/src/example.h | |
| parent | 24e4aeb2c6e91cb33996737ccee8e30b71cb6dfd (diff) | |
| download | redot-cpp-031a83b0ea6b147c9466529b123cb149a52ea395.tar.gz | |
[Method Bind] Add support for default argument values and static method binding. Sync headers.
Diffstat (limited to 'test/src/example.h')
| -rw-r--r-- | test/src/example.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/src/example.h b/test/src/example.h index fb331a5..35bc7c8 100644 --- a/test/src/example.h +++ b/test/src/example.h @@ -90,6 +90,7 @@ public: int varargs_func_nv(const Variant **args, GDNativeInt arg_count, GDNativeCallError &error); void varargs_func_void(const Variant **args, GDNativeInt arg_count, GDNativeCallError &error); void emit_custom_signal(const String &name, int value); + int def_args(int p_a = 100, int p_b = 200); Array test_array() const; Dictionary test_dictionary() const; @@ -98,6 +99,10 @@ public: void set_custom_position(const Vector2 &pos); Vector2 get_custom_position() const; + // Static method. + static int test_static(int p_a, int p_b); + static void test_static2(); + // Virtual function override (no need to bind manually). virtual bool _has_point(const Vector2 &point) const override; }; |
