A single "square" on the map.
collides_with(layer) → boolean | What type of things can collide with this tile? |
to_be_deconstructed() → boolean | Is this tile marked for deconstruction? |
order_deconstruction(force, player) → LuaEntity | Orders deconstruction of this tile by the given force. |
cancel_deconstruction(force, player) | Cancels deconstruction if it is scheduled, does nothing otherwise. |
name :: string [R] | Prototype name of this tile. |
prototype :: LuaTilePrototype [R] | |
position :: Position [R] | The position this tile references. |
hidden_tile :: string (optional) [R] | |
surface :: LuaSurface [R] | The surface this tile is on. |
valid :: boolean [R] | Is this object valid? |
object_name :: string [R] | The class name of this object. |
help() → string | All methods, and properties that this object supports. |
What type of things can collide with this tile?
game.player.print(tostring(game.player.surface.get_tile(1, 1).collides_with("player-layer")))
Is this tile marked for deconstruction?
Orders deconstruction of this tile by the given force.
nil
.Cancels deconstruction if it is scheduled, does nothing otherwise.
Prototype name of this tile. E.g. "sand-3"
or "grass-2"
.
The position this tile references.
The surface this tile is on.