diff skaapsteker/engine.py @ 290:c68f2f3efc7f

Item dropping and swapping.
author Jeremy Thurgood <firxen@gmail.com>
date Fri, 08 Apr 2011 21:58:48 +0200
parents afd9256ad682
children a9d760134706
line wrap: on
line diff
--- a/skaapsteker/engine.py	Fri Apr 08 21:44:39 2011 +0200
+++ b/skaapsteker/engine.py	Fri Apr 08 21:58:48 2011 +0200
@@ -151,3 +151,14 @@
         """Send a DsmEvent event to all NPCs.
            """
         super(GlobalNpcEvent, cls).post(ev=ev)
+
+
+class ItemRepopulationEvent(UserEvent): # TODO: Needed?
+
+    utype = "ITEM_REPOPULATION_EVENT"
+
+    @classmethod
+    def post(cls, item):
+        """Put a Sprite back in the world.
+           """
+        super(ItemRepopulationEvent, cls).post(item=item)