made door actionable

This commit is contained in:
Lukas Nöllemeyer 2024-08-17 14:47:34 +02:00
parent 6a5e5d3137
commit 0d9de5b208
4 changed files with 13 additions and 14 deletions

View file

@ -2,7 +2,7 @@
from __future__ import annotations
from typing import Final, Self
from typing import Final, Self, Callable
import attrs
import math
@ -65,6 +65,8 @@ class Graphic:
ch: int = ord("!")
fg: tuple[int, int, int] = (255, 255, 255)
Action: Final = ("Action", Callable[[tcod.ecs.Entity], None])
"""Possible action."""
Gold: Final = ("Gold", int)
"""Amount of gold."""