Add an example class and some demo code to the project.

This commit is contained in:
Lukas Tenbrink
2025-04-14 18:55:50 +02:00
parent 7ef3bea224
commit 65ca91beec
6 changed files with 65 additions and 1 deletions

20
src/example_class.h Normal file
View File

@@ -0,0 +1,20 @@
#pragma once
#include "godot_cpp/classes/ref_counted.hpp"
#include "godot_cpp/classes/wrapped.hpp"
#include "godot_cpp/variant/variant.hpp"
using namespace godot;
class ExampleClass : public RefCounted {
GDCLASS(ExampleClass, RefCounted)
protected:
static void _bind_methods();
public:
ExampleClass() = default;
~ExampleClass() override = default;
void print_type(const Variant &p_variant) const;
};