Add support for user collectibles

This commit is contained in:
Soheab
2025-08-26 09:34:18 +02:00
committed by GitHub
parent 69f06c9456
commit cbff6ddef9
8 changed files with 256 additions and 13 deletions

View File

@ -83,6 +83,8 @@ __all__ = (
'OnboardingMode',
'SeparatorSpacing',
'MediaItemLoadingState',
'CollectibleType',
'NameplatePalette',
)
@ -968,6 +970,24 @@ class MediaItemLoadingState(Enum):
not_found = 3
class CollectibleType(Enum):
nameplate = 'nameplate'
class NameplatePalette(Enum):
crimson = 'crimson'
berry = 'berry'
sky = 'sky'
teal = 'teal'
forest = 'forest'
bubble_gum = 'bubble_gum'
violet = 'violet'
cobalt = 'cobalt'
clover = 'clover'
lemon = 'lemon'
white = 'white'
def create_unknown_value(cls: Type[E], val: Any) -> E:
value_cls = cls._enum_value_cls_ # type: ignore # This is narrowed below
name = f'unknown_{val}'