Library that allows enemy spawners to spawn turrets, as if they were regular units.
Usage:
Set the unit field on the unit spawn definition in the spawner's result_unit list to a turret. It can not be an ammo turret, it has to be a turret prototype.
That is it, treat the turret as if it was any spawnable unit.
The code runs in final fixes, have your spawner ready until then.
https://lua-api.factorio.com/latest/prototypes/TurretPrototype.html
https://lua-api.factorio.com/latest/prototypes/EnemySpawnerPrototype.html
https://lua-api.factorio.com/latest/types/UnitSpawnDefinition.html