-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata.py
More file actions
35 lines (27 loc) · 774 Bytes
/
data.py
File metadata and controls
35 lines (27 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from pydantic import BaseModel
from typing import List, Optional
class Item(BaseModel):
name: str = ""
description: str = ""
property: str = ""
class Character(BaseModel):
name: str = ""
class_name: str = ""
backstory: str = ""
strengths: list[str] = [""]
weaknesses: list[str] = [""]
items: List[Item] = [Item()]
feeling: str = ""
embarrassment: int = 0
class Environment(BaseModel):
name: str = ""
type: str = ""
description: str = ""
challenge: str = ""
reward: str = ""
class GameState(BaseModel):
character: Character = Character()
environment: Environment = Environment()
mission_description: Optional[str] = None
mission_summary: Optional[str] = None
game_over: bool = False