|
@@ -818,5 +818,70 @@ namespace GFGGame
|
|
|
return logData;
|
|
|
}
|
|
|
|
|
|
+ //茶话会获取本期信息
|
|
|
+ public static async ETTask<bool> GetTeapartyInfos()
|
|
|
+ {
|
|
|
+ S2C_GetTeapartyInfos response = null;
|
|
|
+ response = (S2C_GetTeapartyInfos)await MessageHelper.SendToServer(new C2S_GetTeapartyInfos() { RoleId = RoleDataManager.roleId });
|
|
|
+ if (response != null)
|
|
|
+ {
|
|
|
+ if (response.Error == ErrorCode.ERR_Success)
|
|
|
+ {
|
|
|
+ LeagueDataManager.Instance.TeaPartyId = response.TeapartyId;
|
|
|
+ LeagueDataManager.Instance.TeaPartyStatus = response.Status;
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ //获取玩家本期茶话会参与信息
|
|
|
+ public static async ETTask<bool> GetTeapartyMatchingInfos()
|
|
|
+ {
|
|
|
+ S2C_TeapartyMatchingInfos response = null;
|
|
|
+ response = (S2C_TeapartyMatchingInfos)await MessageHelper.SendToServer(new C2S_GetTeapartyMatchingInfos() { RoleId = RoleDataManager.roleId });
|
|
|
+ if (response != null)
|
|
|
+ {
|
|
|
+ if (response.Error == ErrorCode.ERR_Success)
|
|
|
+ {
|
|
|
+ LeagueDataManager.Instance.RoleTeapartyInfoProto = response.RoleTeapartyInfo;
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ //获取茶会每个扮演角色坑位信息
|
|
|
+ public static async ETTask<bool> GetRoleContainerInfos()
|
|
|
+ {
|
|
|
+ S2C_GetRoleContainerInfos response = null;
|
|
|
+ response = (S2C_GetRoleContainerInfos)await MessageHelper.SendToServer(new C2S_GetRoleContainerInfos() { RoleId = RoleDataManager.roleId });
|
|
|
+ if (response != null)
|
|
|
+ {
|
|
|
+ if (response.Error == ErrorCode.ERR_Success)
|
|
|
+ {
|
|
|
+ LeagueDataManager.Instance.RoleContainerList = response.RoleContainerList;
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ //更换角色坑位以及搭配
|
|
|
+ public static async ETTask<bool> ChangeTeapartyDressup(int TeapartyRoleId,List<int> equipIds)
|
|
|
+ {
|
|
|
+ S2C_ChangeTeapartyDressup response = null;
|
|
|
+ response = (S2C_ChangeTeapartyDressup)await MessageHelper.SendToServer(new C2S_ChangeTeapartyDressup() { RoleId = RoleDataManager.roleId });
|
|
|
+ if (response != null)
|
|
|
+ {
|
|
|
+ if (response.Error == ErrorCode.ERR_Success)
|
|
|
+ {
|
|
|
+ //LeagueDataManager.Instance.Type = response.PerScore;
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|