updated kinematic demo to C++ bindings changes

This commit is contained in:
karroffel
2018-01-11 17:57:18 +01:00
parent 414c6328c7
commit fcf0e95fc5
4 changed files with 123 additions and 111 deletions

View File

@@ -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]

View File

@@ -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]

View File

@@ -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