(Underdepths) Prepare for Pass 4
This commit is contained in:
1 parent
eaa13ac86e
commit
f34f4e5014
30 files changed
-4151
No files matched your search
@@ -1,16 +0,0 @@
|
||||
"""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)
|
||||
Reference in new issue
Block a user