2023-03-08 22:46:49 +01:00
|
|
|
#ifndef TEST_HPP
|
|
|
|
#define TEST_HPP
|
2023-02-12 12:49:37 +01:00
|
|
|
|
2023-04-14 12:01:06 +02:00
|
|
|
#include <godot_cpp/classes/mesh_instance3d.hpp>
|
2023-02-12 12:49:37 +01:00
|
|
|
#include <godot_cpp/classes/node3d.hpp>
|
|
|
|
|
2023-04-14 12:01:06 +02:00
|
|
|
#include <godot_cpp/classes/texture2d.hpp>
|
|
|
|
|
2023-02-12 12:49:37 +01:00
|
|
|
using namespace godot;
|
|
|
|
|
|
|
|
class Test : public Node3D {
|
2023-02-12 14:04:31 +01:00
|
|
|
GDCLASS(Test, Node3D);
|
2023-02-12 12:49:37 +01:00
|
|
|
|
|
|
|
protected:
|
2023-02-16 21:57:27 +01:00
|
|
|
static void _bind_methods();
|
2023-04-14 12:01:06 +02:00
|
|
|
|
|
|
|
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);
|
2023-02-12 12:49:37 +01:00
|
|
|
};
|
2023-04-14 12:01:06 +02:00
|
|
|
|
2023-02-12 12:49:37 +01:00
|
|
|
#endif
|