summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/SynCardAttr.cs
blob: 9c3b0a4fd223f8b523c36f886ea7846c25b80fdd (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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Xml.Serialization;
using ProtoBuf;

namespace KKSG
{
	[ProtoContract(Name = "SynCardAttr")]
	[Serializable]
	public class SynCardAttr : IExtensible
	{
		[ProtoMember(1, Name = "addAttr", DataFormat = DataFormat.Default)]
		public List<CardAttr> addAttr
		{
			get
			{
				return this._addAttr;
			}
		}

		[ProtoMember(2, Name = "addper", DataFormat = DataFormat.Default)]
		public List<CardAttr> addper
		{
			get
			{
				return this._addper;
			}
		}

		[ProtoMember(3, Name = "allAttr", DataFormat = DataFormat.Default)]
		public List<CardAttr> allAttr
		{
			get
			{
				return this._allAttr;
			}
		}

		[ProtoMember(4, IsRequired = false, Name = "groupId", DataFormat = DataFormat.TwosComplement)]
		public uint groupId
		{
			get
			{
				return this._groupId ?? 0u;
			}
			set
			{
				this._groupId = new uint?(value);
			}
		}

		[XmlIgnore]
		[Browsable(false)]
		public bool groupIdSpecified
		{
			get
			{
				return this._groupId != null;
			}
			set
			{
				bool flag = value == (this._groupId == null);
				if (flag)
				{
					this._groupId = (value ? new uint?(this.groupId) : null);
				}
			}
		}

		private readonly List<CardAttr> _addAttr = new List<CardAttr>();

		private readonly List<CardAttr> _addper = new List<CardAttr>();

		private readonly List<CardAttr> _allAttr = new List<CardAttr>();

		private uint? _groupId;

		private IExtension extensionObject;

		private bool ShouldSerializegroupId()
		{
			return this.groupIdSpecified;
		}

		private void ResetgroupId()
		{
			this.groupIdSpecified = false;
		}

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