File size: 1,269 Bytes
1f84d26
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# data_model.py (you would save this code as a Python file)

from dataclasses import dataclass
from typing import Optional, List

@dataclass
class BackroomsDataModel:
    """
    Data model for a dataset about the Backrooms.
    """
    level_name: str  # e.g., "Level 0", "The Lobby"
    level_number: Optional[int] = None  # If the level has a numerical designation
    description: str # A description of the level
    safety_class: Optional[str] = None # e.g., "Class 0: Safe", "Class 5: Unsafe"
    entity_presence: bool = False # Whether entities are known to be present
    entities: Optional[List[str]] = None # List of known entities in the level
    entry_points: Optional[List[str]] = None # How to enter this level
    exit_points: Optional[List[str]] = None # How to exit this level
    additional_info: Optional[str] = None # Any other relevant information

# Example usage (optional):
# level_0_data = BackroomsDataModel(
#     level_name="Level 0",
#     level_number=0,
#     description="The Lobby, a vast, non-euclidean space of yellow wallpaper and damp carpet.",
#     safety_class="Class 0: Safe",
#     entity_presence=False,
#     exit_points=["Noclip through a wall"],
#     additional_info="Smells like moist carpet."
# )
# print(level_0_data)