pandemonium_engine/modules/layered_tile_map/doc_classes/LayeredTileMapPattern.xml

88 lines
3.0 KiB
XML
Raw Normal View History

2024-03-01 10:43:35 +01:00
<?xml version="1.0" encoding="UTF-8" ?>
2024-03-10 10:36:13 +01:00
<class name="LayeredTileMapPattern" inherits="Resource" version="4.3">
2024-03-01 10:43:35 +01:00
<brief_description>
Holds a pattern to be copied from or pasted into [LayeredTileMap]s.
2024-03-01 10:43:35 +01:00
</brief_description>
<description>
This resource holds a set of cells to help bulk manipulations of [LayeredTileMap].
2024-03-01 10:43:35 +01:00
A pattern always start at the [code](0,0)[/code] coordinates and cannot have cells with negative coordinates.
</description>
<tutorials>
</tutorials>
<methods>
2024-03-10 10:36:13 +01:00
<method name="empty" qualifiers="const">
<return type="bool" />
<description>
Returns whether the pattern is empty or not.
</description>
</method>
2024-03-01 10:43:35 +01:00
<method name="get_cell_alternative_tile" qualifiers="const">
<return type="int" />
<argument index="0" name="coords" type="Vector2i" />
2024-03-01 10:43:35 +01:00
<description>
Returns the tile alternative ID of the cell at [param coords].
</description>
</method>
<method name="get_cell_atlas_coords" qualifiers="const">
<return type="Vector2i" />
<argument index="0" name="coords" type="Vector2i" />
2024-03-01 10:43:35 +01:00
<description>
Returns the tile atlas coordinates ID of the cell at [param coords].
</description>
</method>
<method name="get_cell_source_id" qualifiers="const">
<return type="int" />
<argument index="0" name="coords" type="Vector2i" />
2024-03-01 10:43:35 +01:00
<description>
Returns the tile source ID of the cell at [param coords].
</description>
</method>
<method name="get_size" qualifiers="const">
<return type="Vector2i" />
<description>
Returns the size, in cells, of the pattern.
</description>
</method>
<method name="get_used_cells" qualifiers="const">
2024-03-10 10:34:27 +01:00
<return type="PoolVector2iArray" />
2024-03-01 10:43:35 +01:00
<description>
Returns the list of used cell coordinates in the pattern.
</description>
</method>
<method name="has_cell" qualifiers="const">
<return type="bool" />
<argument index="0" name="coords" type="Vector2i" />
2024-03-01 10:43:35 +01:00
<description>
Returns whether the pattern has a tile at the given coordinates.
</description>
</method>
<method name="remove_cell">
<return type="void" />
<argument index="0" name="coords" type="Vector2i" />
<argument index="1" name="update_size" type="bool" />
2024-03-01 10:43:35 +01:00
<description>
Remove the cell at the given coordinates.
</description>
</method>
<method name="set_cell">
<return type="void" />
<argument index="0" name="coords" type="Vector2i" />
<argument index="1" name="source_id" type="int" default="-1" />
2024-03-10 10:36:13 +01:00
<argument index="2" name="atlas_coords" type="Vector2i" default="Vector2i( -1, -1 )" />
<argument index="3" name="alternative_tile" type="int" default="-1" />
2024-03-01 10:43:35 +01:00
<description>
Sets the tile identifiers for the cell at coordinates [param coords]. See [method LayeredTileMap.set_cell].
2024-03-01 10:43:35 +01:00
</description>
</method>
<method name="set_size">
<return type="void" />
<argument index="0" name="size" type="Vector2i" />
2024-03-01 10:43:35 +01:00
<description>
Sets the size of the pattern.
</description>
</method>
</methods>
2024-03-10 10:36:13 +01:00
<constants>
</constants>
2024-03-01 10:43:35 +01:00
</class>