add new actions and AI

This commit is contained in:
bridge
2025-08-28 22:25:05 +08:00
parent f7176af935
commit 96615c0c0d
13 changed files with 253 additions and 96 deletions

19
src/classes/event.py Normal file
View File

@@ -0,0 +1,19 @@
"""
event class
"""
from dataclasses import dataclass
from src.classes.calendar import Month, Year
@dataclass
class Event:
year: Year
month: Month
content: str
def __str__(self) -> str:
return f"{self.year}{self.month}月: {self.content}"
class NullEvent:
def __str__(self) -> str:
return ""