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