mirror of
https://github.com/solero/houdini.git
synced 2024-11-12 13:48:20 +00:00
Allow packets to be sent to a backyard
This commit is contained in:
parent
1b09500fed
commit
d3bd9ac1e3
@ -308,8 +308,11 @@ class PenguinBackyardRoom(RoomMixin):
|
|||||||
self.blackhole = False
|
self.blackhole = False
|
||||||
self.spawn = False
|
self.spawn = False
|
||||||
self.stamp_group = None
|
self.stamp_group = None
|
||||||
|
self.penguin = None
|
||||||
|
|
||||||
async def add_penguin(self, p):
|
async def add_penguin(self, p):
|
||||||
|
self.penguin = p
|
||||||
|
|
||||||
if p.room:
|
if p.room:
|
||||||
await p.room.remove_penguin(p)
|
await p.room.remove_penguin(p)
|
||||||
p.room = self
|
p.room = self
|
||||||
@ -321,6 +324,9 @@ class PenguinBackyardRoom(RoomMixin):
|
|||||||
p.frame = 1
|
p.frame = 1
|
||||||
p.toy = None
|
p.toy = None
|
||||||
|
|
||||||
|
async def send_xt(self, *data, f=None):
|
||||||
|
await self.penguin.send_xt(*data)
|
||||||
|
|
||||||
|
|
||||||
class Room(db.Model, RoomMixin):
|
class Room(db.Model, RoomMixin):
|
||||||
__tablename__ = 'room'
|
__tablename__ = 'room'
|
||||||
|
Loading…
Reference in New Issue
Block a user