summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/SpriteChanged.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/SpriteChanged.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/KKSG/SpriteChanged.cs51
1 files changed, 51 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SpriteChanged.cs b/Client/Assets/Scripts/XMainClient/KKSG/SpriteChanged.cs
new file mode 100644
index 00000000..06ed351c
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/KKSG/SpriteChanged.cs
@@ -0,0 +1,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);
+ }
+ }
+}