(Underdepths): First pass
This commit is contained in:
1 parent
7c9699a7eb
commit
da780bd75f
31 files changed
+3554
No files matched your search
@@ -0,0 +1,16 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from dataclasses import dataclass
|
||||
|
||||
|
||||
@dataclass(slots=True)
|
||||
class Entity:
|
||||
x: int
|
||||
y: int
|
||||
glyph: str
|
||||
color: tuple[int, int, int]
|
||||
name: str
|
||||
|
||||
@property
|
||||
def position(self) -> tuple[int, int]:
|
||||
return self.x, self.y
|
||||
Reference in new issue
Block a user