TileMapPattern

package
v0.0.0-...-59761c8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package TileMapPattern provides methods for working with TileMapPattern object instances.

Index

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 Any

type Any interface {
	gd.IsClass
	AsTileMapPattern() Instance
}

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 New

func New() Instance

func (Instance) AsObject

func (self Instance) AsObject() [1]gd.Object

func (Instance) AsRefCounted

func (self Instance) AsRefCounted() [1]gd.RefCounted

func (Instance) AsResource

func (self Instance) AsResource() Resource.Instance

func (Instance) AsTileMapPattern

func (self Instance) AsTileMapPattern() Instance

func (Instance) GetCellAlternativeTile

func (self Instance) GetCellAlternativeTile(coords Vector2i.XY) int

Returns the tile alternative ID of the cell at [param coords].

func (Instance) GetCellAtlasCoords

func (self Instance) GetCellAtlasCoords(coords Vector2i.XY) Vector2i.XY

Returns the tile atlas coordinates ID of the cell at [param coords].

func (Instance) GetCellSourceId

func (self Instance) GetCellSourceId(coords Vector2i.XY) int

Returns the tile source ID of the cell at [param coords].

func (Instance) GetSize

func (self Instance) GetSize() Vector2i.XY

Returns the size, in cells, of the pattern.

func (Instance) GetUsedCells

func (self Instance) GetUsedCells() []Vector2i.XY

Returns the list of used cell coordinates in the pattern.

func (Instance) HasCell

func (self Instance) HasCell(coords Vector2i.XY) bool

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

func (Instance) IsEmpty

func (self Instance) IsEmpty() bool

Returns whether the pattern is empty or not.

func (Instance) RemoveCell

func (self Instance) RemoveCell(coords Vector2i.XY, update_size bool)

Remove the cell at the given coordinates.

func (Instance) SetCell

func (self Instance) SetCell(coords Vector2i.XY)

Sets the tile identifiers for the cell at coordinates [param coords]. See [method TileMap.set_cell].

func (Instance) SetSize

func (self Instance) SetSize(size Vector2i.XY)

Sets the size of the pattern.

func (*Instance) UnsafePointer

func (self *Instance) UnsafePointer() unsafe.Pointer

func (Instance) Virtual

func (self Instance) Virtual(name string) reflect.Value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL