Add Mob class extending Entity
This commit is contained in:
parent
3cba2cdb7a
commit
028dcb51b8
1 changed files with 8 additions and 0 deletions
|
|
@ -14,3 +14,11 @@ class Entity:
|
|||
async def send(self, message: str) -> None:
|
||||
"""Send a message to this entity. Base implementation is a no-op."""
|
||||
pass
|
||||
|
||||
|
||||
@dataclass
|
||||
class Mob(Entity):
|
||||
"""Represents a non-player character (NPC) in the world."""
|
||||
|
||||
description: str = ""
|
||||
alive: bool = True
|
||||
|
|
|
|||
Loading…
Reference in a new issue