2022-03-15 13:29:32 +01:00
<?xml version="1.0" encoding="UTF-8" ?>
2024-02-25 10:26:26 +01:00
<class name= "TileSet" inherits= "Resource" version= "4.3" >
2022-03-15 13:29:32 +01:00
<brief_description >
</brief_description>
<description >
</description>
<tutorials >
</tutorials>
<methods >
<method name= "_forward_atlas_subtile_selection" qualifiers= "virtual" >
<return type= "Vector2" />
<argument index= "0" name= "atlastile_id" type= "int" />
<argument index= "1" name= "tilemap" type= "Object" />
<argument index= "2" name= "tile_location" type= "Vector2" />
<description >
</description>
</method>
<method name= "_forward_subtile_selection" qualifiers= "virtual" >
<return type= "Vector2" />
<argument index= "0" name= "autotile_id" type= "int" />
<argument index= "1" name= "bitmask" type= "int" />
<argument index= "2" name= "tilemap" type= "Object" />
<argument index= "3" name= "tile_location" type= "Vector2" />
<description >
</description>
</method>
<method name= "_is_tile_bound" qualifiers= "virtual" >
<return type= "bool" />
<argument index= "0" name= "drawn_id" type= "int" />
<argument index= "1" name= "neighbor_id" type= "int" />
<description >
</description>
</method>
<method name= "autotile_clear_bitmask_map" >
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<description >
</description>
</method>
<method name= "autotile_get_bitmask" >
<return type= "int" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "coord" type= "Vector2" />
<description >
</description>
</method>
<method name= "autotile_get_bitmask_mode" qualifiers= "const" >
2022-10-09 11:45:57 +02:00
<return type= "int" enum= "TileSet.BitmaskMode" />
2022-03-15 13:29:32 +01:00
<argument index= "0" name= "id" type= "int" />
<description >
</description>
</method>
2023-06-28 13:36:14 +02:00
<method name= "autotile_get_fallback_mode" qualifiers= "const" >
<return type= "int" enum= "TileSet.FallbackMode" />
<argument index= "0" name= "id" type= "int" />
<description >
Returns the [enum FallbackMode] of the autotile.
</description>
</method>
2022-03-15 13:29:32 +01:00
<method name= "autotile_get_icon_coordinate" qualifiers= "const" >
<return type= "Vector2" />
<argument index= "0" name= "id" type= "int" />
<description >
</description>
</method>
<method name= "autotile_get_light_occluder" qualifiers= "const" >
<return type= "OccluderPolygon2D" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "coord" type= "Vector2" />
<description >
</description>
</method>
<method name= "autotile_get_navigation_polygon" qualifiers= "const" >
<return type= "NavigationPolygon" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "coord" type= "Vector2" />
<description >
</description>
</method>
<method name= "autotile_get_size" qualifiers= "const" >
<return type= "Vector2" />
<argument index= "0" name= "id" type= "int" />
<description >
</description>
</method>
<method name= "autotile_get_spacing" qualifiers= "const" >
<return type= "int" />
<argument index= "0" name= "id" type= "int" />
<description >
</description>
</method>
<method name= "autotile_get_subtile_priority" >
<return type= "int" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "coord" type= "Vector2" />
<description >
</description>
</method>
<method name= "autotile_get_z_index" >
<return type= "int" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "coord" type= "Vector2" />
<description >
</description>
</method>
<method name= "autotile_set_bitmask" >
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "bitmask" type= "Vector2" />
<argument index= "2" name= "flag" type= "int" />
<description >
</description>
</method>
<method name= "autotile_set_bitmask_mode" >
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
2022-10-09 11:45:57 +02:00
<argument index= "1" name= "mode" type= "int" enum= "TileSet.BitmaskMode" />
2022-03-15 13:29:32 +01:00
<description >
</description>
</method>
2023-06-28 13:36:14 +02:00
<method name= "autotile_set_fallback_mode" >
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "mode" type= "int" enum= "TileSet.FallbackMode" />
<description >
Returns the [enum FallbackMode] of the autotile.
</description>
</method>
2022-03-15 13:29:32 +01:00
<method name= "autotile_set_icon_coordinate" >
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "coord" type= "Vector2" />
<description >
2023-06-28 13:36:14 +02:00
The subtile defined as the icon may be used as a fallback when the atlas/autotile's bitmask information is incomplete. It will also be used to represent it in the TileSet editor.
2022-03-15 13:29:32 +01:00
</description>
</method>
<method name= "autotile_set_light_occluder" >
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "light_occluder" type= "OccluderPolygon2D" />
<argument index= "2" name= "coord" type= "Vector2" />
<description >
</description>
</method>
<method name= "autotile_set_navigation_polygon" >
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "navigation_polygon" type= "NavigationPolygon" />
<argument index= "2" name= "coord" type= "Vector2" />
<description >
</description>
</method>
<method name= "autotile_set_size" >
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "size" type= "Vector2" />
<description >
</description>
</method>
<method name= "autotile_set_spacing" >
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "spacing" type= "int" />
<description >
</description>
</method>
<method name= "autotile_set_subtile_priority" >
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "coord" type= "Vector2" />
<argument index= "2" name= "priority" type= "int" />
<description >
</description>
</method>
<method name= "autotile_set_z_index" >
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "coord" type= "Vector2" />
<argument index= "2" name= "z_index" type= "int" />
<description >
</description>
</method>
<method name= "clear" >
<return type= "void" />
<description >
</description>
</method>
<method name= "create_tile" >
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<description >
</description>
</method>
<method name= "find_tile_by_name" qualifiers= "const" >
<return type= "int" />
<argument index= "0" name= "name" type= "String" />
<description >
</description>
</method>
<method name= "get_last_unused_tile_id" qualifiers= "const" >
<return type= "int" />
<description >
</description>
</method>
<method name= "get_tiles_ids" qualifiers= "const" >
<return type= "Array" />
<description >
</description>
</method>
<method name= "remove_tile" >
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<description >
2022-03-16 02:51:50 +01:00
</description>
</method>
<method name= "setup_noise" >
<return type= "void" />
<argument index= "0" name= "noise" type= "FastNoise" />
<description >
2022-03-15 13:29:32 +01:00
</description>
</method>
<method name= "tile_add_shape" >
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "shape" type= "Shape2D" />
<argument index= "2" name= "shape_transform" type= "Transform2D" />
<argument index= "3" name= "one_way" type= "bool" default= "false" />
<argument index= "4" name= "autotile_coord" type= "Vector2" default= "Vector2( 0, 0 )" />
<description >
</description>
</method>
<method name= "tile_get_light_occluder" qualifiers= "const" >
<return type= "OccluderPolygon2D" />
<argument index= "0" name= "id" type= "int" />
<description >
</description>
</method>
<method name= "tile_get_material" qualifiers= "const" >
<return type= "ShaderMaterial" />
<argument index= "0" name= "id" type= "int" />
<description >
</description>
</method>
<method name= "tile_get_modulate" qualifiers= "const" >
<return type= "Color" />
<argument index= "0" name= "id" type= "int" />
<description >
</description>
</method>
<method name= "tile_get_name" qualifiers= "const" >
<return type= "String" />
<argument index= "0" name= "id" type= "int" />
<description >
</description>
</method>
<method name= "tile_get_navigation_polygon" qualifiers= "const" >
<return type= "NavigationPolygon" />
<argument index= "0" name= "id" type= "int" />
<description >
</description>
</method>
<method name= "tile_get_navigation_polygon_offset" qualifiers= "const" >
<return type= "Vector2" />
<argument index= "0" name= "id" type= "int" />
<description >
</description>
</method>
<method name= "tile_get_normal_map" qualifiers= "const" >
<return type= "Texture" />
<argument index= "0" name= "id" type= "int" />
<description >
</description>
</method>
<method name= "tile_get_occluder_offset" qualifiers= "const" >
<return type= "Vector2" />
<argument index= "0" name= "id" type= "int" />
<description >
</description>
</method>
<method name= "tile_get_region" qualifiers= "const" >
<return type= "Rect2" />
<argument index= "0" name= "id" type= "int" />
<description >
</description>
</method>
<method name= "tile_get_shape" qualifiers= "const" >
<return type= "Shape2D" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "shape_id" type= "int" />
<description >
</description>
</method>
<method name= "tile_get_shape_count" qualifiers= "const" >
<return type= "int" />
<argument index= "0" name= "id" type= "int" />
<description >
</description>
</method>
<method name= "tile_get_shape_offset" qualifiers= "const" >
<return type= "Vector2" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "shape_id" type= "int" />
<description >
</description>
</method>
<method name= "tile_get_shape_one_way" qualifiers= "const" >
<return type= "bool" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "shape_id" type= "int" />
<description >
</description>
</method>
<method name= "tile_get_shape_one_way_margin" qualifiers= "const" >
<return type= "float" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "shape_id" type= "int" />
<description >
</description>
</method>
<method name= "tile_get_shape_transform" qualifiers= "const" >
<return type= "Transform2D" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "shape_id" type= "int" />
<description >
</description>
</method>
<method name= "tile_get_shapes" qualifiers= "const" >
<return type= "Array" />
<argument index= "0" name= "id" type= "int" />
<description >
</description>
</method>
<method name= "tile_get_texture" qualifiers= "const" >
<return type= "Texture" />
<argument index= "0" name= "id" type= "int" />
<description >
</description>
</method>
<method name= "tile_get_texture_offset" qualifiers= "const" >
<return type= "Vector2" />
<argument index= "0" name= "id" type= "int" />
<description >
</description>
</method>
<method name= "tile_get_tile_mode" qualifiers= "const" >
2022-10-09 11:45:57 +02:00
<return type= "int" enum= "TileSet.TileMode" />
2022-03-15 13:29:32 +01:00
<argument index= "0" name= "id" type= "int" />
<description >
</description>
</method>
<method name= "tile_get_z_index" qualifiers= "const" >
<return type= "int" />
<argument index= "0" name= "id" type= "int" />
<description >
</description>
</method>
<method name= "tile_set_light_occluder" >
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "light_occluder" type= "OccluderPolygon2D" />
<description >
</description>
</method>
<method name= "tile_set_material" >
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "material" type= "ShaderMaterial" />
<description >
</description>
</method>
<method name= "tile_set_modulate" >
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "color" type= "Color" />
<description >
</description>
</method>
<method name= "tile_set_name" >
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "name" type= "String" />
<description >
</description>
</method>
<method name= "tile_set_navigation_polygon" >
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "navigation_polygon" type= "NavigationPolygon" />
<description >
</description>
</method>
<method name= "tile_set_navigation_polygon_offset" >
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "navigation_polygon_offset" type= "Vector2" />
<description >
</description>
</method>
<method name= "tile_set_normal_map" >
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "normal_map" type= "Texture" />
<description >
</description>
</method>
<method name= "tile_set_occluder_offset" >
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "occluder_offset" type= "Vector2" />
<description >
</description>
</method>
<method name= "tile_set_region" >
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "region" type= "Rect2" />
<description >
</description>
</method>
<method name= "tile_set_shape" >
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "shape_id" type= "int" />
<argument index= "2" name= "shape" type= "Shape2D" />
<description >
</description>
</method>
<method name= "tile_set_shape_offset" >
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "shape_id" type= "int" />
<argument index= "2" name= "shape_offset" type= "Vector2" />
<description >
</description>
</method>
<method name= "tile_set_shape_one_way" >
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "shape_id" type= "int" />
<argument index= "2" name= "one_way" type= "bool" />
<description >
</description>
</method>
<method name= "tile_set_shape_one_way_margin" >
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "shape_id" type= "int" />
<argument index= "2" name= "one_way" type= "float" />
<description >
</description>
</method>
<method name= "tile_set_shape_transform" >
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "shape_id" type= "int" />
<argument index= "2" name= "shape_transform" type= "Transform2D" />
<description >
</description>
</method>
<method name= "tile_set_shapes" >
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "shapes" type= "Array" />
<description >
</description>
</method>
<method name= "tile_set_texture" >
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "texture" type= "Texture" />
<description >
</description>
</method>
<method name= "tile_set_texture_offset" >
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "texture_offset" type= "Vector2" />
<description >
</description>
</method>
<method name= "tile_set_tile_mode" >
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
2022-10-09 11:45:57 +02:00
<argument index= "1" name= "tilemode" type= "int" enum= "TileSet.TileMode" />
2022-03-15 13:29:32 +01:00
<description >
</description>
</method>
<method name= "tile_set_z_index" >
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "z_index" type= "int" />
<description >
</description>
</method>
</methods>
2022-03-16 02:51:50 +01:00
<members >
<member name= "noise" type= "FastnoiseNoiseParams" setter= "set_noise_params" getter= "get_noise_params" >
</member>
</members>
2022-03-15 13:29:32 +01:00
<constants >
<constant name= "BITMASK_2X2" value= "0" enum= "BitmaskMode" >
</constant>
<constant name= "BITMASK_3X3_MINIMAL" value= "1" enum= "BitmaskMode" >
</constant>
<constant name= "BITMASK_3X3" value= "2" enum= "BitmaskMode" >
</constant>
2023-06-28 13:36:14 +02:00
<constant name= "FALLBACK_AUTO" value= "0" enum= "FallbackMode" >
2023-06-28 13:47:29 +02:00
Autotiles will automatically find a best match for missing tiles if they're incomplete.
2023-06-28 13:36:14 +02:00
</constant>
<constant name= "FALLBACK_ICON" value= "1" enum= "FallbackMode" >
2023-06-28 13:47:29 +02:00
Autotiles will use the icon tile for missing tiles if they're incomplete.
2023-06-28 13:36:14 +02:00
</constant>
2022-03-15 13:29:32 +01:00
<constant name= "BIND_TOPLEFT" value= "1" enum= "AutotileBindings" >
</constant>
<constant name= "BIND_TOP" value= "2" enum= "AutotileBindings" >
</constant>
<constant name= "BIND_TOPRIGHT" value= "4" enum= "AutotileBindings" >
</constant>
<constant name= "BIND_LEFT" value= "8" enum= "AutotileBindings" >
</constant>
<constant name= "BIND_CENTER" value= "16" enum= "AutotileBindings" >
</constant>
<constant name= "BIND_RIGHT" value= "32" enum= "AutotileBindings" >
</constant>
<constant name= "BIND_BOTTOMLEFT" value= "64" enum= "AutotileBindings" >
</constant>
<constant name= "BIND_BOTTOM" value= "128" enum= "AutotileBindings" >
</constant>
<constant name= "BIND_BOTTOMRIGHT" value= "256" enum= "AutotileBindings" >
</constant>
<constant name= "SINGLE_TILE" value= "0" enum= "TileMode" >
</constant>
<constant name= "AUTO_TILE" value= "1" enum= "TileMode" >
</constant>
<constant name= "ATLAS_TILE" value= "2" enum= "TileMode" >
</constant>
</constants>
</class>