2021-05-07 13:41:39 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
<class name= "TileData" inherits= "Object" version= "4.0" >
<brief_description >
</brief_description>
<description >
</description>
<tutorials >
</tutorials>
<methods >
2021-06-09 18:01:08 +00:00
<method name= "add_collision_polygon" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "layer_id" type= "int" />
2021-05-07 13:41:39 +00:00
<description >
2021-09-06 09:56:31 +00:00
Adds a collision polygon to the tile on the given TileSet physics layer.
2021-05-07 13:41:39 +00:00
</description>
</method>
2021-06-09 18:01:08 +00:00
<method name= "get_collision_polygon_one_way_margin" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "layer_id" type= "int" />
<argument index= "1" name= "polygon_index" type= "int" />
2021-05-07 13:41:39 +00:00
<description >
2021-09-06 09:56:31 +00:00
Returns the one-way margin (for one-way platforms) of the polygon at index [code]polygon_index[/code] for TileSet physics layer with index [code]layer_id[/code].
2021-05-07 13:41:39 +00:00
</description>
</method>
2021-06-09 18:01:08 +00:00
<method name= "get_collision_polygon_points" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "PackedVector2Array" />
<argument index= "0" name= "layer_id" type= "int" />
<argument index= "1" name= "polygon_index" type= "int" />
2021-05-07 13:41:39 +00:00
<description >
2021-09-06 09:56:31 +00:00
Returns the points of the polygon at index [code]polygon_index[/code] for TileSet physics layer with index [code]layer_id[/code].
2021-05-07 13:41:39 +00:00
</description>
</method>
2021-06-09 18:01:08 +00:00
<method name= "get_collision_polygons_count" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "int" />
<argument index= "0" name= "layer_id" type= "int" />
2021-05-07 13:41:39 +00:00
<description >
2021-09-06 09:56:31 +00:00
Returns how many polygons the tile has for TileSet physics layer with index [code]layer_id[/code].
2021-05-07 13:41:39 +00:00
</description>
</method>
<method name= "get_custom_data" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "Variant" />
<argument index= "0" name= "layer_name" type= "String" />
2021-05-07 13:41:39 +00:00
<description >
2021-09-06 09:56:31 +00:00
Returns the custom data value for custom data layer named [code]layer_name[/code].
2021-05-07 13:41:39 +00:00
</description>
</method>
<method name= "get_custom_data_by_layer_id" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "Variant" />
<argument index= "0" name= "layer_id" type= "int" />
2021-05-07 13:41:39 +00:00
<description >
2021-09-06 09:56:31 +00:00
Returns the custom data value for custom data layer with index [code]layer_id[/code].
2021-05-07 13:41:39 +00:00
</description>
</method>
<method name= "get_navigation_polygon" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "NavigationPolygon" />
<argument index= "0" name= "layer_id" type= "int" />
2021-05-07 13:41:39 +00:00
<description >
2021-09-06 09:56:31 +00:00
Returns the navigation polygon of the tile for the TileSet navigation layer with index [code]layer_id[/code].
2021-05-07 13:41:39 +00:00
</description>
</method>
<method name= "get_occluder" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "OccluderPolygon2D" />
<argument index= "0" name= "layer_id" type= "int" />
2021-05-07 13:41:39 +00:00
<description >
2021-09-06 09:56:31 +00:00
Returns the occluder polygon of the tile for the TileSet occlusion layer with index [code]layer_id[/code].
2021-05-07 13:41:39 +00:00
</description>
</method>
<method name= "get_peering_bit_terrain" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "int" />
<argument index= "0" name= "peering_bit" type= "int" enum= "TileSet.CellNeighbor" />
2021-05-07 13:41:39 +00:00
<description >
2021-09-06 09:56:31 +00:00
Returns the tile's terrain bit for the given [code]peering_bit[/code] direction.
2021-05-07 13:41:39 +00:00
</description>
</method>
2021-06-09 18:01:08 +00:00
<method name= "is_collision_polygon_one_way" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "bool" />
<argument index= "0" name= "layer_id" type= "int" />
<argument index= "1" name= "polygon_index" type= "int" />
2021-05-07 13:41:39 +00:00
<description >
2021-09-06 09:56:31 +00:00
Returns whether one-way collisions are enabled for the polygon at index [code]polygon_index[/code] for TileSet physics layer with index [code]layer_id[/code].
2021-05-07 13:41:39 +00:00
</description>
</method>
2021-06-09 18:01:08 +00:00
<method name= "remove_collision_polygon" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "layer_id" type= "int" />
<argument index= "1" name= "polygon_index" type= "int" />
2021-05-07 13:41:39 +00:00
<description >
2021-09-06 09:56:31 +00:00
Removes the polygon at index [code]polygon_index[/code] for TileSet physics layer with index [code]layer_id[/code].
2021-05-07 13:41:39 +00:00
</description>
</method>
2021-06-09 18:01:08 +00:00
<method name= "set_collision_polygon_one_way" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "layer_id" type= "int" />
<argument index= "1" name= "polygon_index" type= "int" />
<argument index= "2" name= "one_way" type= "bool" />
2021-05-07 13:41:39 +00:00
<description >
2021-09-06 09:56:31 +00:00
Enables/disables one-way collisions on the polygon at index [code]polygon_index[/code] for TileSet physics layer with index [code]layer_id[/code].
2021-05-07 13:41:39 +00:00
</description>
</method>
2021-06-09 18:01:08 +00:00
<method name= "set_collision_polygon_one_way_margin" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "layer_id" type= "int" />
<argument index= "1" name= "polygon_index" type= "int" />
<argument index= "2" name= "one_way_margin" type= "float" />
2021-05-07 13:41:39 +00:00
<description >
2021-09-06 09:56:31 +00:00
Enables/disables one-way collisions on the polygon at index [code]polygon_index[/code] for TileSet physics layer with index [code]layer_id[/code].
2021-05-07 13:41:39 +00:00
</description>
</method>
2021-06-09 18:01:08 +00:00
<method name= "set_collision_polygon_points" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "layer_id" type= "int" />
<argument index= "1" name= "polygon_index" type= "int" />
<argument index= "2" name= "polygon" type= "PackedVector2Array" />
2021-05-07 13:41:39 +00:00
<description >
2021-09-06 09:56:31 +00:00
Sets the points of the polygon at index [code]polygon_index[/code] for TileSet physics layer with index [code]layer_id[/code].
2021-05-07 13:41:39 +00:00
</description>
</method>
2021-06-09 18:01:08 +00:00
<method name= "set_collision_polygons_count" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "layer_id" type= "int" />
<argument index= "1" name= "polygons_count" type= "int" />
2021-05-07 13:41:39 +00:00
<description >
2021-09-06 09:56:31 +00:00
Sets the polygons count for TileSet physics layer with index [code]layer_id[/code].
2021-05-07 13:41:39 +00:00
</description>
</method>
<method name= "set_custom_data" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "layer_name" type= "String" />
<argument index= "1" name= "value" type= "Variant" />
2021-05-07 13:41:39 +00:00
<description >
2021-09-06 09:56:31 +00:00
Sets the tile's custom data value for the TileSet custom data layer with name [code]layer_name[/code].
2021-05-07 13:41:39 +00:00
</description>
</method>
<method name= "set_custom_data_by_layer_id" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "layer_id" type= "int" />
<argument index= "1" name= "value" type= "Variant" />
2021-05-07 13:41:39 +00:00
<description >
2021-09-06 09:56:31 +00:00
Sets the tile's custom data value for the TileSet custom data layer with index [code]layer_id[/code].
2021-05-07 13:41:39 +00:00
</description>
</method>
<method name= "set_navigation_polygon" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "layer_id" type= "int" />
<argument index= "1" name= "navigation_polygon" type= "NavigationPolygon" />
2021-05-07 13:41:39 +00:00
<description >
2021-09-06 09:56:31 +00:00
Sets the navigation polygon for the TileSet navigation layer with index [code]layer_id[/code].
2021-05-07 13:41:39 +00:00
</description>
</method>
<method name= "set_occluder" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "layer_id" type= "int" />
<argument index= "1" name= "occluder_polygon" type= "OccluderPolygon2D" />
2021-05-07 13:41:39 +00:00
<description >
2021-09-06 09:56:31 +00:00
Sets the occluder for the TileSet occlusion layer with index [code]layer_id[/code].
2021-05-07 13:41:39 +00:00
</description>
</method>
<method name= "set_peering_bit_terrain" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "peering_bit" type= "int" enum= "TileSet.CellNeighbor" />
<argument index= "1" name= "terrain" type= "int" />
2021-05-07 13:41:39 +00:00
<description >
2021-09-06 09:56:31 +00:00
Sets the tile's terrain bit for the given [code]peering_bit[/code] direction.
2021-05-07 13:41:39 +00:00
</description>
</method>
</methods>
<members >
<member name= "flip_h" type= "bool" setter= "set_flip_h" getter= "get_flip_h" default= "false" >
</member>
<member name= "flip_v" type= "bool" setter= "set_flip_v" getter= "get_flip_v" default= "false" >
</member>
2021-09-06 09:56:31 +00:00
<member name= "material" type= "ShaderMaterial" setter= "set_material" getter= "get_material" >
</member>
2019-09-24 17:45:03 +00:00
<member name= "modulate" type= "Color" setter= "set_modulate" getter= "get_modulate" default= "Color(1, 1, 1, 1)" >
2021-05-07 13:41:39 +00:00
</member>
<member name= "probability" type= "float" setter= "set_probability" getter= "get_probability" default= "1.0" >
</member>
<member name= "terrain_set" type= "int" setter= "set_terrain_set" getter= "get_terrain_set" default= "-1" >
</member>
2019-09-24 17:45:03 +00:00
<member name= "texture_offset" type= "Vector2i" setter= "set_texture_offset" getter= "get_texture_offset" default= "Vector2i(0, 0)" >
2021-05-07 13:41:39 +00:00
</member>
<member name= "transpose" type= "bool" setter= "set_transpose" getter= "get_transpose" default= "false" >
</member>
2021-05-21 08:08:15 +00:00
<member name= "y_sort_origin" type= "int" setter= "set_y_sort_origin" getter= "get_y_sort_origin" default= "0" >
2021-05-07 13:41:39 +00:00
</member>
<member name= "z_index" type= "int" setter= "set_z_index" getter= "get_z_index" default= "0" >
</member>
</members>
<signals >
<signal name= "changed" >
<description >
</description>
</signal>
</signals>
<constants >
</constants>
</class>