summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/SQARecord.cs
blob: b8d0301e8de300c77f8f975d80a30884eff5047d (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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Xml.Serialization;
using ProtoBuf;

namespace KKSG
{
	[ProtoContract(Name = "SQARecord")]
	[Serializable]
	public class SQARecord : IExtensible
	{
		[ProtoMember(1, IsRequired = false, Name = "cur_qa_type", DataFormat = DataFormat.TwosComplement)]
		public uint cur_qa_type
		{
			get
			{
				return this._cur_qa_type ?? 0u;
			}
			set
			{
				this._cur_qa_type = new uint?(value);
			}
		}

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

		[ProtoMember(2, Name = "trigger_time", DataFormat = DataFormat.Default)]
		public List<MapKeyValue> trigger_time
		{
			get
			{
				return this._trigger_time;
			}
		}

		[ProtoMember(3, Name = "used_count", DataFormat = DataFormat.Default)]
		public List<MapKeyValue> used_count
		{
			get
			{
				return this._used_count;
			}
		}

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

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

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

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

		private uint? _cur_qa_type;

		private readonly List<MapKeyValue> _trigger_time = new List<MapKeyValue>();

		private readonly List<MapKeyValue> _used_count = new List<MapKeyValue>();

		private uint? _last_reset_time;

		private uint? _last_end_time;

		private IExtension extensionObject;

		private bool ShouldSerializecur_qa_type()
		{
			return this.cur_qa_typeSpecified;
		}

		private void Resetcur_qa_type()
		{
			this.cur_qa_typeSpecified = false;
		}

		private bool ShouldSerializelast_reset_time()
		{
			return this.last_reset_timeSpecified;
		}

		private void Resetlast_reset_time()
		{
			this.last_reset_timeSpecified = false;
		}

		private bool ShouldSerializelast_end_time()
		{
			return this.last_end_timeSpecified;
		}

		private void Resetlast_end_time()
		{
			this.last_end_timeSpecified = false;
		}

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