示例#1
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);
        }
示例#2
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);
        }