Buckets:

download
raw
1.84 kB
from __future__ import annotations
import dataclasses
from typing import NamedTuple
from randovania.bitpacking.json_dataclass import EXCLUDE_DEFAULT, JsonDataclass
class HintDetails(NamedTuple):
determiner: str
"""
The standard determiner ('a ', 'an ', 'the ') for these details.
Should always have a trailing space if it isn't empty.
"""
description: str
"""The identifying feature of these hint details."""
@dataclasses.dataclass(frozen=True, order=True)
class HintFeature(JsonDataclass):
"""
A feature for categorizing PickupEntry, PickupNode, Area, and anything else that benefits from "tags" such as this.
Primarily intended for use with the Featural Hint system
"""
name: str = dataclasses.field(metadata={"init_from_extra": True})
long_name: str
hint_details: HintDetails = dataclasses.field(metadata={"store_named_tuple_without_names": True})
hidden: bool = dataclasses.field(default=False, metadata=EXCLUDE_DEFAULT)
"""Hidden features aren't displayed in the GUI, and can't be placed by the FeatureChooser."""
description: str = dataclasses.field(default="", metadata=EXCLUDE_DEFAULT)
"""Additional description to display in the GUI in the HintFeatureTab."""
random_hint_target: bool = dataclasses.field(default=True, metadata=EXCLUDE_DEFAULT)
"""Whether this feature is a valid target for random hints."""
specific_hint_target: bool = dataclasses.field(default=True, metadata=EXCLUDE_DEFAULT)
"""Whether this feature is a valid target for specific-location or specific-pickup hints."""
def __post_init__(self) -> None:
assert self.name, "Name must not be empty"
assert self.long_name, "Long name must not be empty"
def __repr__(self) -> str:
return f"{self.__class__.__name__}('{self.name}')"

Xet Storage Details

Size:
1.84 kB
·
Xet hash:
696ccee386f35d78002f258f1edbfd1b00e38227fc8fb1479b7e8b09dae79a77

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.