mirror of
https://github.com/godotengine/gdnative-demos.git
synced 2026-01-01 05:48:13 +03:00
updated kinematic demo to C++ bindings changes
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_resource type="GDNativeScript" load_steps=2 format=2]
|
||||
[gd_resource type="NativeScript" load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://Script/bin/libkinematic_char.gdnlib" type="GDNativeLibrary" id=1]
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_resource type="GDNativeScript" load_steps=2 format=2]
|
||||
[gd_resource type="NativeScript" load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://Script/bin/libkinematic_char.gdnlib" type="GDNativeLibrary" id=1]
|
||||
|
||||
|
||||
@@ -21,13 +21,18 @@
|
||||
|
||||
using namespace godot;
|
||||
|
||||
GDNATIVE_INIT(godot_gdnative_init_options *options) {
|
||||
extern "C" void godot_gdnative_init(godot_gdnative_init_options *options) {
|
||||
Godot::gdnative_init(options);
|
||||
}
|
||||
|
||||
GDNATIVE_TERMINATE(godot_gdnative_terminate_options *options) {
|
||||
extern "C" void godot_gdnative_terminate(godot_gdnative_terminate_options *options) {
|
||||
Godot::gdnative_terminate(options);
|
||||
}
|
||||
|
||||
NATIVESCRIPT_INIT() {
|
||||
extern "C" void godot_nativescript_init(void *handle) {
|
||||
|
||||
Godot::nativescript_init(handle);
|
||||
|
||||
register_class<GDPlayer>();
|
||||
register_class<ColWorld>();
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user