summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/SynGuildArenaFightUnit.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/SynGuildArenaFightUnit.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/KKSG/SynGuildArenaFightUnit.cs105
1 files changed, 105 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SynGuildArenaFightUnit.cs b/Client/Assets/Scripts/XMainClient/KKSG/SynGuildArenaFightUnit.cs
new file mode 100644
index 00000000..5ae77706
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/KKSG/SynGuildArenaFightUnit.cs
@@ -0,0 +1,105 @@
+using System;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "SynGuildArenaFightUnit")]
+ [Serializable]
+ public class SynGuildArenaFightUnit : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "pos", DataFormat = DataFormat.TwosComplement)]
+ public uint pos
+ {
+ get
+ {
+ return this._pos ?? 0u;
+ }
+ set
+ {
+ this._pos = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool posSpecified
+ {
+ get
+ {
+ return this._pos != null;
+ }
+ set
+ {
+ bool flag = value == (this._pos == null);
+ if (flag)
+ {
+ this._pos = (value ? new uint?(this.pos) : null);
+ }
+ }
+ }
+
+ [ProtoMember(2, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)]
+ public uint state
+ {
+ get
+ {
+ return this._state ?? 0u;
+ }
+ set
+ {
+ this._state = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool stateSpecified
+ {
+ get
+ {
+ return this._state != null;
+ }
+ set
+ {
+ bool flag = value == (this._state == null);
+ if (flag)
+ {
+ this._state = (value ? new uint?(this.state) : null);
+ }
+ }
+ }
+
+ private uint? _pos;
+
+ private uint? _state;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializepos()
+ {
+ return this.posSpecified;
+ }
+
+ private void Resetpos()
+ {
+ this.posSpecified = false;
+ }
+
+ private bool ShouldSerializestate()
+ {
+ return this.stateSpecified;
+ }
+
+ private void Resetstate()
+ {
+ this.stateSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}