Set up ability to run commands from the terminal

This commit is contained in:
Andrew Miner
2025-10-06 20:57:46 -06:00
parent a8b6e6b15e
commit 4637137152
18 changed files with 231 additions and 49 deletions
@@ -0,0 +1,22 @@
from tungston.core.world import World
from tungston.generator.markdown.report import Report
# Class ############################################################################################
class BiomeReport(Report):
def __init__(self, world:World):
super().__init__("biomes.md", world)
def build(self):
for biome in self.world.biomes.all():
self.line(f"# Biome: {biome.city} <{biome.gameId}>")
self.line()
self.indent()
for trait in biome.traits():
self.text("* ").line(trait)
self.outdent()
self.line()