コード例 #1
0
ファイル: GameHost.cs プロジェクト: MrLeebo/Hackathon
        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
ファイル: GameHost.cs プロジェクト: MrLeebo/Hackathon
        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);
        }