mirror of
https://github.com/godotengine/godot-cpp-template.git
synced 2026-01-06 22:10:00 +03:00
10 lines
282 B
C++
10 lines
282 B
C++
#include "example_class.h"
|
|
|
|
void ExampleClass::_bind_methods() {
|
|
godot::ClassDB::bind_method(D_METHOD("print_type", "variant"), &ExampleClass::print_type);
|
|
}
|
|
|
|
void ExampleClass::print_type(const Variant &p_variant) const {
|
|
print_line(vformat("Type: %d", p_variant.get_type()));
|
|
}
|