diff options
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/EnterWatchBattleArg.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/KKSG/EnterWatchBattleArg.cs | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnterWatchBattleArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/EnterWatchBattleArg.cs new file mode 100644 index 00000000..056cf238 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnterWatchBattleArg.cs @@ -0,0 +1,105 @@ +using System;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "EnterWatchBattleArg")]
+ [Serializable]
+ public class EnterWatchBattleArg : IExtensible
+ {
+ [ProtoMember(1, 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);
+ }
+ }
+ }
+
+ [ProtoMember(2, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)]
+ public LiveType type
+ {
+ get
+ {
+ return this._type ?? LiveType.LIVE_RECOMMEND;
+ }
+ set
+ {
+ this._type = new LiveType?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool typeSpecified
+ {
+ get
+ {
+ return this._type != null;
+ }
+ set
+ {
+ bool flag = value == (this._type == null);
+ if (flag)
+ {
+ this._type = (value ? new LiveType?(this.type) : null);
+ }
+ }
+ }
+
+ private uint? _liveID;
+
+ private LiveType? _type;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializeliveID()
+ {
+ return this.liveIDSpecified;
+ }
+
+ private void ResetliveID()
+ {
+ this.liveIDSpecified = false;
+ }
+
+ private bool ShouldSerializetype()
+ {
+ return this.typeSpecified;
+ }
+
+ private void Resettype()
+ {
+ this.typeSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}
|