GDExtensionTemplate/gdextension/include/test.hpp
somebody_master 6d419069b2
Add test for memory alocation
Signed-off-by: somebody_master <somebody_master@somebodyserver.mooo.com>
2023-06-11 23:34:55 +02:00

40 lines
661 B
C++

#ifndef TEST_HPP
#define TEST_HPP
#include <godot_cpp/classes/mesh_instance3d.hpp>
#include <godot_cpp/classes/node3d.hpp>
#include <godot_cpp/classes/texture2d.hpp>
using namespace godot;
class Test : public Node3D {
GDCLASS(Test, Node3D);
protected:
static void _bind_methods();
private:
int i_value = 0;
float f_value = 0.0;
String s_value = "Hello";
Ref<Texture2D> tex_value;
public:
int get_i_value();
void set_i_value(int input);
float get_f_value();
void set_f_value(float input);
String get_s_value();
void set_s_value(String s);
Ref<Texture2D> get_tex_value();
void set_tex_value(Ref<Texture2D> tex);
void start();
};
#endif