| # data_model.py (you would save this code as a Python file) | |
| from dataclasses import dataclass | |
| from typing import Optional, List | |
| 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) |