Page 1 of 1

[partially-solved] surface.get_tile{}, .get_tileproperties{}

Posted: Tue Oct 04, 2016 12:53 am
by aubergine18
Would it be possible to make surface.get_tile() and surface.get_tileproperties() accept position objects ( {x=x,y=y} or {x,y} )? In most cases where I'm doing stuff with tiles, I already have such object and would be nice to simply re-use it rather than pulling out specific properties just for these two functions. Most other tile/position related methods/properties already accept position objects, such as surface.create_entity(), player.position, etc., so it would also improve consistency.

Also, shouldn't get_tileproperties() be called get_tile_properties()?

Re: [solved] surface.get_tile{}, .get_tileproperties{}

Posted: Sat Oct 08, 2016 6:54 am
by aubergine18
Partially implemented in 0.14.13

viewtopic.php?f=3&t=33827

Doesn't look like get_tileproperties() was updated though: http://lua-api.factorio.com/latest/LuaS ... properties

Re: [partially-solved] surface.get_tile{}, .get_tileproperties{}

Posted: Fri Oct 14, 2016 4:01 pm
by aubergine18
Just tested surface.get_tileproperties() and it still requires two separate x,y params - would it be possible to update it to also accept position objects in form {x,y} and {x=x, y=y} ?