dungeonanddeamon/GodoBinding/include/gen/Engine.hpp
2020-03-25 11:29:52 +01:00

100 lines
3.0 KiB
C++

#ifndef GODOT_CPP_ENGINE_HPP
#define GODOT_CPP_ENGINE_HPP
#include <gdnative_api_struct.gen.h>
#include <stdint.h>
#include <core/CoreTypes.hpp>
#include <core/Ref.hpp>
#include "Object.hpp"
namespace godot {
class MainLoop;
class Object;
class Engine : public Object {
static Engine *_singleton;
Engine();
struct ___method_bindings {
godot_method_bind *mb_get_author_info;
godot_method_bind *mb_get_copyright_info;
godot_method_bind *mb_get_donor_info;
godot_method_bind *mb_get_frames_drawn;
godot_method_bind *mb_get_frames_per_second;
godot_method_bind *mb_get_idle_frames;
godot_method_bind *mb_get_iterations_per_second;
godot_method_bind *mb_get_license_info;
godot_method_bind *mb_get_license_text;
godot_method_bind *mb_get_main_loop;
godot_method_bind *mb_get_physics_frames;
godot_method_bind *mb_get_physics_interpolation_fraction;
godot_method_bind *mb_get_physics_jitter_fix;
godot_method_bind *mb_get_singleton;
godot_method_bind *mb_get_target_fps;
godot_method_bind *mb_get_time_scale;
godot_method_bind *mb_get_version_info;
godot_method_bind *mb_has_singleton;
godot_method_bind *mb_is_editor_hint;
godot_method_bind *mb_is_in_physics_frame;
godot_method_bind *mb_set_editor_hint;
godot_method_bind *mb_set_iterations_per_second;
godot_method_bind *mb_set_physics_jitter_fix;
godot_method_bind *mb_set_target_fps;
godot_method_bind *mb_set_time_scale;
};
static ___method_bindings ___mb;
public:
static void ___init_method_bindings();
static inline Engine *get_singleton()
{
if (!Engine::_singleton) {
Engine::_singleton = new Engine;
}
return Engine::_singleton;
}
static inline const char *___get_class_name() { return (const char *) "Engine"; }
static inline Object *___get_from_variant(Variant a) { godot_object *o = (godot_object*) a; return (o) ? (Object *) godot::nativescript_1_1_api->godot_nativescript_get_instance_binding_data(godot::_RegisterState::language_index, o) : nullptr; }
// enums
// constants
// methods
Dictionary get_author_info() const;
Array get_copyright_info() const;
Dictionary get_donor_info() const;
int64_t get_frames_drawn();
real_t get_frames_per_second() const;
int64_t get_idle_frames() const;
int64_t get_iterations_per_second() const;
Dictionary get_license_info() const;
String get_license_text() const;
MainLoop *get_main_loop() const;
int64_t get_physics_frames() const;
real_t get_physics_interpolation_fraction() const;
real_t get_physics_jitter_fix() const;
Object *get_singleton(const String name) const;
int64_t get_target_fps() const;
real_t get_time_scale();
Dictionary get_version_info() const;
bool has_singleton(const String name) const;
bool is_editor_hint() const;
bool is_in_physics_frame() const;
void set_editor_hint(const bool enabled);
void set_iterations_per_second(const int64_t iterations_per_second);
void set_physics_jitter_fix(const real_t physics_jitter_fix);
void set_target_fps(const int64_t target_fps);
void set_time_scale(const real_t time_scale);
};
}
#endif