add new actions and AI
This commit is contained in:
19
src/classes/event.py
Normal file
19
src/classes/event.py
Normal 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 ""
|
||||
Reference in New Issue
Block a user