summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/XMystShopDocument.cs
blob: 5cc0fccad5d8d8cafacc7fba73e74397e6c73170 (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
using System;
using System.Collections.Generic;
using KKSG;
using XUtliPoolLib;

namespace XMainClient
{
	internal class XMystShopDocument : XDocComponent
	{
		public override uint ID
		{
			get
			{
				return XMystShopDocument.uuID;
			}
		}

		public List<XMystShopGoods> GoodsList
		{
			get
			{
				return this.m_goodsList;
			}
		}

		public XMystShopView View
		{
			get
			{
				return this._view;
			}
			set
			{
				this._view = value;
			}
		}

		public uint refreshCost
		{
			get
			{
				return this._refreshCost;
			}
		}

		public new static readonly uint uuID = XSingleton<XCommon>.singleton.XHash("MystShopDocument");

		private List<XMystShopGoods> m_goodsList = new List<XMystShopGoods>();

		private XMystShopView _view = null;

		private uint refreshTimer = 0u;

		private uint _refreshCost = 0u;

		public override void OnDetachFromHost()
		{
			base.OnDetachFromHost();
			XSingleton<XTimerMgr>.singleton.KillTimer(this.refreshTimer);
			this.refreshTimer = 0u;
		}

		public void ReqOperateMystShop(MythShopOP operation, int index = 0)
		{
		}

		private void _QueryMythShop(object o = null)
		{
			this.ReqOperateMystShop(MythShopOP.MythShopQuery, 0);
		}

		protected override void OnReconnected(XReconnectedEventArgs arg)
		{
		}
	}
}