From 028dcb51b8284d1eda9ef5c2d90d98969a9e4bf3 Mon Sep 17 00:00:00 2001 From: Jared Miller Date: Sat, 7 Feb 2026 20:31:26 -0500 Subject: [PATCH] Add Mob class extending Entity --- src/mudlib/entity.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/mudlib/entity.py b/src/mudlib/entity.py index bc443c3..e011c33 100644 --- a/src/mudlib/entity.py +++ b/src/mudlib/entity.py @@ -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