Add some icons, create QuestMap model

This commit is contained in:
henriquenakashima 2021-03-27 22:48:42 -04:00
parent 6c88218391
commit 54fe65cf28
18 changed files with 61 additions and 2 deletions

View 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]}'