summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/UI/XFavorParam.cs
blob: 23d69dfe0b703761156ce12f973b3bea103a0faa (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
using System;
using UILib;

namespace XMainClient.UI
{
	internal class XFavorParam : XDataBase
	{
		public XNpc Npc;

		public string Text;

		public bool isShowSend = false;

		public bool isShowExchange = false;

		public bool isShowExchangeRedpoint = false;

		public ButtonClickEventHandler sendCallback;

		public ButtonClickEventHandler exchangeCallback;

		public override void Init()
		{
			this.Npc = null;
			this.Text = string.Empty;
			this.isShowSend = false;
			this.isShowExchange = false;
			this.isShowExchangeRedpoint = false;
			this.sendCallback = null;
			this.exchangeCallback = null;
		}

		public override void Recycle()
		{
			XDataPool<XFavorParam>.Recycle(this);
		}
	}
}