mirror of
https://forge.univ-lyon1.fr/tplifap4/dungeonanddeamon.git
synced 2024-02-27 13:31:50 +01:00
75 lines
2.0 KiB
C++
75 lines
2.0 KiB
C++
#ifndef GODOT_CPP_PATHFOLLOW_HPP
|
|
#define GODOT_CPP_PATHFOLLOW_HPP
|
|
|
|
|
|
#include <gdnative_api_struct.gen.h>
|
|
#include <stdint.h>
|
|
|
|
#include <core/CoreTypes.hpp>
|
|
#include <core/Ref.hpp>
|
|
#include "PathFollow.hpp"
|
|
|
|
#include "Spatial.hpp"
|
|
namespace godot {
|
|
|
|
|
|
class PathFollow : public Spatial {
|
|
struct ___method_bindings {
|
|
godot_method_bind *mb_get_cubic_interpolation;
|
|
godot_method_bind *mb_get_h_offset;
|
|
godot_method_bind *mb_get_offset;
|
|
godot_method_bind *mb_get_rotation_mode;
|
|
godot_method_bind *mb_get_unit_offset;
|
|
godot_method_bind *mb_get_v_offset;
|
|
godot_method_bind *mb_has_loop;
|
|
godot_method_bind *mb_set_cubic_interpolation;
|
|
godot_method_bind *mb_set_h_offset;
|
|
godot_method_bind *mb_set_loop;
|
|
godot_method_bind *mb_set_offset;
|
|
godot_method_bind *mb_set_rotation_mode;
|
|
godot_method_bind *mb_set_unit_offset;
|
|
godot_method_bind *mb_set_v_offset;
|
|
};
|
|
static ___method_bindings ___mb;
|
|
|
|
public:
|
|
static void ___init_method_bindings();
|
|
|
|
static inline const char *___get_class_name() { return (const char *) "PathFollow"; }
|
|
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
|
|
enum RotationMode {
|
|
ROTATION_NONE = 0,
|
|
ROTATION_Y = 1,
|
|
ROTATION_XY = 2,
|
|
ROTATION_XYZ = 3,
|
|
ROTATION_ORIENTED = 4,
|
|
};
|
|
|
|
// constants
|
|
|
|
|
|
static PathFollow *_new();
|
|
|
|
// methods
|
|
bool get_cubic_interpolation() const;
|
|
real_t get_h_offset() const;
|
|
real_t get_offset() const;
|
|
PathFollow::RotationMode get_rotation_mode() const;
|
|
real_t get_unit_offset() const;
|
|
real_t get_v_offset() const;
|
|
bool has_loop() const;
|
|
void set_cubic_interpolation(const bool enable);
|
|
void set_h_offset(const real_t h_offset);
|
|
void set_loop(const bool loop);
|
|
void set_offset(const real_t offset);
|
|
void set_rotation_mode(const int64_t rotation_mode);
|
|
void set_unit_offset(const real_t unit_offset);
|
|
void set_v_offset(const real_t v_offset);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif |