2017-05-13 11:55:04 +00:00
|
|
|
#ifndef GODOT_GLOBAL_HPP
|
|
|
|
#define GODOT_GLOBAL_HPP
|
|
|
|
|
2017-10-20 23:42:10 +00:00
|
|
|
#include <gdnative_api_struct.gen.h>
|
2017-05-13 11:55:04 +00:00
|
|
|
#include "String.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
namespace godot {
|
|
|
|
|
2017-10-20 23:42:10 +00:00
|
|
|
extern "C" const godot_gdnative_api_struct *api;
|
|
|
|
|
2017-07-23 15:53:50 +00:00
|
|
|
class Godot {
|
2017-05-13 11:55:04 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
static void print(const String& message);
|
|
|
|
static void print_warning(const String& description, const String& function, const String& file, int line);
|
|
|
|
static void print_error(const String& description, const String& function, const String& file, int line);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2017-07-24 12:23:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
struct _RegisterState {
|
|
|
|
static void *nativescript_handle;
|
|
|
|
};
|
|
|
|
|
2017-05-13 11:55:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|