diff options
author | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
commit | 6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch) | |
tree | 7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/KKSG/GuildTerrAllianceInfo.cs |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/GuildTerrAllianceInfo.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/KKSG/GuildTerrAllianceInfo.cs | 234 |
1 files changed, 234 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildTerrAllianceInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildTerrAllianceInfo.cs new file mode 100644 index 00000000..b4eaf80c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildTerrAllianceInfo.cs @@ -0,0 +1,234 @@ +using System;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "GuildTerrAllianceInfo")]
+ [Serializable]
+ public class GuildTerrAllianceInfo : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "guildname", DataFormat = DataFormat.Default)]
+ public string guildname
+ {
+ get
+ {
+ return this._guildname ?? "";
+ }
+ set
+ {
+ this._guildname = value;
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool guildnameSpecified
+ {
+ get
+ {
+ return this._guildname != null;
+ }
+ set
+ {
+ bool flag = value == (this._guildname == null);
+ if (flag)
+ {
+ this._guildname = (value ? this.guildname : null);
+ }
+ }
+ }
+
+ [ProtoMember(2, IsRequired = false, Name = "guildlvl", DataFormat = DataFormat.TwosComplement)]
+ public uint guildlvl
+ {
+ get
+ {
+ return this._guildlvl ?? 0u;
+ }
+ set
+ {
+ this._guildlvl = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool guildlvlSpecified
+ {
+ get
+ {
+ return this._guildlvl != null;
+ }
+ set
+ {
+ bool flag = value == (this._guildlvl == null);
+ if (flag)
+ {
+ this._guildlvl = (value ? new uint?(this.guildlvl) : null);
+ }
+ }
+ }
+
+ [ProtoMember(3, IsRequired = false, Name = "guildRoleNum", DataFormat = DataFormat.TwosComplement)]
+ public uint guildRoleNum
+ {
+ get
+ {
+ return this._guildRoleNum ?? 0u;
+ }
+ set
+ {
+ this._guildRoleNum = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool guildRoleNumSpecified
+ {
+ get
+ {
+ return this._guildRoleNum != null;
+ }
+ set
+ {
+ bool flag = value == (this._guildRoleNum == null);
+ if (flag)
+ {
+ this._guildRoleNum = (value ? new uint?(this.guildRoleNum) : null);
+ }
+ }
+ }
+
+ [ProtoMember(4, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)]
+ public uint time
+ {
+ get
+ {
+ return this._time ?? 0u;
+ }
+ set
+ {
+ this._time = new uint?(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 uint?(this.time) : null);
+ }
+ }
+ }
+
+ [ProtoMember(5, IsRequired = false, Name = "guildId", DataFormat = DataFormat.TwosComplement)]
+ public ulong guildId
+ {
+ get
+ {
+ return this._guildId ?? 0UL;
+ }
+ set
+ {
+ this._guildId = new ulong?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool guildIdSpecified
+ {
+ get
+ {
+ return this._guildId != null;
+ }
+ set
+ {
+ bool flag = value == (this._guildId == null);
+ if (flag)
+ {
+ this._guildId = (value ? new ulong?(this.guildId) : null);
+ }
+ }
+ }
+
+ private string _guildname;
+
+ private uint? _guildlvl;
+
+ private uint? _guildRoleNum;
+
+ private uint? _time;
+
+ private ulong? _guildId;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializeguildname()
+ {
+ return this.guildnameSpecified;
+ }
+
+ private void Resetguildname()
+ {
+ this.guildnameSpecified = false;
+ }
+
+ private bool ShouldSerializeguildlvl()
+ {
+ return this.guildlvlSpecified;
+ }
+
+ private void Resetguildlvl()
+ {
+ this.guildlvlSpecified = false;
+ }
+
+ private bool ShouldSerializeguildRoleNum()
+ {
+ return this.guildRoleNumSpecified;
+ }
+
+ private void ResetguildRoleNum()
+ {
+ this.guildRoleNumSpecified = false;
+ }
+
+ private bool ShouldSerializetime()
+ {
+ return this.timeSpecified;
+ }
+
+ private void Resettime()
+ {
+ this.timeSpecified = false;
+ }
+
+ private bool ShouldSerializeguildId()
+ {
+ return this.guildIdSpecified;
+ }
+
+ private void ResetguildId()
+ {
+ this.guildIdSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}
|