Class World::VisibleTile

Nested Relationships

This class is a nested type of Class World.

Class Documentation

class VisibleTile

Visible tile in game.

Public Functions

VisibleTile()

Default constructor

void Instantiate(Int2 index, TilePrefab newprefab, float tileSize)

Add tile to visible world grid and update the poolObject

Parameters
  • index: position in world grid

  • newprefab: tile data

  • tileSize: size in units

void Destroy()

Remove tile from visible world grid and update the poolObject

Public Members

TilePrefab tilePrefab

Tile data

int rotation

Rotation to apply