summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/HallIconPara.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/HallIconPara.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/KKSG/HallIconPara.cs121
1 files changed, 121 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HallIconPara.cs b/Client/Assets/Scripts/XMainClient/KKSG/HallIconPara.cs
new file mode 100644
index 00000000..d2f0e82c
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/KKSG/HallIconPara.cs
@@ -0,0 +1,121 @@
+using System;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "HallIconPara")]
+ [Serializable]
+ public class HallIconPara : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)]
+ public HallIconState state
+ {
+ get
+ {
+ return this._state ?? HallIconState.HICONS_BEGIN;
+ }
+ set
+ {
+ this._state = new HallIconState?(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 HallIconState?(this.state) : null);
+ }
+ }
+ }
+
+ [ProtoMember(2, IsRequired = false, Name = "systemid", DataFormat = DataFormat.TwosComplement)]
+ public int systemid
+ {
+ get
+ {
+ return this._systemid ?? 0;
+ }
+ set
+ {
+ this._systemid = new int?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool systemidSpecified
+ {
+ get
+ {
+ return this._systemid != null;
+ }
+ set
+ {
+ bool flag = value == (this._systemid == null);
+ if (flag)
+ {
+ this._systemid = (value ? new int?(this.systemid) : null);
+ }
+ }
+ }
+
+ [ProtoMember(3, IsRequired = false, Name = "liveInfo", DataFormat = DataFormat.Default)]
+ [DefaultValue(null)]
+ public LiveIconData liveInfo
+ {
+ get
+ {
+ return this._liveInfo;
+ }
+ set
+ {
+ this._liveInfo = value;
+ }
+ }
+
+ private HallIconState? _state;
+
+ private int? _systemid;
+
+ private LiveIconData _liveInfo = null;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializestate()
+ {
+ return this.stateSpecified;
+ }
+
+ private void Resetstate()
+ {
+ this.stateSpecified = false;
+ }
+
+ private bool ShouldSerializesystemid()
+ {
+ return this.systemidSpecified;
+ }
+
+ private void Resetsystemid()
+ {
+ this.systemidSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}