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

background

font_files

font_string

licence

name

prune_small_text

types

version

background: Colour
classmethod default() Skin
encode() _SerSkin
font_files: list[tuple[str, bytes]]
font_string: str
classmethod from_file(file: Path) Skin
classmethod from_json(file: Path) Skin
classmethod from_msgpack(file: Path) Skin
get_order(name: str) int | None
get_type_by_name(name: str) ComponentType | None
licence: str
name: str
prune_small_text: float | None
save_json(directory: Path) None
save_msgpack(directory: Path) None
types: list[ComponentType]
version: int