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