fn callback(size: (u16, u16), callback: PyObject) -> MapInitializationWrapper
Expand description
callback(size, callback)
Map initializer which determines the breeding capacity by calling back into Python code
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 an integer breeding capacity