(Underdepth) Pass 3

This commit is contained in:
AlexKucera committed 2026-08-13 07:28:55 +02:00
1 parent 2bd65880c9
commit 6d9b7e6efd
30 files changed
+4151

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
"""Base entity: position, name, color. Everything visible on the map derives."""
from __future__ import annotations
from dataclasses import dataclass
@dataclass(slots=True)
class Entity:
x: int = 0
y: int = 0
name: str = ""
color: tuple[int, int, int] = (255, 255, 255)
@property
def pos(self) -> tuple[int, int]:
return (self.x, self.y)