summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/SBuffRecord.cs
blob: 5724facbe184668be8f137084b2321df4bd28010 (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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using ProtoBuf;

namespace KKSG
{
	[ProtoContract(Name = "SBuffRecord")]
	[Serializable]
	public class SBuffRecord : IExtensible
	{
		[ProtoMember(1, Name = "buffs", DataFormat = DataFormat.Default)]
		public List<Buff> buffs
		{
			get
			{
				return this._buffs;
			}
		}

		[ProtoMember(2, Name = "items", DataFormat = DataFormat.Default)]
		public List<BuffItem> items
		{
			get
			{
				return this._items;
			}
		}

		[ProtoMember(3, IsRequired = false, Name = "transbuff", DataFormat = DataFormat.Default)]
		[DefaultValue(null)]
		public STransformBuff transbuff
		{
			get
			{
				return this._transbuff;
			}
			set
			{
				this._transbuff = value;
			}
		}

		[ProtoMember(4, IsRequired = false, Name = "smallbuff", DataFormat = DataFormat.Default)]
		[DefaultValue(null)]
		public STransformBuff smallbuff
		{
			get
			{
				return this._smallbuff;
			}
			set
			{
				this._smallbuff = value;
			}
		}

		private readonly List<Buff> _buffs = new List<Buff>();

		private readonly List<BuffItem> _items = new List<BuffItem>();

		private STransformBuff _transbuff = null;

		private STransformBuff _smallbuff = null;

		private IExtension extensionObject;

		IExtension IExtensible.GetExtensionObject(bool createIfMissing)
		{
			return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
		}
	}
}