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