From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/XNextDayRewardDocument.cs | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/XNextDayRewardDocument.cs (limited to 'Client/Assets/Scripts/XMainClient/XNextDayRewardDocument.cs') diff --git a/Client/Assets/Scripts/XMainClient/XNextDayRewardDocument.cs b/Client/Assets/Scripts/XMainClient/XNextDayRewardDocument.cs new file mode 100644 index 00000000..713a70f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XNextDayRewardDocument.cs @@ -0,0 +1,48 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XNextDayRewardDocument : XDocComponent + { + public override uint ID + { + get + { + return XNextDayRewardDocument.uuID; + } + } + + public int Status { get; set; } + + public int LeftTime { get; set; } + + public bool HallShow { get; set; } + + public new static readonly uint uuID = XSingleton.singleton.XHash("NextDayRewardDocument"); + + public void SendGetReward() + { + RpcC2G_GetNextDayReward rpc = new RpcC2G_GetNextDayReward(); + XSingleton.singleton.Send(rpc); + } + + public void QueryStatus() + { + PtcC2G_NextDayRewardReport proto = new PtcC2G_NextDayRewardReport(); + XSingleton.singleton.Send(proto); + } + + public void RefreshStatus(uint status, uint leftTime) + { + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public void LuaShow(bool show) + { + } + } +} -- cgit v1.1-26-g67d0