mirror of
https://github.com/godotengine/gdnative-demos.git
synced 2026-01-03 14:09:44 +03:00
29 lines
449 B
C++
29 lines
449 B
C++
#include <Godot.hpp>
|
|
|
|
#include <Reference.hpp>
|
|
#include <Sprite.hpp>
|
|
|
|
class Simple : public godot::Reference {
|
|
GODOT_CLASS(Simple, godot::Reference)
|
|
|
|
godot::String data;
|
|
public:
|
|
|
|
static void _register_methods();
|
|
|
|
void _init();
|
|
|
|
godot::String get_data() const;
|
|
};
|
|
|
|
class SimpleSprite : public godot::Sprite {
|
|
GODOT_CLASS(SimpleSprite, godot::Sprite)
|
|
|
|
public:
|
|
static void _register_methods();
|
|
|
|
void _init();
|
|
|
|
void _process(double delta);
|
|
};
|