summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/LBEleRoundInfo.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/LBEleRoundInfo.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/KKSG/LBEleRoundInfo.cs74
1 files changed, 74 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LBEleRoundInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/LBEleRoundInfo.cs
new file mode 100644
index 00000000..88dbbf23
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/KKSG/LBEleRoundInfo.cs
@@ -0,0 +1,74 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "LBEleRoundInfo")]
+ [Serializable]
+ public class LBEleRoundInfo : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "round", DataFormat = DataFormat.TwosComplement)]
+ public uint round
+ {
+ get
+ {
+ return this._round ?? 0u;
+ }
+ set
+ {
+ this._round = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool roundSpecified
+ {
+ get
+ {
+ return this._round != null;
+ }
+ set
+ {
+ bool flag = value == (this._round == null);
+ if (flag)
+ {
+ this._round = (value ? new uint?(this.round) : null);
+ }
+ }
+ }
+
+ [ProtoMember(2, Name = "rooms", DataFormat = DataFormat.Default)]
+ public List<LBEleRoomInfo> rooms
+ {
+ get
+ {
+ return this._rooms;
+ }
+ }
+
+ private uint? _round;
+
+ private readonly List<LBEleRoomInfo> _rooms = new List<LBEleRoomInfo>();
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializeround()
+ {
+ return this.roundSpecified;
+ }
+
+ private void Resetround()
+ {
+ this.roundSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}