Class Tile
public class Tile
- Inheritance
-
Tile
- Inherited Members
Constructors
Tile(File, IntVector2, TileLayer[])
public Tile(File file, IntVector2 bottomLeft, TileLayer[] linkedTileLayers)
Parameters
file
FilebottomLeft
IntVector2linkedTileLayers
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
bottomRight
public IntVector2 bottomRight { get; set; }
Property Value
centre
public Vector2 centre { get; }
Property Value
- Vector2
file
public File file { get; }
Property Value
height
public int height { get; }
Property Value
rect
public IntRect rect { get; }
Property Value
tileLayersAppearsOn
public TileLayer[] tileLayersAppearsOn { get; }
Property Value
topLeft
public IntVector2 topLeft { get; set; }
Property Value
topRight
public IntVector2 topRight { get; set; }
Property Value
width
public int width { get; }
Property Value
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
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