foundry.core.graphics_set package#
Submodules#
foundry.core.graphics_set.GraphicsSet module#
- class GraphicsSet(pages: tuple[foundry.core.graphics_page.GraphicsPage.GraphicsPage, ...])#
Bases:
ConcreteValidator
,KeywordValidator
A representation of a series of graphical pages inside the ROM, that uses
attrs
to create a basic implementation.- Attributes:
- pages: tuple[GraphicsPage, …]
The pages that compose the graphical set.
- classmethod from_groups(groups: Sequence[GraphicsGroup], group_indexes: Sequence[int])#
- classmethod validate(values: Any) _KV #
Validates values by the predetermined kwargs validator suggestions with respect to the parent namespace passed inside values.
- Parameters:
- valuesAny
A series of values to be validated.
- Returns:
- _KV
The values validated and composed into its correct type.
- Raises:
- KeyError
The parent namespace was not defined inside values.
foundry.core.graphics_set.util module#
- get_graphics_pages_from_tileset(tileset: int) tuple[foundry.core.graphics_page.GraphicsPage.GraphicsPage, ...] #