fn callback_poisson(
size: (u16, u16),
callback: PyObject
) -> MapInitializationWrapper
Expand description
callback_poisson(size, callback)
Map initializer which determines the breeding capacity by calling back into Python code, and drawing from a Poisson distribution using the result
Parameters:
size - tuple of map size in cells
callback - a Python function which is passed the x and y coordinates and is expected to return a float breeding capacity to used as parameter for the Poisson distribution