Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /randovania_randovania /randovania /game /layout.py
| from __future__ import annotations | |
| from dataclasses import dataclass | |
| from typing import TYPE_CHECKING | |
| if TYPE_CHECKING: | |
| from collections.abc import Callable | |
| from randovania.layout.base.base_configuration import BaseConfiguration | |
| from randovania.layout.base.cosmetic_patches import BaseCosmeticPatches | |
| from randovania.layout.preset_describer import GamePresetDescriber | |
| def _get_none(hash: bytes) -> str | None: | |
| return None | |
| class GameLayout: | |
| configuration: type[BaseConfiguration] | |
| # TODO Revise this text | |
| """Logic and gameplay settings such as teleporter shuffling.""" | |
| cosmetic_patches: type[BaseCosmeticPatches] | |
| """Cosmetic settings such as item icons on maps.""" | |
| preset_describer: GamePresetDescriber | |
| """Contains game-specific preset descriptions, used by the preset screen and Discord bot.""" | |
| get_ingame_hash: Callable[[bytes], str | None] = _get_none | |
| """(Optional) Takes a layout hash bytes and produces a string representing how the game | |
| will represent the hash in-game. Only override if the game cannot display arbitrary text on the title screen.""" | |
Xet Storage Details
- Size:
- 1.15 kB
- Xet hash:
- 1405f635e179724d51587ca0168976bd8bf6fb05e2e2319c4735640d653e67d5
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.