tile_renderer.skin.Skin
- class tile_renderer.skin.Skin(*, version: int = 2, name: str, types: list[ComponentType], font_files: list[tuple[str, bytes]], font_string: str = '', background: Colour = Colour(h=0.0, s=0.0, l=100.0), prune_small_text: float | None = None, licence: str = '')
Bases:
Struct- __init__()
Methods
__init__()default()encode()from_file(file)from_json(file)from_msgpack(file)get_order(name)get_type_by_name(name)save_json(directory)save_msgpack(directory)Attributes
- encode() _SerSkin
- get_type_by_name(name: str) ComponentType | None
- types: list[ComponentType]