Documentation
¶
Overview ¶
Package TileMapPattern provides methods for working with TileMapPattern object instances.
Index ¶
- type Advanced
- type Any
- type Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) AsResource() Resource.Instance
- func (self Instance) AsTileMapPattern() Instance
- func (self Instance) GetCellAlternativeTile(coords Vector2i.XY) int
- func (self Instance) GetCellAtlasCoords(coords Vector2i.XY) Vector2i.XY
- func (self Instance) GetCellSourceId(coords Vector2i.XY) int
- func (self Instance) GetSize() Vector2i.XY
- func (self Instance) GetUsedCells() []Vector2i.XY
- func (self Instance) HasCell(coords Vector2i.XY) bool
- func (self Instance) IsEmpty() bool
- func (self Instance) RemoveCell(coords Vector2i.XY, update_size bool)
- func (self Instance) SetCell(coords Vector2i.XY)
- func (self Instance) SetSize(size Vector2i.XY)
- func (self *Instance) UnsafePointer() unsafe.Pointer
- func (self Instance) Virtual(name string) reflect.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advanced ¶
type Advanced = class
Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.
type Instance ¶
type Instance [1]gdclass.TileMapPattern
This resource holds a set of cells to help bulk manipulations of [TileMap]. A pattern always start at the [code](0,0)[/code] coordinates and cannot have cells with negative coordinates.
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) AsResource ¶
func (Instance) AsTileMapPattern ¶
func (Instance) GetCellAlternativeTile ¶
Returns the tile alternative ID of the cell at [param coords].
func (Instance) GetCellAtlasCoords ¶
Returns the tile atlas coordinates ID of the cell at [param coords].
func (Instance) GetCellSourceId ¶
Returns the tile source ID of the cell at [param coords].
func (Instance) GetUsedCells ¶
Returns the list of used cell coordinates in the pattern.
func (Instance) RemoveCell ¶
Remove the cell at the given coordinates.
func (Instance) SetCell ¶
Sets the tile identifiers for the cell at coordinates [param coords]. See [method TileMap.set_cell].