Documentation
¶
Overview ¶
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.
Index ¶
- type Advanced
- type Any
- type Expanded
- type Extension
- type ID
- 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) ID() ID
- 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) SetObject(obj [1]gd.Object) bool
- func (self Instance) SetSize(size Vector2i.XY)
- 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 Expanded ¶
type Expanded [1]gdclass.TileMapPattern
type Extension ¶
Extension can be embedded in a new struct to create an extension of this class. T should be the type that is embedding this Extension
func (*Extension[T]) AsRefCounted ¶
func (self *Extension[T]) AsRefCounted() [1]gd.RefCounted
func (*Extension[T]) AsResource ¶
func (*Extension[T]) AsTileMapPattern ¶
type ID ¶
ID is a typed object ID (reference) to an instance of this class, use it to store references to objects with unknown lifetimes, as an ID will not panic on use if the underlying object has been destroyed.
type Instance ¶
type Instance [1]gdclass.TileMapPattern
Instance of the class with convieniently typed arguments and results.
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 'coords'.
func (Instance) GetCellAtlasCoords ¶
Returns the tile atlas coordinates ID of the cell at 'coords'.
func (Instance) GetCellSourceId ¶
Returns the tile source ID of the cell at '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 'coords'. See [Instance.Tilemap.SetCell].