Documentation associating EntityPrototype::build_grid_size and LuaEntityPrototype.building_grid_bit_shift

Place to report issues and suggest improvements to the API documentation.
sparr
Smart Inserter
Smart Inserter
Posts: 1449
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

Documentation associating EntityPrototype::build_grid_size and LuaEntityPrototype.building_grid_bit_shift

Post by sparr »

I need to know if an entity should be treated like rails for placement purposes due to having a build_grid_size of 2 instead of 1.

I found LuaEntityPrototype.building_grid_bit_shift and it sounds and looks like it's the log2 (plus one) of build_grid_size, but the docs aren't quite clear on that, and the naming mismatch is weird. If this is the right thing, maybe mention them in each others' docs?
Post Reply

Return to “Documentation Improvement Requests”