summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetUnitAppearanceNew.cs
blob: 97ee821ef486e86c3e90d2621b23a8404f8c5e0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
using System;
using System.Reflection;
using KKSG;
using XMainClient.UI;
using XUtliPoolLib;

namespace XMainClient
{
	internal class Process_RpcC2M_GetUnitAppearanceNew
	{
		public static void OnReply(GetUnitAppearanceArg oArg, GetUnitAppearanceRes oRes)
		{
			bool flag = oRes == null;
			if (flag)
			{
				XSingleton<UiUtility>.singleton.ShowErrorCode(ErrorCode.ERR_FAILED);
			}
			else
			{
				bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST;
				if (flag2)
				{
					string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName;
					XSingleton<UiUtility>.singleton.OnGetInvalidRequest(fullName);
				}
				else
				{
					bool flag3 = oRes.errorcode > ErrorCode.ERR_SUCCESS;
					if (flag3)
					{
						XSingleton<UiUtility>.singleton.ShowSystemTip(oRes.errorcode, "fece00");
					}
					else
					{
						bool flag4 = oArg.type == 1u;
						if (flag4)
						{
							XRankDocument specificDocument = XDocuments.GetSpecificDocument<XRankDocument>(XRankDocument.uuID);
							specificDocument.OnGetUnitAppearance(oRes);
						}
						else
						{
							bool flag5 = oArg.type == 2u;
							if (flag5)
							{
								XOtherPlayerInfoDocument specificDocument2 = XDocuments.GetSpecificDocument<XOtherPlayerInfoDocument>(XOtherPlayerInfoDocument.uuID);
								specificDocument2.OnGetUnitAppearance(oRes);
							}
							else
							{
								bool flag6 = oArg.type == 3u;
								if (flag6)
								{
									XFlowerRankDocument specificDocument3 = XDocuments.GetSpecificDocument<XFlowerRankDocument>(XFlowerRankDocument.uuID);
									specificDocument3.OnGetUnitAppearance(oRes);
								}
								else
								{
									bool flag7 = oArg.type == 4u;
									if (flag7)
									{
										XCharacterCommonMenuDocument specificDocument4 = XDocuments.GetSpecificDocument<XCharacterCommonMenuDocument>(XCharacterCommonMenuDocument.uuID);
										specificDocument4.OnGetUnitAppearance(oRes);
									}
									else
									{
										bool flag8 = oArg.type == 5u;
										if (flag8)
										{
											XOtherPlayerInfoDocument specificDocument5 = XDocuments.GetSpecificDocument<XOtherPlayerInfoDocument>(XOtherPlayerInfoDocument.uuID);
											specificDocument5.OnGetSpriteInfoReturn(oRes);
										}
										else
										{
											bool flag9 = oArg.type == 6u;
											if (flag9)
											{
												XOtherPlayerInfoDocument specificDocument6 = XDocuments.GetSpecificDocument<XOtherPlayerInfoDocument>(XOtherPlayerInfoDocument.uuID);
												specificDocument6.OnGetPetInfoReturn(oRes);
											}
										}
									}
								}
							}
						}
					}
				}
			}
		}

		public static void OnTimeout(GetUnitAppearanceArg oArg)
		{
		}
	}
}