summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/SyncTimeArg.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/SyncTimeArg.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/KKSG/SyncTimeArg.cs62
1 files changed, 62 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SyncTimeArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/SyncTimeArg.cs
new file mode 100644
index 00000000..9077d36f
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/KKSG/SyncTimeArg.cs
@@ -0,0 +1,62 @@
+using System;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "SyncTimeArg")]
+ [Serializable]
+ public class SyncTimeArg : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)]
+ public long time
+ {
+ get
+ {
+ return this._time ?? 0L;
+ }
+ set
+ {
+ this._time = new long?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool timeSpecified
+ {
+ get
+ {
+ return this._time != null;
+ }
+ set
+ {
+ bool flag = value == (this._time == null);
+ if (flag)
+ {
+ this._time = (value ? new long?(this.time) : null);
+ }
+ }
+ }
+
+ private long? _time;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializetime()
+ {
+ return this.timeSpecified;
+ }
+
+ private void Resettime()
+ {
+ this.timeSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}