mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Make object hook more dynamic; ignoring unknown arguments
This commit is contained in:
@@ -331,7 +331,7 @@ class Context(Node):
|
||||
await on_client_disconnected(self, endpoint)
|
||||
|
||||
|
||||
# separated out, due to compatibilty between clients
|
||||
# separated out, due to compatibility between clients
|
||||
def notify_hints(ctx: Context, team: int, hints: typing.List[Utils.Hint]):
|
||||
cmd = ctx.dumper([{"cmd": "Hint", "hints" : hints}])
|
||||
texts = ([format_hint(ctx, team, hint)] for hint in hints)
|
||||
@@ -369,8 +369,6 @@ async def server(websocket, path, ctx: Context):
|
||||
await ctx.disconnect(client)
|
||||
|
||||
|
||||
|
||||
|
||||
async def on_client_connected(ctx: Context, client: Client):
|
||||
await ctx.send_msgs(client, [{
|
||||
'cmd': 'RoomInfo',
|
||||
|
||||
Reference in New Issue
Block a user