LuaSurface::find_decoratives_filtered radius parameter
Posted: Wed Dec 27, 2023 9:46 am
There is an inconsistency regarding LuaSurface::find_*_filtered functions:
- LuaSurface::find_entities_filtered accept a radius parameter.
- LuaSurface::find_tiles_filtered accept a radius parameter.
- LuaSurface::find_decoratives_filtered does not accept a radius parameter.
Also, with the recent addition of LuaEntityPrototype::spawn_decoration [R] (thank you Rseding91 btw
) which are expressed with CreateDecorativesTriggerEffectItem::spawn_min_radius and CreateDecorativesTriggerEffectItem::spawn_max_radius it doesn't make sense to not have a circular search with the LuaSurface::find_decoratives_filtered function.
- LuaSurface::find_entities_filtered accept a radius parameter.
- LuaSurface::find_tiles_filtered accept a radius parameter.
- LuaSurface::find_decoratives_filtered does not accept a radius parameter.
Also, with the recent addition of LuaEntityPrototype::spawn_decoration [R] (thank you Rseding91 btw
