public EzPlayer(Gs2.Gs2Matchmaking.Model.Player @player) { UserId = @player.userId; Attributes = @player.attributes != null? @player.attributes.Select(value => { return(new EzAttribute(value)); } ).ToList() : new List <EzAttribute>(new EzAttribute[] {}); RoleName = @player.roleName; DenyUserIds = @player.denyUserIds != null? @player.denyUserIds.Select(value => { return(value); } ).ToList() : new List <string>(new string[] {}); }
/** * 自身のプレイヤー情報を設定 * * @param player 自身のプレイヤー情報 * @return this */ public CreateGatheringRequest WithPlayer(Gs2.Gs2Matchmaking.Model.Player player) { this.player = player; return(this); }
/** * プレイヤー情報を設定 * * @param player プレイヤー情報 * @return this */ public DoMatchmakingByPlayerRequest WithPlayer(Gs2.Gs2Matchmaking.Model.Player player) { this.player = player; return(this); }