LBoard.py - Anderas2/Heroscribe2 GitHub Wiki
The corridors are a list of lists currently:
corridors = [](/Anderas2/Heroscribe2/wiki/).
The outer list would be X, the inner list would be Y.
You access it by corridors[X][Y].
I don't know if that's intelligent.
I have seen that in the object.xml, for each board the corridors are defined. I guess that's for the us-like coloring of corridors. Each square has a bool value saying if it is a corridor or not.
The region currently is a sorted dict. It is the closest that I could find to match the java treemap.
If it is set, I assign the input directly to a region key, resulting in something like that:
region["square 1"] = "Goblin" (imagine an icon here)
resulting in
region = {"square 1": "Goblin"}
It might be more interesting to assign to a list of content so that you can have several icons in one square.
region = {"square 1" : ["Goblin", "Carpet Room"]}
To keep in mind for later, also for LObject.py