diff options
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/StepSyncInfo.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/KKSG/StepSyncInfo.cs | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StepSyncInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/StepSyncInfo.cs new file mode 100644 index 00000000..65ebbe0b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StepSyncInfo.cs @@ -0,0 +1,74 @@ +using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "StepSyncInfo")]
+ [Serializable]
+ public class StepSyncInfo : IExtensible
+ {
+ [ProtoMember(1, Name = "DataList", DataFormat = DataFormat.Default)]
+ public List<StepSyncData> DataList
+ {
+ get
+ {
+ return this._DataList;
+ }
+ }
+
+ [ProtoMember(2, IsRequired = false, Name = "StepFrame", DataFormat = DataFormat.TwosComplement)]
+ public uint StepFrame
+ {
+ get
+ {
+ return this._StepFrame ?? 0u;
+ }
+ set
+ {
+ this._StepFrame = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool StepFrameSpecified
+ {
+ get
+ {
+ return this._StepFrame != null;
+ }
+ set
+ {
+ bool flag = value == (this._StepFrame == null);
+ if (flag)
+ {
+ this._StepFrame = (value ? new uint?(this.StepFrame) : null);
+ }
+ }
+ }
+
+ private readonly List<StepSyncData> _DataList = new List<StepSyncData>();
+
+ private uint? _StepFrame;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializeStepFrame()
+ {
+ return this.StepFrameSpecified;
+ }
+
+ private void ResetStepFrame()
+ {
+ this.StepFrameSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}
|