The specifications for a surface must be defined before the surface is generates, so I'd suggest an additional table as optional argument for the create_surface() function. I'd imagine something like this:
Code: Select all
game.create_surface("tatooine",game.surfaces["nauvis"].map_gen_settings,
{
{
to_set=game.tile_prototype["grass"]
enable=false
},
{
to_set=game.tile_prototype["grass-medium"]
enable=false
},
{
to_set=game.entity_prototype["tree-01"]
enable=false
},
{
to_set=game.entity_prototype["tree-02"]
enable=false
}
}
)
I think the ability to change autoplace settings for different surfaces would be too much to ask for, but this should do it.