mirror of
https://github.com/solero/houdini.git
synced 2024-11-10 05:08:19 +00:00
penguins_by_character_id dictionary
This commit is contained in:
parent
280e42d4ba
commit
3c4d8461f1
@ -36,6 +36,9 @@ async def handle_join_server(p, penguin_id: int, login_key: str):
|
||||
p.server.penguins_by_id[p.data.id] = p
|
||||
p.server.penguins_by_username[p.data.username] = p
|
||||
|
||||
if p.data.character is not None:
|
||||
p.server.penguins_by_character_id[p.data.character] = p
|
||||
|
||||
p.joined_world = True
|
||||
|
||||
|
||||
|
@ -71,6 +71,7 @@ class Houdini:
|
||||
|
||||
self.penguins_by_id = {}
|
||||
self.penguins_by_username = {}
|
||||
self.penguins_by_character_id = {}
|
||||
|
||||
self.xt_listeners = XTListenerManager(self)
|
||||
self.xml_listeners = XMLListenerManager(self)
|
||||
|
Loading…
Reference in New Issue
Block a user