From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/KKSG/LBEleRoomInfo.cs | 223 +++++++++++++++++++++ 1 file changed, 223 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LBEleRoomInfo.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/LBEleRoomInfo.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LBEleRoomInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/LBEleRoomInfo.cs new file mode 100644 index 00000000..2e5f0e3d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LBEleRoomInfo.cs @@ -0,0 +1,223 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LBEleRoomInfo")] + [Serializable] + public class LBEleRoomInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roomid", DataFormat = DataFormat.TwosComplement)] + public uint roomid + { + get + { + return this._roomid ?? 0u; + } + set + { + this._roomid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roomidSpecified + { + get + { + return this._roomid != null; + } + set + { + bool flag = value == (this._roomid == null); + if (flag) + { + this._roomid = (value ? new uint?(this.roomid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "team1", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public LBEleTeamInfo team1 + { + get + { + return this._team1; + } + set + { + this._team1 = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "team2", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public LBEleTeamInfo team2 + { + get + { + return this._team2; + } + set + { + this._team2 = value; + } + } + + [ProtoMember(4, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public LBEleRoomState state + { + get + { + return this._state ?? LBEleRoomState.LBEleRoomState_Idle; + } + set + { + this._state = new LBEleRoomState?(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 LBEleRoomState?(this.state) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "winleagueid", DataFormat = DataFormat.TwosComplement)] + public ulong winleagueid + { + get + { + return this._winleagueid ?? 0UL; + } + set + { + this._winleagueid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool winleagueidSpecified + { + get + { + return this._winleagueid != null; + } + set + { + bool flag = value == (this._winleagueid == null); + if (flag) + { + this._winleagueid = (value ? new ulong?(this.winleagueid) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "liveid", DataFormat = DataFormat.TwosComplement)] + public uint liveid + { + get + { + return this._liveid ?? 0u; + } + set + { + this._liveid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool liveidSpecified + { + get + { + return this._liveid != null; + } + set + { + bool flag = value == (this._liveid == null); + if (flag) + { + this._liveid = (value ? new uint?(this.liveid) : null); + } + } + } + + private uint? _roomid; + + private LBEleTeamInfo _team1 = null; + + private LBEleTeamInfo _team2 = null; + + private LBEleRoomState? _state; + + private ulong? _winleagueid; + + private uint? _liveid; + + private IExtension extensionObject; + + private bool ShouldSerializeroomid() + { + return this.roomidSpecified; + } + + private void Resetroomid() + { + this.roomidSpecified = false; + } + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + private bool ShouldSerializewinleagueid() + { + return this.winleagueidSpecified; + } + + private void Resetwinleagueid() + { + this.winleagueidSpecified = false; + } + + private bool ShouldSerializeliveid() + { + return this.liveidSpecified; + } + + private void Resetliveid() + { + this.liveidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0