nativescript.gen.c 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. // Copyright © 2019 - 2020 Oscar Campos <oscar.campos@thepimpam.com>
  2. // Copyright © 2017 - William Edwards
  3. //
  4. // Licensed under the Apache License, Version 2.0 (the "License");
  5. // you may not use this file except in compliance with the License.
  6. // You may obtain a copy of the License at
  7. //
  8. // http://www.apache.org/licenses/LICENSE-2.0
  9. //
  10. // Unless required by applicable law or agreed to in writing, software
  11. // distributed under the License is distributed on an "AS IS" BASIS,
  12. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. // See the License for the specific language governing permissions and
  14. // limitations under the License.
  15. #include "gdnative.gen.h"
  16. #include <gdnative/aabb.h>
  17. #include <gdnative/array.h>
  18. #include <gdnative/basis.h>
  19. #include <gdnative/color.h>
  20. #include <gdnative/dictionary.h>
  21. #include <gdnative/gdnative.h>
  22. #include <gdnative/node_path.h>
  23. #include <gdnative/plane.h>
  24. #include <gdnative/pool_arrays.h>
  25. #include <gdnative/quat.h>
  26. #include <gdnative/rect2.h>
  27. #include <gdnative/rid.h>
  28. #include <gdnative/string.h>
  29. #include <gdnative/string_name.h>
  30. #include <gdnative/transform.h>
  31. #include <gdnative/transform2d.h>
  32. #include <gdnative/variant.h>
  33. #include <gdnative/vector2.h>
  34. #include <gdnative/vector3.h>
  35. #include <gdnative_api_struct.gen.h>
  36. /*------------------------------------------------------------------------------
  37. // This file was autogenerated by PimPam GDNative-Go binding tools
  38. // Please do not modify this file, any change will be lost
  39. //----------------------------------------------------------------------------*/
  40. /* GDNative NATIVESCRIPT 1.0 */
  41. void go_godot_nativescript_register_class(godot_gdnative_ext_nativescript_api_struct * p_api, void * p_gdnative_handle, const char * p_name, const char * p_base, godot_instance_create_func p_create_func, godot_instance_destroy_func p_destroy_func) {
  42. p_api->godot_nativescript_register_class(p_gdnative_handle, p_name, p_base, p_create_func, p_destroy_func);
  43. }
  44. void go_godot_nativescript_register_tool_class(godot_gdnative_ext_nativescript_api_struct * p_api, void * p_gdnative_handle, const char * p_name, const char * p_base, godot_instance_create_func p_create_func, godot_instance_destroy_func p_destroy_func) {
  45. p_api->godot_nativescript_register_tool_class(p_gdnative_handle, p_name, p_base, p_create_func, p_destroy_func);
  46. }
  47. void go_godot_nativescript_register_method(godot_gdnative_ext_nativescript_api_struct * p_api, void * p_gdnative_handle, const char * p_name, const char * p_function_name, godot_method_attributes p_attr, godot_instance_method p_method) {
  48. p_api->godot_nativescript_register_method(p_gdnative_handle, p_name, p_function_name, p_attr, p_method);
  49. }
  50. void go_godot_nativescript_register_property(godot_gdnative_ext_nativescript_api_struct * p_api, void * p_gdnative_handle, const char * p_name, const char * p_path, godot_property_attributes * p_attr, godot_property_set_func p_set_func, godot_property_get_func p_get_func) {
  51. p_api->godot_nativescript_register_property(p_gdnative_handle, p_name, p_path, p_attr, p_set_func, p_get_func);
  52. }
  53. void go_godot_nativescript_register_signal(godot_gdnative_ext_nativescript_api_struct * p_api, void * p_gdnative_handle, const char * p_name, const godot_signal * p_signal) {
  54. p_api->godot_nativescript_register_signal(p_gdnative_handle, p_name, p_signal);
  55. }
  56. void * go_godot_nativescript_get_userdata(godot_gdnative_ext_nativescript_api_struct * p_api, godot_object * p_instance) {
  57. return p_api->godot_nativescript_get_userdata(p_instance);
  58. }