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

namespace KKSG
{
	[ProtoContract(Name = "SpriteChanged")]
	[Serializable]
	public class SpriteChanged : IExtensible
	{
		[ProtoMember(1, Name = "NewSprites", DataFormat = DataFormat.Default)]
		public List<SpriteInfo> NewSprites
		{
			get
			{
				return this._NewSprites;
			}
		}

		[ProtoMember(2, Name = "ChangedSprites", DataFormat = DataFormat.Default)]
		public List<SpriteInfo> ChangedSprites
		{
			get
			{
				return this._ChangedSprites;
			}
		}

		[ProtoMember(3, Name = "RemovedSprites", DataFormat = DataFormat.TwosComplement)]
		public List<ulong> RemovedSprites
		{
			get
			{
				return this._RemovedSprites;
			}
		}

		private readonly List<SpriteInfo> _NewSprites = new List<SpriteInfo>();

		private readonly List<SpriteInfo> _ChangedSprites = new List<SpriteInfo>();

		private readonly List<ulong> _RemovedSprites = new List<ulong>();

		private IExtension extensionObject;

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