diff --git a/attribution.txt b/attribution.txt new file mode 100644 index 0000000..7aaf130 --- /dev/null +++ b/attribution.txt @@ -0,0 +1,11 @@ +Battle by Heztasia from the Noun Project +Shield by Kmg Design from the Noun Project +dragon by Frey Wazza from the Noun Project +Library by Frey Wazza from the Noun Project +Store by ProSymbols from the Noun Project +brussels town hall by myiconfinder from the Noun Project +Tent by agus raharjo from the Noun Project +cogs by Chameleon Design from the Noun Project +temple by rivercon from the Noun Project +Beer by lastspark from the Noun Project +Caravel by Rahmat Hidayat from the Noun Project \ No newline at end of file diff --git a/questhelper/__init__.py b/questhelper/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/questhelper/map/map_generator.py b/questhelper/map/map_generator.py new file mode 100644 index 0000000..556e105 --- /dev/null +++ b/questhelper/map/map_generator.py @@ -0,0 +1,5 @@ +from map.quest_map import QuestMap + + +def generate_map() -> QuestMap: + return QuestMap() diff --git a/questhelper/map/map_renderer.py b/questhelper/map/map_renderer.py new file mode 100644 index 0000000..b98ee33 --- /dev/null +++ b/questhelper/map/map_renderer.py @@ -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]}' diff --git a/questhelper/map/quest_map.py b/questhelper/map/quest_map.py new file mode 100644 index 0000000..0f5020e --- /dev/null +++ b/questhelper/map/quest_map.py @@ -0,0 +1,16 @@ +import dataclasses +import enum + + +class EncounterType(enum.Enum): + BATTLE_REGULAR = 'battle_regular' + + +class QuestMap: + def __init__(self): + pass + + +@dataclasses.dataclass +class MapEncounter: + type: EncounterType diff --git a/questhelper/map/static/map/noun_Battle_3647629.png b/questhelper/map/static/map/noun_Battle_3647629.png new file mode 100644 index 0000000..331b34d Binary files /dev/null and b/questhelper/map/static/map/noun_Battle_3647629.png differ diff --git a/questhelper/map/static/map/noun_Beer_2076695.png b/questhelper/map/static/map/noun_Beer_2076695.png new file mode 100644 index 0000000..fef541a Binary files /dev/null and b/questhelper/map/static/map/noun_Beer_2076695.png differ diff --git a/questhelper/map/static/map/noun_Caravel_2421659.png b/questhelper/map/static/map/noun_Caravel_2421659.png new file mode 100644 index 0000000..476df2e Binary files /dev/null and b/questhelper/map/static/map/noun_Caravel_2421659.png differ diff --git a/questhelper/map/static/map/noun_Library_3820590.png b/questhelper/map/static/map/noun_Library_3820590.png new file mode 100644 index 0000000..5e33176 Binary files /dev/null and b/questhelper/map/static/map/noun_Library_3820590.png differ diff --git a/questhelper/map/static/map/noun_Shield_3806325.png b/questhelper/map/static/map/noun_Shield_3806325.png new file mode 100644 index 0000000..62ddf3f Binary files /dev/null and b/questhelper/map/static/map/noun_Shield_3806325.png differ diff --git a/questhelper/map/static/map/noun_Store_786819.png b/questhelper/map/static/map/noun_Store_786819.png new file mode 100644 index 0000000..525b2ab Binary files /dev/null and b/questhelper/map/static/map/noun_Store_786819.png differ diff --git a/questhelper/map/static/map/noun_Tent_3814999.png b/questhelper/map/static/map/noun_Tent_3814999.png new file mode 100644 index 0000000..83e741b Binary files /dev/null and b/questhelper/map/static/map/noun_Tent_3814999.png differ diff --git a/questhelper/map/static/map/noun_brussels town hall_3284349.png b/questhelper/map/static/map/noun_brussels town hall_3284349.png new file mode 100644 index 0000000..7f9fb95 Binary files /dev/null and b/questhelper/map/static/map/noun_brussels town hall_3284349.png differ diff --git a/questhelper/map/static/map/noun_cogs_442166.png b/questhelper/map/static/map/noun_cogs_442166.png new file mode 100644 index 0000000..3db1b25 Binary files /dev/null and b/questhelper/map/static/map/noun_cogs_442166.png differ diff --git a/questhelper/map/static/map/noun_dragon_3820621.png b/questhelper/map/static/map/noun_dragon_3820621.png new file mode 100644 index 0000000..53d2d57 Binary files /dev/null and b/questhelper/map/static/map/noun_dragon_3820621.png differ diff --git a/questhelper/map/static/map/noun_temple_2382601.png b/questhelper/map/static/map/noun_temple_2382601.png new file mode 100644 index 0000000..3bb50f6 Binary files /dev/null and b/questhelper/map/static/map/noun_temple_2382601.png differ diff --git a/questhelper/map/templates/map/index.html b/questhelper/map/templates/map/index.html index 1afc376..ee62b30 100644 --- a/questhelper/map/templates/map/index.html +++ b/questhelper/map/templates/map/index.html @@ -1,4 +1,11 @@ +{% load static %}
+{% for room in rooms %}
+