diff options
author | Nickolai Korshunov <n.a.korshunov@gmail.com> | 2018-04-25 11:40:49 +0300 |
---|---|---|
committer | Nickolai Korshunov <n.a.korshunov@gmail.com> | 2018-04-25 11:40:49 +0300 |
commit | ef37d8d76e45a8249f34e66dfcc80954fecd5981 (patch) | |
tree | 2c155a6f9107b21474e9f1adcb0d4b752bb2e7bc /include/core/Array.hpp | |
parent | 876715b610a52749e5cc7824122f892dd430ffab (diff) | |
parent | 68ba815bc5c9ffa9494511f9feb8ea36a95369d7 (diff) | |
download | redot-cpp-ef37d8d76e45a8249f34e66dfcc80954fecd5981.tar.gz |
Merge branch 'master' of https://github.com/GodotNativeTools/godot-cpp
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; |