Set both the type and flags of a tile at the given grid position.
Tile X index
Tile Y index
Tile type ID
Bitwise flags (e.g. hazard, ladder)
Set both the type and flags of a tile at the given grid position.