class-description NEWS COMMUNITY STORE TUTORIALS SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE TUTORIALS TOGGLE FULLSCREEN VOLLBILD AN/AUS ObjectRefCountedResource TileMapPattern
Holds a pattern to be copied from or pasted into TileMaps.

This resource holds a set of cells to help bulk manipulations of TileMap.

A pattern always start at the (0,0) coordinates and cannot have cells with negative coordinates.

int get_cell_alternative_tile<>( Vector2i coords=, coords:Vector2i=, ):int

Returns the tile alternative ID of the cell at coords.

Vector2i get_cell_atlas_coords<>( Vector2i coords=, coords:Vector2i=, ):Vector2i

Returns the tile atlas coordinates ID of the cell at coords.

int get_cell_source_id<>( Vector2i coords=, coords:Vector2i=, ):int

Returns the tile source ID of the cell at coords.

Vector2i get_size<>():Vector2i

Returns the size, in cells, of the pattern.

Array get_used_cells<>():Array

Returns the list of used cell coordinates in the pattern.

bool has_cell<>( Vector2i coords=, coords:Vector2i=, ):bool

Returns whether the pattern has a tile at the given coordinates.

bool is_empty<>():bool

Returns whether the pattern is empty or not.

void remove_cell<>( Vector2i coords=, coords:Vector2i=, bool update_size=, update_size:bool=, ):void

Remove the cell at the given coordinates.

void set_cell<>( 1 -=, -:1=, 1 -=, -:1=, ):void

Sets the tile identifiers for the cell at coordinates coords. See TileMap.set_cell().

void set_size<>( Vector2i size=, size:Vector2i=, ):void

Sets the size of the pattern.




All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...