kts.AddTile – add a Tile to the dungeon
result = kts.AddTile(pos, tile)
Adds a copy of tile tile
to the dungeon at position pos
. The tile
should have previously been created using a call to kts.Tile.
No value is returned.
Errors will be generated if the map position or Tile given are invalid.
Remember that map squares can contain multiple Tiles (for example, a floor tile with a dead knight body tile on top of it); so if you want to replace an existing Tile (instead of just overlaying a new Tile on top) then you would need to call kts.RemoveTile first. You can also use kts.GetTiles to inspect the existing tile(s) on a square if you need to.