keine ahnung...

This commit is contained in:
staubsauger 2024-08-19 15:47:27 +02:00
parent 64e4e4f437
commit 68aa90cac8
4 changed files with 10 additions and 8 deletions

View file

@ -57,13 +57,15 @@ def on_position_changed(entity: Entity, old: Position | None, new: Position | No
if new is not None:
entity.tags.add(new)
from numpy.typing import NDArray
@attrs.define(frozen=True)
class Graphic:
"""An entities icon and color."""
ch: int = ord("!")
fg: tuple[int, int, int] = (255, 255, 255)
fg: NDArray = (255, 255, 255, 255)
bg: NDArray = (0, 0, 0, 0)
Action: Final = ("Action", Callable[[Entity], None])
"""Possible action."""