euchre-live

Euchre web-app for the socially distant family
git clone git://git.alexkarle.com/euchre-live.git
Log | Files | Refs | README | LICENSE

commit e3c85e6920c3aab5b9f09597cb1b9812ed1147c9 (patch)
parent dcfbc60d426fea9d69be705e771b0d3c26301623
Author: Alex Karle <alex@karle.co>
Date:   Wed, 29 Apr 2020 21:14:03 -0400

Euchre::Dealer: Add is_spectator flag to game msg

For clients who want an easy way to decide how to render the player.

Diffstat:
Mlib/Euchre/Dealer.pm | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/lib/Euchre/Dealer.pm b/lib/Euchre/Dealer.pm @@ -596,6 +596,7 @@ sub broadcast_gamestate { msg_type => 'game_state', game => $msg, hand => $p->{hand}, + is_spectator => (exists $p->{seat}) ? 0 : 1, sit_out => $p->{sit_out}, }; $p->{ws}->send({ json => $json });