|
@@ -20,7 +20,32 @@ namespace GFGGame
|
|
|
}
|
|
|
return false;
|
|
|
}
|
|
|
+ //请求其他玩家详细信息
|
|
|
+ public static async ETTask<RoleInfoDetailData> ReqOtherRoleDetailInfo(long friendId)
|
|
|
+ {
|
|
|
+ S2C_GetOtherRoleDetailInfo response = null;
|
|
|
+ response = (S2C_GetOtherRoleDetailInfo)await MessageHelper.SendToServer(new C2S_GetOtherRoleDetailInfo() { RoleId = friendId });
|
|
|
+ if (response != null)
|
|
|
+ {
|
|
|
+ if (response.Error == ErrorCode.ERR_Success)
|
|
|
+ {
|
|
|
+ RoleInfoDetailData roleInfoDetail = new RoleInfoDetailData();
|
|
|
+ roleInfoDetail.slogan = response.Signature;
|
|
|
+ roleInfoDetail.RoleLvl = response.RoleLvl;
|
|
|
+ if (response.CustomSuit != null)
|
|
|
+ {
|
|
|
+ roleInfoDetail.customSuitData = new CustomSuitData(response.CustomSuit.Pos);
|
|
|
+ roleInfoDetail.customSuitData.bg = response.CustomSuit.BgId;
|
|
|
+ roleInfoDetail.customSuitData.suitId = response.CustomSuit.SuitId;
|
|
|
+ roleInfoDetail.customSuitData.equipDatas = response.CustomSuit.EquipIds;
|
|
|
+ roleInfoDetail.customSuitData.pic = response.CustomSuit.Pic;
|
|
|
+ }
|
|
|
|
|
|
+ return roleInfoDetail;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return null;
|
|
|
+ }
|
|
|
//修改个人签名
|
|
|
public static async ETTask<string> ReqModifySlogan(string slogan)
|
|
|
{
|