33 #include "scene/resources/shape_2d.h" 34 #include "scene/resources/texture.h" 35 #include "scene/2d/light_occluder_2d.h" 36 #include "scene/2d/navigation_polygon.h" 52 Vector2 navigation_polygon_offset;
65 void _tile_set_shapes(
int p_id,
const Array& p_shapes);
66 Array _tile_get_shapes(
int p_id)
const;
67 Array _get_tiles_ids()
const;
69 static void _bind_methods();
74 void create_tile(
int p_id);
76 void tile_set_name(
int p_id,
const String &p_name);
77 String tile_get_name(
int p_id)
const;
79 void tile_set_texture(
int p_id,
const Ref<Texture> &p_texture);
82 void tile_set_texture_offset(
int p_id,
const Vector2 &p_offset);
83 Vector2 tile_get_texture_offset(
int p_id)
const;
85 void tile_set_shape_offset(
int p_id,
const Vector2 &p_offset);
86 Vector2 tile_get_shape_offset(
int p_id)
const;
88 void tile_set_region(
int p_id,
const Rect2 &p_region);
89 Rect2 tile_get_region(
int p_id)
const;
91 void tile_set_shape(
int p_id,
const Ref<Shape2D> &p_shape);
97 void tile_set_occluder_offset(
int p_id,
const Vector2& p_offset);
98 Vector2 tile_get_occluder_offset(
int p_id)
const;
103 void tile_set_navigation_polygon_offset(
int p_id,
const Vector2& p_offset);
104 Vector2 tile_get_navigation_polygon_offset(
int p_id)
const;
112 void remove_tile(
int p_id);
114 bool has_tile(
int p_id)
const;
116 int find_tile_by_name(
const String& p_name)
const;
117 void get_tile_list(
List<int> *p_tiles)
const;
121 int get_last_unused_tile_id()
const;
Definition: math_2d.h:422
Definition: math_2d.h:204
Definition: string_db.h:48
Definition: resource.h:89
Definition: tile_set.h:38