forked from WeaselGames/godot_luaAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathluaTuple.h
More file actions
43 lines (32 loc) · 699 Bytes
/
Copy pathluaTuple.h
File metadata and controls
43 lines (32 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef LUATUPLE_H
#define LUATUPLE_H
#ifndef LAPI_GDEXTENSION
#include "core/core_bind.h"
#include "core/object/ref_counted.h"
#else
#include <godot_cpp/classes/ref.hpp>
#include <godot_cpp/variant/callable.hpp>
#endif
#ifdef LAPI_GDEXTENSION
using namespace godot;
#endif
class LuaTuple : public RefCounted {
GDCLASS(LuaTuple, RefCounted);
protected:
static void _bind_methods();
public:
static Ref<LuaTuple> fromArray(Array elms);
void pushBack(Variant var);
void pushFront(Variant var);
void set(int i, Variant var);
void clear();
bool isEmpty();
int size();
Variant popBack();
Variant popFront();
Variant get(int i);
Array toArray();
private:
Array elements;
};
#endif