Update README.md
parent
f8477b4195
commit
b8946ae829
17
README.md
17
README.md
|
@ -93,18 +93,23 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
/** GDNative Initialize **/
|
/** GDNative Initialize **/
|
||||||
GDNATIVE_INIT(godot_gdnative_init_options *options) {
|
extern "C" void GDN_EXPORT godot_gdnative_init(godot_gdnative_init_options *o)
|
||||||
|
{
|
||||||
|
godot::Godot::gdnative_init(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** GDNative Terminate **/
|
/** GDNative Terminate **/
|
||||||
GDNATIVE_TERMINATE(godot_gdnative_terminate_options *options) {
|
extern "C" void GDN_EXPORT godot_gdnative_terminate(godot_gdnative_terminate_options *o)
|
||||||
|
{
|
||||||
|
godot::Godot::gdnative_terminate(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** NativeScript Initialize **/
|
/** NativeScript Initialize **/
|
||||||
NATIVESCRIPT_INIT() {
|
extern "C" void GDN_EXPORT godot_nativescript_init(void *handle)
|
||||||
register_class<SimpleClass>();
|
{
|
||||||
|
godot::Godot::nativescript_init(handle);
|
||||||
|
|
||||||
|
godot::register_class<SimpleClass>();
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue