summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/HurtInfo.cs
blob: f474ee90046b7bfa3e97d7c1fc6146722c77296f (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
96
97
98
99
100
101
102
103
104
105
using System;

namespace XMainClient
{
	internal class HurtInfo : XDataBase
	{
		public long SkillToken
		{
			get
			{
				return this._skill_token;
			}
			set
			{
				this._skill_token = value;
			}
		}

		public XEntity Caster
		{
			get
			{
				return this._caster;
			}
			set
			{
				this._caster = value;
			}
		}

		public XEntity Target
		{
			get
			{
				return this._target;
			}
			set
			{
				this._target = value;
			}
		}

		public uint SkillID
		{
			get
			{
				return this._skill_id;
			}
			set
			{
				this._skill_id = value;
			}
		}

		public int HitPoint
		{
			get
			{
				return this._hitPoint;
			}
			set
			{
				this._hitPoint = value;
			}
		}

		private XEntity _caster;

		private XEntity _target;

		private int _hitPoint;

		private uint _skill_id;

		private long _skill_token;

		public SkillExternalCallback Callback;

		public HurtInfo()
		{
			this.Reset();
		}

		public void Reset()
		{
			this._caster = null;
			this._target = null;
			this._skill_id = 0u;
			this._hitPoint = 0;
			this._skill_token = 0L;
			this.Callback = null;
		}

		public override void Init()
		{
			base.Init();
			this.Reset();
		}

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