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

namespace KKSG
{
	[ProtoContract(Name = "WarningPackage")]
	[Serializable]
	public class WarningPackage : IExtensible
	{
		[ProtoMember(1, Name = "WarningPos", DataFormat = DataFormat.TwosComplement)]
		public List<uint> WarningPos
		{
			get
			{
				return this._WarningPos;
			}
		}

		[ProtoMember(2, IsRequired = true, Name = "ID", DataFormat = DataFormat.TwosComplement)]
		public ulong ID
		{
			get
			{
				return this._ID;
			}
			set
			{
				this._ID = value;
			}
		}

		private readonly List<uint> _WarningPos = new List<uint>();

		private ulong _ID;

		private IExtension extensionObject;

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