summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/UpdateLeagueBattleSeasonInfo.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-01-25 14:28:30 +0800
committerchai <chaifix@163.com>2021-01-25 14:28:30 +0800
commit6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch)
tree7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/KKSG/UpdateLeagueBattleSeasonInfo.cs
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/UpdateLeagueBattleSeasonInfo.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/KKSG/UpdateLeagueBattleSeasonInfo.cs332
1 files changed, 332 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UpdateLeagueBattleSeasonInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/UpdateLeagueBattleSeasonInfo.cs
new file mode 100644
index 00000000..e745d670
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/KKSG/UpdateLeagueBattleSeasonInfo.cs
@@ -0,0 +1,332 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "UpdateLeagueBattleSeasonInfo")]
+ [Serializable]
+ public class UpdateLeagueBattleSeasonInfo : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "is_open", DataFormat = DataFormat.Default)]
+ public bool is_open
+ {
+ get
+ {
+ return this._is_open ?? false;
+ }
+ set
+ {
+ this._is_open = new bool?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool is_openSpecified
+ {
+ get
+ {
+ return this._is_open != null;
+ }
+ set
+ {
+ bool flag = value == (this._is_open == null);
+ if (flag)
+ {
+ this._is_open = (value ? new bool?(this.is_open) : null);
+ }
+ }
+ }
+
+ [ProtoMember(2, IsRequired = false, Name = "is_cross", DataFormat = DataFormat.Default)]
+ public bool is_cross
+ {
+ get
+ {
+ return this._is_cross ?? false;
+ }
+ set
+ {
+ this._is_cross = new bool?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool is_crossSpecified
+ {
+ get
+ {
+ return this._is_cross != null;
+ }
+ set
+ {
+ bool flag = value == (this._is_cross == null);
+ if (flag)
+ {
+ this._is_cross = (value ? new bool?(this.is_cross) : null);
+ }
+ }
+ }
+
+ [ProtoMember(3, IsRequired = false, Name = "league_teamid", DataFormat = DataFormat.TwosComplement)]
+ public ulong league_teamid
+ {
+ get
+ {
+ return this._league_teamid ?? 0UL;
+ }
+ set
+ {
+ this._league_teamid = new ulong?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool league_teamidSpecified
+ {
+ get
+ {
+ return this._league_teamid != null;
+ }
+ set
+ {
+ bool flag = value == (this._league_teamid == null);
+ if (flag)
+ {
+ this._league_teamid = (value ? new ulong?(this.league_teamid) : null);
+ }
+ }
+ }
+
+ [ProtoMember(4, Name = "league_teammember", DataFormat = DataFormat.TwosComplement)]
+ public List<ulong> league_teammember
+ {
+ get
+ {
+ return this._league_teammember;
+ }
+ }
+
+ [ProtoMember(5, IsRequired = false, Name = "league_teamstate", DataFormat = DataFormat.TwosComplement)]
+ public LeagueTeamState league_teamstate
+ {
+ get
+ {
+ return this._league_teamstate ?? LeagueTeamState.LeagueTeamState_Idle;
+ }
+ set
+ {
+ this._league_teamstate = new LeagueTeamState?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool league_teamstateSpecified
+ {
+ get
+ {
+ return this._league_teamstate != null;
+ }
+ set
+ {
+ bool flag = value == (this._league_teamstate == null);
+ if (flag)
+ {
+ this._league_teamstate = (value ? new LeagueTeamState?(this.league_teamstate) : null);
+ }
+ }
+ }
+
+ [ProtoMember(6, IsRequired = false, Name = "season_num", DataFormat = DataFormat.TwosComplement)]
+ public uint season_num
+ {
+ get
+ {
+ return this._season_num ?? 0u;
+ }
+ set
+ {
+ this._season_num = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool season_numSpecified
+ {
+ get
+ {
+ return this._season_num != null;
+ }
+ set
+ {
+ bool flag = value == (this._season_num == null);
+ if (flag)
+ {
+ this._season_num = (value ? new uint?(this.season_num) : null);
+ }
+ }
+ }
+
+ [ProtoMember(7, IsRequired = false, Name = "matchlefttime", DataFormat = DataFormat.TwosComplement)]
+ public uint matchlefttime
+ {
+ get
+ {
+ return this._matchlefttime ?? 0u;
+ }
+ set
+ {
+ this._matchlefttime = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool matchlefttimeSpecified
+ {
+ get
+ {
+ return this._matchlefttime != null;
+ }
+ set
+ {
+ bool flag = value == (this._matchlefttime == null);
+ if (flag)
+ {
+ this._matchlefttime = (value ? new uint?(this.matchlefttime) : null);
+ }
+ }
+ }
+
+ [ProtoMember(8, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)]
+ public LeagueBattleTimeState state
+ {
+ get
+ {
+ return this._state ?? LeagueBattleTimeState.LBTS_BeforeOpen;
+ }
+ set
+ {
+ this._state = new LeagueBattleTimeState?(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 LeagueBattleTimeState?(this.state) : null);
+ }
+ }
+ }
+
+ private bool? _is_open;
+
+ private bool? _is_cross;
+
+ private ulong? _league_teamid;
+
+ private readonly List<ulong> _league_teammember = new List<ulong>();
+
+ private LeagueTeamState? _league_teamstate;
+
+ private uint? _season_num;
+
+ private uint? _matchlefttime;
+
+ private LeagueBattleTimeState? _state;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializeis_open()
+ {
+ return this.is_openSpecified;
+ }
+
+ private void Resetis_open()
+ {
+ this.is_openSpecified = false;
+ }
+
+ private bool ShouldSerializeis_cross()
+ {
+ return this.is_crossSpecified;
+ }
+
+ private void Resetis_cross()
+ {
+ this.is_crossSpecified = false;
+ }
+
+ private bool ShouldSerializeleague_teamid()
+ {
+ return this.league_teamidSpecified;
+ }
+
+ private void Resetleague_teamid()
+ {
+ this.league_teamidSpecified = false;
+ }
+
+ private bool ShouldSerializeleague_teamstate()
+ {
+ return this.league_teamstateSpecified;
+ }
+
+ private void Resetleague_teamstate()
+ {
+ this.league_teamstateSpecified = false;
+ }
+
+ private bool ShouldSerializeseason_num()
+ {
+ return this.season_numSpecified;
+ }
+
+ private void Resetseason_num()
+ {
+ this.season_numSpecified = false;
+ }
+
+ private bool ShouldSerializematchlefttime()
+ {
+ return this.matchlefttimeSpecified;
+ }
+
+ private void Resetmatchlefttime()
+ {
+ this.matchlefttimeSpecified = 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);
+ }
+ }
+}