diff options
author | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
commit | 6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch) | |
tree | 7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PetOperation.cs |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PetOperation.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PetOperation.cs | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PetOperation.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PetOperation.cs new file mode 100644 index 00000000..f7366198 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PetOperation.cs @@ -0,0 +1,71 @@ +using System;
+using KKSG;
+using XMainClient.UI;
+using XMainClient.UI.UICommon;
+using XUtliPoolLib;
+
+namespace XMainClient
+{
+ internal class Process_RpcC2G_PetOperation
+ {
+ public static void OnReply(PetOperationArg oArg, PetOperationRes oRes)
+ {
+ PetOP type = oArg.type;
+ if (type == PetOP.PetExpTransfer)
+ {
+ bool flag = DlgBase<XPetMainView, XPetMainBehaviour>.singleton.ExpTransferHandler != null;
+ if (flag)
+ {
+ DlgBase<XPetMainView, XPetMainBehaviour>.singleton.ExpTransferHandler.m_CanTransfer = true;
+ }
+ }
+ bool flag2 = oRes.errorcode > ErrorCode.ERR_SUCCESS;
+ if (flag2)
+ {
+ XSingleton<UiUtility>.singleton.ShowSystemTip(oRes.errorcode, "fece00");
+ }
+ else
+ {
+ XPetDocument specificDocument = XDocuments.GetSpecificDocument<XPetDocument>(XPetDocument.uuID);
+ switch (oArg.type)
+ {
+ case PetOP.PetFellow:
+ specificDocument.OnMount(oArg, oRes);
+ break;
+ case PetOP.PetFight:
+ specificDocument.OnFight(oArg, oRes);
+ break;
+ case PetOP.PetFeed:
+ specificDocument.OnFeed(oArg, oRes);
+ break;
+ case PetOP.PetTouch:
+ specificDocument.OnPetTouch(oArg, oRes);
+ break;
+ case PetOP.PetRelease:
+ specificDocument.OnRelease(oArg, oRes);
+ break;
+ case PetOP.ExpandSeat:
+ specificDocument.OnBuySeat(oArg, oRes);
+ break;
+ case PetOP.SetPetPairRide:
+ specificDocument.OnReqSetTravelSetBack(oArg, oRes);
+ break;
+ case PetOP.QueryPetPairRideInvite:
+ specificDocument.OnReqReqInviteListBack(oArg, oRes);
+ break;
+ case PetOP.OffPetPairRide:
+ specificDocument.OnReqOffPetPairRideBack();
+ break;
+ case PetOP.IgnorePetPairRideInvite:
+ specificDocument.OnReqIgnoreAllBack();
+ break;
+ }
+ specificDocument.OnPetOperation(oArg, oRes);
+ }
+ }
+
+ public static void OnTimeout(PetOperationArg oArg)
+ {
+ }
+ }
+}
|