2021-05-07 15:41:39 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<class name="TileSetAtlasSource" inherits="TileSetSource" version="4.0">
|
|
|
|
<brief_description>
|
|
|
|
</brief_description>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<methods>
|
|
|
|
<method name="can_move_tile_in_atlas" qualifiers="const">
|
2021-07-30 15:28:05 +02:00
|
|
|
<return type="bool" />
|
|
|
|
<argument index="0" name="atlas_coords" type="Vector2i" />
|
|
|
|
<argument index="1" name="new_atlas_coords" type="Vector2i" default="Vector2i(-1, -1)" />
|
|
|
|
<argument index="2" name="new_size" type="Vector2i" default="Vector2i(-1, -1)" />
|
2021-05-07 15:41:39 +02:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="clear_tiles_outside_texture">
|
2021-07-30 15:28:05 +02:00
|
|
|
<return type="void" />
|
2021-05-07 15:41:39 +02:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="create_alternative_tile">
|
2021-07-30 15:28:05 +02:00
|
|
|
<return type="int" />
|
|
|
|
<argument index="0" name="atlas_coords" type="Vector2i" />
|
|
|
|
<argument index="1" name="alternative_id_override" type="int" default="-1" />
|
2021-05-07 15:41:39 +02:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="create_tile">
|
2021-07-30 15:28:05 +02:00
|
|
|
<return type="void" />
|
|
|
|
<argument index="0" name="atlas_coords" type="Vector2i" />
|
|
|
|
<argument index="1" name="size" type="Vector2i" default="Vector2i(1, 1)" />
|
2021-05-07 15:41:39 +02:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_alternative_tile_id" qualifiers="const">
|
2021-07-30 15:28:05 +02:00
|
|
|
<return type="int" />
|
|
|
|
<argument index="0" name="atlas_coords" type="Vector2i" />
|
|
|
|
<argument index="1" name="index" type="int" />
|
2021-05-07 15:41:39 +02:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_alternative_tiles_count" qualifiers="const">
|
2021-07-30 15:28:05 +02:00
|
|
|
<return type="int" />
|
|
|
|
<argument index="0" name="atlas_coords" type="Vector2i" />
|
2021-05-07 15:41:39 +02:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_atlas_grid_size" qualifiers="const">
|
2021-07-30 15:28:05 +02:00
|
|
|
<return type="Vector2i" />
|
2021-05-07 15:41:39 +02:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_next_alternative_tile_id" qualifiers="const">
|
2021-07-30 15:28:05 +02:00
|
|
|
<return type="int" />
|
|
|
|
<argument index="0" name="atlas_coords" type="Vector2i" />
|
2021-05-07 15:41:39 +02:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_tile_at_coords" qualifiers="const">
|
2021-07-30 15:28:05 +02:00
|
|
|
<return type="Vector2i" />
|
|
|
|
<argument index="0" name="atlas_coords" type="Vector2i" />
|
2021-05-07 15:41:39 +02:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_tile_data" qualifiers="const">
|
2021-07-30 15:28:05 +02:00
|
|
|
<return type="Object" />
|
|
|
|
<argument index="0" name="atlas_coords" type="Vector2i" />
|
|
|
|
<argument index="1" name="index" type="int" />
|
2021-05-07 15:41:39 +02:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_tile_id" qualifiers="const">
|
2021-07-30 15:28:05 +02:00
|
|
|
<return type="Vector2i" />
|
|
|
|
<argument index="0" name="index" type="int" />
|
2021-05-07 15:41:39 +02:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_tile_size_in_atlas" qualifiers="const">
|
2021-07-30 15:28:05 +02:00
|
|
|
<return type="Vector2i" />
|
|
|
|
<argument index="0" name="atlas_coords" type="Vector2i" />
|
2021-05-07 15:41:39 +02:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_tile_texture_region" qualifiers="const">
|
2021-07-30 15:28:05 +02:00
|
|
|
<return type="Rect2i" />
|
|
|
|
<argument index="0" name="atlas_coords" type="Vector2i" />
|
2021-05-07 15:41:39 +02:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_tiles_count" qualifiers="const">
|
2021-07-30 15:28:05 +02:00
|
|
|
<return type="int" />
|
2021-05-07 15:41:39 +02:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="has_alternative_tile" qualifiers="const">
|
2021-07-30 15:28:05 +02:00
|
|
|
<return type="bool" />
|
|
|
|
<argument index="0" name="atlas_coords" type="Vector2i" />
|
|
|
|
<argument index="1" name="alternative_tile" type="int" />
|
2021-05-07 15:41:39 +02:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="has_tile" qualifiers="const">
|
2021-07-30 15:28:05 +02:00
|
|
|
<return type="bool" />
|
|
|
|
<argument index="0" name="atlas_coords" type="Vector2i" />
|
2021-05-07 15:41:39 +02:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="has_tiles_outside_texture">
|
2021-07-30 15:28:05 +02:00
|
|
|
<return type="bool" />
|
2021-05-07 15:41:39 +02:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="move_tile_in_atlas">
|
2021-07-30 15:28:05 +02:00
|
|
|
<return type="void" />
|
|
|
|
<argument index="0" name="atlas_coords" type="Vector2i" />
|
|
|
|
<argument index="1" name="new_atlas_coords" type="Vector2i" default="Vector2i(-1, -1)" />
|
|
|
|
<argument index="2" name="new_size" type="Vector2i" default="Vector2i(-1, -1)" />
|
2021-05-07 15:41:39 +02:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="remove_alternative_tile">
|
2021-07-30 15:28:05 +02:00
|
|
|
<return type="void" />
|
|
|
|
<argument index="0" name="atlas_coords" type="Vector2i" />
|
|
|
|
<argument index="1" name="alternative_tile" type="int" />
|
2021-05-07 15:41:39 +02:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="remove_tile">
|
2021-07-30 15:28:05 +02:00
|
|
|
<return type="void" />
|
|
|
|
<argument index="0" name="atlas_coords" type="Vector2i" />
|
2021-05-07 15:41:39 +02:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="set_alternative_tile_id">
|
2021-07-30 15:28:05 +02:00
|
|
|
<return type="void" />
|
|
|
|
<argument index="0" name="atlas_coords" type="Vector2i" />
|
|
|
|
<argument index="1" name="alternative_tile" type="int" />
|
|
|
|
<argument index="2" name="new_id" type="int" />
|
2021-05-07 15:41:39 +02:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
</methods>
|
|
|
|
<members>
|
2019-09-24 19:45:03 +02:00
|
|
|
<member name="margins" type="Vector2i" setter="set_margins" getter="get_margins" default="Vector2i(0, 0)">
|
2021-05-07 15:41:39 +02:00
|
|
|
</member>
|
2019-09-24 19:45:03 +02:00
|
|
|
<member name="separation" type="Vector2i" setter="set_separation" getter="get_separation" default="Vector2i(0, 0)">
|
2021-05-07 15:41:39 +02:00
|
|
|
</member>
|
|
|
|
<member name="texture" type="Texture2D" setter="set_texture" getter="get_texture">
|
|
|
|
</member>
|
2019-09-24 19:45:03 +02:00
|
|
|
<member name="tile_size" type="Vector2i" setter="set_texture_region_size" getter="get_texture_region_size" default="Vector2i(16, 16)">
|
2021-05-07 15:41:39 +02:00
|
|
|
</member>
|
|
|
|
</members>
|
|
|
|
<constants>
|
|
|
|
</constants>
|
|
|
|
</class>
|