Commit Graph

5 Commits

Author SHA1 Message Date
Gaël C 146f009684 Re-organize grid management code for less dependance between files
Remove gridio.lua and move its function to appropriate files
2024-02-01 19:30:07 +01:00
Gaël C 2cf3b19167 Generate grid directly in pregenerate.lua, not in a function 2024-01-31 11:32:24 +01:00
Gaël C 4697f9c948 Remove "full" grid loading method
I see no reason to let the choice between a greedy and a lighter loading method, so better remove it to simplify the code.
2024-01-31 10:47:37 +01:00
Gael-de-Sailly d00295600d Add a very brief description at the head of every file 2022-01-26 11:25:17 +01:00
Gael-de-Sailly 6564d40b85 Refactor grid loading and reorganize code
Move grid management functions out of polygons.lua, in a new file called gridmanager.lua
Explicitly call other files and grid management functions from init.lua
to make workflow more apparent
Move mapgen loop out of init.lua, into mapgen.lua
2022-01-26 10:54:11 +01:00