godot-cpp/include/gen/Navigation2D.hpp

44 lines
1.2 KiB
C++
Raw Normal View History

#ifndef GODOT_CPP_NAVIGATION2D_HPP
#define GODOT_CPP_NAVIGATION2D_HPP
#include <gdnative_api_struct.gen.h>
#include <stdint.h>
#include <core/CoreTypes.hpp>
#include <core/Ref.hpp>
#include <Node2D.hpp>
namespace godot {
class NavigationPolygon;
class Object;
class Navigation2D : public Node2D {
public:
static void *___get_type_tag();
static void *___get_base_type_tag();
static inline const char *___get_class_name() { return (const char *) "Navigation2D"; }
static inline Object *___get_from_variant(Variant a) { godot_object *o = (godot_object*) a; return (Object *) godot::nativescript_1_1_api->godot_nativescript_get_instance_binding_data(godot::_RegisterState::language_index, o); }
// enums
// constants
static Navigation2D *_new();
// methods
int64_t navpoly_add(const Ref<NavigationPolygon> mesh, const Transform2D xform, const Object *owner = nullptr);
void navpoly_set_transform(const int64_t id, const Transform2D xform);
void navpoly_remove(const int64_t id);
PoolVector2Array get_simple_path(const Vector2 start, const Vector2 end, const bool optimize = true);
Vector2 get_closest_point(const Vector2 to_point);
Object *get_closest_point_owner(const Vector2 to_point);
};
}
#endif