update city

This commit is contained in:
bridge
2025-09-12 23:02:41 +08:00
parent e2f7afd6e3
commit 7933f20614
10 changed files with 201 additions and 78 deletions

View File

@@ -1,6 +1,6 @@
from dataclasses import dataclass
from src.classes.tile import Map
from src.classes.map import Map
from src.classes.calendar import Year, Month, MonthStamp
@dataclass
@@ -8,6 +8,8 @@ class World():
map: Map
month_stamp: MonthStamp
def get_prompt(self) -> str:
regions_str = "\n".join([str(region) for region in self.map.regions.values()])
return f"世界地图上存在的区域为:{regions_str}"
def get_info(self) -> str:
map_intro = "世界上的区域为:"
map_info = self.map.get_info()
info = f"{map_intro}\n{map_info}"
return info