nativescript.h 1.3 KB

12345678910111213141516171819202122232425262728
  1. #ifndef CGDNATIVE_NATIVESCRIPT_GATEWAY_H
  2. #define CGDNATIVE_NATIVESCRIPT_GATEWAY_H
  3. #include <gdnative/gdnative.h>
  4. #include <nativescript/godot_nativescript.h>
  5. /* GDNative NATIVESCRIPT C Gateway */
  6. void *cgo_gateway_create_func(godot_object *obj, void *method_data);
  7. void *cgo_gateway_destroy_func(godot_object *obj, void *method_data, void *user_data);
  8. void *cgo_gateway_free_func(void *method_data);
  9. godot_variant cgo_gateway_method_func(godot_object *obj, void *method_data,
  10. void *user_data, int num_args, godot_variant **args);
  11. void cgo_gateway_property_set_func(godot_object *obj, void *method_data,
  12. void *user_data, godot_variant *property);
  13. godot_variant cgo_gateway_property_get_func(godot_object *obj, void *method_data, void *user_data);
  14. // Type definitions for any function pointers. Some of these are not defined in
  15. // the godot headers when they are part of a typedef struct.
  16. typedef void (*create_func)(godot_object *, void *);
  17. typedef void (*destroy_func)(godot_object *, void *, void *);
  18. typedef void (*free_func)(void *);
  19. typedef godot_variant (*method)(godot_object *, void *, void *, int, godot_variant **);
  20. typedef void (*set_property_func)(godot_object *, void *, void *, godot_variant *);
  21. typedef godot_variant (*get_property_func)(godot_object *, void *, void *);
  22. godot_signal_argument *go_godot_new_signal_argument();
  23. #endif