Add some icons, create QuestMap model
This commit is contained in:
parent
6c88218391
commit
54fe65cf28
18 changed files with 61 additions and 2 deletions
13
questhelper/map/map_renderer.py
Normal file
13
questhelper/map/map_renderer.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
from map.quest_map import MapEncounter, QuestMap, EncounterType
|
||||
|
||||
_ICONS = {
|
||||
EncounterType.BATTLE_REGULAR: 'noun_Battle_3647629.png'
|
||||
}
|
||||
|
||||
|
||||
def render_map(quest_map: QuestMap):
|
||||
return [__render_encounter(MapEncounter(EncounterType.BATTLE_REGULAR))] * 3
|
||||
|
||||
|
||||
def __render_encounter(encounter: MapEncounter):
|
||||
return f'map/{_ICONS[encounter.type]}'
|
||||
Loading…
Add table
Add a link
Reference in a new issue