コード例 #1
0
    public APICall <PostIglooPlayersOperation> PostIglooPlayers(ZoneId igloo, string language, bool bypassCaptcha = false)
    {
        PostIglooPlayersOperation postIglooPlayersOperation = new PostIglooPlayersOperation(igloo, language);

        postIglooPlayersOperation.BypassCaptcha = bypassCaptcha;
        return(new APICall <PostIglooPlayersOperation>(clubPenguinClient, postIglooPlayersOperation));
    }
コード例 #2
0
        private void onPostRoomPlayersResponse(PostIglooPlayersOperation operation, HttpResponse httpResponse)
        {
            signedJoinRoomData = operation.SignedJoinRoomData;
            string subContentVersion = new ContentIdentifier(signedJoinRoomData.Data.room).subContentVersion;

            if (subContentVersion != clubPenguinClient.ContentVersionDate.ToString("yyyy-MM-dd"))
            {
                DateTime dateTime = DateTime.Parse(subContentVersion);
                clubPenguinClient.ContentVersionDate = dateTime;
                Service.Get <EventDispatcher>().DispatchEvent(new WorldServiceEvents.ContentDateChanged(dateTime));
            }
            clubPenguinClient.GameServer.AddEventListener(GameServerEvent.ROOM_JOIN, onRoomJoin);
            clubPenguinClient.GameServer.AddEventListener(GameServerEvent.ROOM_JOIN_ERROR, onRoomJoinError);
            clubPenguinClient.GameServer.AddEventListener(GameServerEvent.ROOM_FULL, onRoomFull);
            clubPenguinClient.GameServer.JoinRoom(signedJoinRoomData);
        }
コード例 #3
0
 private void onPostRoomPlayersError(PostIglooPlayersOperation operation, HttpResponse response)
 {
     Log.LogNetworkErrorFormatted(this, "onPostRoomPlayersError, status: {0}, body: {1}", response.StatusCode, response.Text);
     NetworkErrorService.OnError(response, errorHandler, onPostRoomPlayersErrorMapper);
 }