From d3bd9ac1e3bd8af08b095018bfd157a2e9e3f8a6 Mon Sep 17 00:00:00 2001 From: Ben Date: Thu, 2 Jan 2020 23:01:25 +0000 Subject: [PATCH] Allow packets to be sent to a backyard --- houdini/data/room.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/houdini/data/room.py b/houdini/data/room.py index c037964..9b17af7 100644 --- a/houdini/data/room.py +++ b/houdini/data/room.py @@ -308,8 +308,11 @@ class PenguinBackyardRoom(RoomMixin): self.blackhole = False self.spawn = False self.stamp_group = None + self.penguin = None async def add_penguin(self, p): + self.penguin = p + if p.room: await p.room.remove_penguin(p) p.room = self @@ -321,6 +324,9 @@ class PenguinBackyardRoom(RoomMixin): p.frame = 1 p.toy = None + async def send_xt(self, *data, f=None): + await self.penguin.send_xt(*data) + class Room(db.Model, RoomMixin): __tablename__ = 'room'