GodotGlobal.hpp 543 B

1234567891011121314151617181920212223242526272829
  1. #ifndef GODOT_GLOBAL_HPP
  2. #define GODOT_GLOBAL_HPP
  3. #include <gdnative_api_struct.gen.h>
  4. #include "String.hpp"
  5. namespace godot {
  6. extern "C" const godot_gdnative_api_struct *api;
  7. class Godot {
  8. public:
  9. static void print(const String& message);
  10. static void print_warning(const String& description, const String& function, const String& file, int line);
  11. static void print_error(const String& description, const String& function, const String& file, int line);
  12. };
  13. struct _RegisterState {
  14. static void *nativescript_handle;
  15. };
  16. }
  17. #endif