simplify method binds

main
Nathan Franke 3 years ago
parent 80e4ad6484
commit 68ab3ef05e
No known key found for this signature in database
GPG Key ID: 082B90CF10A5B648

@ -7,7 +7,7 @@ using namespace godot;
void MyNode::_bind_methods() void MyNode::_bind_methods()
{ {
ClassDB::bind_method(D_METHOD("hello_node"), &MyNode::hello_node); ClassDB::bind_method("hello_node", &MyNode::hello_node);
} }
MyNode::MyNode() MyNode::MyNode()

@ -9,7 +9,7 @@ MySingleton *MySingleton::singleton = nullptr;
void MySingleton::_bind_methods() void MySingleton::_bind_methods()
{ {
ClassDB::bind_method(D_METHOD("hello_singleton"), &MySingleton::hello_singleton); ClassDB::bind_method("hello_singleton", &MySingleton::hello_singleton);
} }
MySingleton *MySingleton::get_singleton() MySingleton *MySingleton::get_singleton()

Loading…
Cancel
Save