X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=server.coffee;h=82e4872647421038536d6a4280454079f07d0c23;hb=9f3c815c1cc9fa0b68771487362065bd8df9a17e;hp=089523ad4d5116b8bcfae57a47c8351dbc49b892;hpb=078a999a7b7ed2ae37e27d88b3039221fbc1d90c;p=peach-cgt.git diff --git a/server.coffee b/server.coffee index 089523a..82e4872 100644 --- a/server.coffee +++ b/server.coffee @@ -161,8 +161,8 @@ new_game = (id) -> game.p1_queue = [] game.p2_queue = [] - game.on 'move', (agent, card, x, y, z) -> - forward_events.call this, 'move', agent, card, x, y, z + game.on 'move', (agent, card, x, y, z, pile) -> + forward_events.call this, 'move', agent, card, x, y, z, pile game.on 'mark', (agent, card, state) -> forward_events.call this, 'mark', agent, card, state game.on 'flip', (agent, card, state) ->