Exemple #1
0
        public void JudgingComplete(Guid roundId, Player winner, string actualSearch)
        {
            var data =
                new RoundWinner
                    {
                        round_id = roundId,
                        winning_player = (winner != null) ? winner.name : null,
                        actual_search = actualSearch
                    };

            var request = new ObjectPusherRequest(
                PUBLIC_CHANNEL,
                "game-judging-completed",
                data);

            server.Trigger(request);
        }
Exemple #2
0
        public void JudgingReady(Guid roundId, Player judge, Player[] players)
        {
            var data =
                new RoundStart
                    {
                        round_id = roundId,
                        players = players
                    };

            var request = new ObjectPusherRequest(
                judge.private_channel,
                "game-judging-ready",
                data);

            server.Trigger(request);
        }
Exemple #3
0
        public void RoundStarted(Guid roundId, string imageUrl, Player[] players)
        {
            var data =
                new RoundStart
                    {
                        round_id = roundId,
                        image_url = imageUrl,
                        players = players
                    };

            var request = new ObjectPusherRequest(
                PUBLIC_CHANNEL,
                "game-round-started",
                data);

            server.Trigger(request);
        }