summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/PetInviteInfo.cs
blob: 8f71a3d089668c1b30e5aa523506a0e749f1e5b5 (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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
using System;
using System.ComponentModel;
using System.Xml.Serialization;
using ProtoBuf;

namespace KKSG
{
	[ProtoContract(Name = "PetInviteInfo")]
	[Serializable]
	public class PetInviteInfo : IExtensible
	{
		[ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)]
		public ulong roleid
		{
			get
			{
				return this._roleid ?? 0UL;
			}
			set
			{
				this._roleid = new ulong?(value);
			}
		}

		[XmlIgnore]
		[Browsable(false)]
		public bool roleidSpecified
		{
			get
			{
				return this._roleid != null;
			}
			set
			{
				bool flag = value == (this._roleid == null);
				if (flag)
				{
					this._roleid = (value ? new ulong?(this.roleid) : null);
				}
			}
		}

		[ProtoMember(2, IsRequired = false, Name = "petuid", DataFormat = DataFormat.TwosComplement)]
		public ulong petuid
		{
			get
			{
				return this._petuid ?? 0UL;
			}
			set
			{
				this._petuid = new ulong?(value);
			}
		}

		[XmlIgnore]
		[Browsable(false)]
		public bool petuidSpecified
		{
			get
			{
				return this._petuid != null;
			}
			set
			{
				bool flag = value == (this._petuid == null);
				if (flag)
				{
					this._petuid = (value ? new ulong?(this.petuid) : null);
				}
			}
		}

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

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

		[ProtoMember(4, IsRequired = false, Name = "rolename", DataFormat = DataFormat.Default)]
		public string rolename
		{
			get
			{
				return this._rolename ?? "";
			}
			set
			{
				this._rolename = value;
			}
		}

		[XmlIgnore]
		[Browsable(false)]
		public bool rolenameSpecified
		{
			get
			{
				return this._rolename != null;
			}
			set
			{
				bool flag = value == (this._rolename == null);
				if (flag)
				{
					this._rolename = (value ? this.rolename : null);
				}
			}
		}

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

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

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

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

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

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

		private ulong? _roleid;

		private ulong? _petuid;

		private uint? _petconfigid;

		private string _rolename;

		private uint? _profession;

		private uint? _ppt;

		private uint? _petppt;

		private IExtension extensionObject;

		private bool ShouldSerializeroleid()
		{
			return this.roleidSpecified;
		}

		private void Resetroleid()
		{
			this.roleidSpecified = false;
		}

		private bool ShouldSerializepetuid()
		{
			return this.petuidSpecified;
		}

		private void Resetpetuid()
		{
			this.petuidSpecified = false;
		}

		private bool ShouldSerializepetconfigid()
		{
			return this.petconfigidSpecified;
		}

		private void Resetpetconfigid()
		{
			this.petconfigidSpecified = false;
		}

		private bool ShouldSerializerolename()
		{
			return this.rolenameSpecified;
		}

		private void Resetrolename()
		{
			this.rolenameSpecified = false;
		}

		private bool ShouldSerializeprofession()
		{
			return this.professionSpecified;
		}

		private void Resetprofession()
		{
			this.professionSpecified = false;
		}

		private bool ShouldSerializeppt()
		{
			return this.pptSpecified;
		}

		private void Resetppt()
		{
			this.pptSpecified = false;
		}

		private bool ShouldSerializepetppt()
		{
			return this.petpptSpecified;
		}

		private void Resetpetppt()
		{
			this.petpptSpecified = false;
		}

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