Added custom district generator and old GDMC functions and classes (to get the height, water and tree map)

This commit is contained in:
NichiHachi
2024-06-11 04:56:54 +02:00
parent 6e5359c8af
commit c8abb90a84
10 changed files with 541 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import World
def get_data(world: World):
heightmap, watermap, treemap = world.getData()
heightmap.save('./data/heightmap.png')
watermap.save('./data/watermap.png')
treemap.save('./data/treemap.png')
def main():
world = World.World()
get_data(world)
if __name__ == '__main__':
main()