Table of Contents

Class Tile

Namespace
PAC.Tilesets
public class Tile
Inheritance
Tile
Inherited Members

Constructors

Tile(File, IntVector2, TileLayer[])

public Tile(File file, IntVector2 bottomLeft, TileLayer[] linkedTileLayers)

Parameters

file File
bottomLeft IntVector2
linkedTileLayers TileLayer[]

The tile layers that the tile is on that are associated with each of the layers in the tile's file. Given in the same order as the layers in the tile's file.

Properties

bottomLeft

public IntVector2 bottomLeft { get; set; }

Property Value

IntVector2

bottomRight

public IntVector2 bottomRight { get; set; }

Property Value

IntVector2

centre

public Vector2 centre { get; }

Property Value

Vector2

file

public File file { get; }

Property Value

File

height

public int height { get; }

Property Value

int

rect

public IntRect rect { get; }

Property Value

IntRect

tileLayersAppearsOn

public TileLayer[] tileLayersAppearsOn { get; }

Property Value

TileLayer[]

topLeft

public IntVector2 topLeft { get; set; }

Property Value

IntVector2

topRight

public IntVector2 topRight { get; set; }

Property Value

IntVector2

width

public int width { get; }

Property Value

int

Methods

LayerInTileToTileLayer(Layer)

Takes in the layer (that must be in the tile's file) and returns the tile layer (that the tile is on) that the layer is associated with.

public TileLayer LayerInTileToTileLayer(Layer layer)

Parameters

layer Layer

Returns

TileLayer

SubscribeToOnMoved(UnityAction<IntRect>)

public void SubscribeToOnMoved(UnityAction<IntRect> call)

Parameters

call UnityAction<IntRect>

TileLayerToLayerInTile(TileLayer)

Takes in the tile layer (that this tile must be on) and returns the layer it is associated with in the tile's file.

public Layer TileLayerToLayerInTile(TileLayer tileLayer)

Parameters

tileLayer TileLayer

Returns

Layer