diff options
author | Thomas Herzog <thomas.herzog@mail.com> | 2018-03-07 11:43:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-07 11:43:12 +0100 |
commit | 779568c67c18ab190ba1950c517c279b7d12bf7a (patch) | |
tree | bf81251f857f586829550c047b070aef7d955f07 /include/core/Array.hpp | |
parent | 2343a8a54c13c2ccc617ed6716419dd568bb997f (diff) | |
parent | 85e73de2e0a19160b67430162bd7ec7c3c672b89 (diff) | |
download | redot-cpp-779568c67c18ab190ba1950c517c279b7d12bf7a.tar.gz |
Merge pull request #108 from danielytics/variadic-functions
Adds variadic template functions for register_signal and emit_signal
Diffstat (limited to 'include/core/Array.hpp')
-rw-r--r-- | include/core/Array.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/core/Array.hpp b/include/core/Array.hpp index 2320568..ead3ba3 100644 --- a/include/core/Array.hpp +++ b/include/core/Array.hpp @@ -3,6 +3,7 @@ #include <gdnative/array.h> +#include "Defs.hpp" #include "String.hpp" namespace godot { @@ -39,6 +40,11 @@ public: Array(const PoolColorArray& a); + template <class... Args> + static Array make(Args... args) { + return helpers::append_all(Array(), args...); + } + Variant& operator [](const int idx); Variant operator [](const int idx) const; |