You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
357 B
C++
25 lines
357 B
C++
|
4 years ago
|
#include "my_node.hpp"
|
||
|
|
|
||
|
|
#include <godot_cpp/core/class_db.hpp>
|
||
|
|
#include <godot_cpp/variant/utility_functions.hpp>
|
||
|
|
|
||
|
|
using namespace godot;
|
||
|
|
|
||
|
|
void MyNode::_bind_methods()
|
||
|
|
{
|
||
|
|
ClassDB::bind_method(D_METHOD("hello_node"), &MyNode::hello_node);
|
||
|
|
}
|
||
|
|
|
||
|
|
MyNode::MyNode()
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
MyNode::~MyNode()
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
void MyNode::hello_node()
|
||
|
|
{
|
||
|
|
UtilityFunctions::print("Hello Node!");
|
||
|
|
}
|