Page 1 of 1

Documentation associating EntityPrototype::build_grid_size and LuaEntityPrototype.building_grid_bit_shift

Posted: Wed Nov 01, 2023 9:53 pm
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?