diff options
author | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
commit | 6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch) | |
tree | 7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/KKSG/FashionChangedData.cs |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/FashionChangedData.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/KKSG/FashionChangedData.cs | 117 |
1 files changed, 117 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FashionChangedData.cs b/Client/Assets/Scripts/XMainClient/KKSG/FashionChangedData.cs new file mode 100644 index 00000000..90de5559 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FashionChangedData.cs @@ -0,0 +1,117 @@ +using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "FashionChangedData")]
+ [Serializable]
+ public class FashionChangedData : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "changeType", DataFormat = DataFormat.TwosComplement)]
+ public FashionNTFType changeType
+ {
+ get
+ {
+ return this._changeType ?? FashionNTFType.ADD_FASHION;
+ }
+ set
+ {
+ this._changeType = new FashionNTFType?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool changeTypeSpecified
+ {
+ get
+ {
+ return this._changeType != null;
+ }
+ set
+ {
+ bool flag = value == (this._changeType == null);
+ if (flag)
+ {
+ this._changeType = (value ? new FashionNTFType?(this.changeType) : null);
+ }
+ }
+ }
+
+ [ProtoMember(2, Name = "fashion", DataFormat = DataFormat.Default)]
+ public List<FashionData> fashion
+ {
+ get
+ {
+ return this._fashion;
+ }
+ }
+
+ [ProtoMember(3, IsRequired = false, Name = "special_effects_id", DataFormat = DataFormat.TwosComplement)]
+ public uint special_effects_id
+ {
+ get
+ {
+ return this._special_effects_id ?? 0u;
+ }
+ set
+ {
+ this._special_effects_id = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool special_effects_idSpecified
+ {
+ get
+ {
+ return this._special_effects_id != null;
+ }
+ set
+ {
+ bool flag = value == (this._special_effects_id == null);
+ if (flag)
+ {
+ this._special_effects_id = (value ? new uint?(this.special_effects_id) : null);
+ }
+ }
+ }
+
+ private FashionNTFType? _changeType;
+
+ private readonly List<FashionData> _fashion = new List<FashionData>();
+
+ private uint? _special_effects_id;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializechangeType()
+ {
+ return this.changeTypeSpecified;
+ }
+
+ private void ResetchangeType()
+ {
+ this.changeTypeSpecified = false;
+ }
+
+ private bool ShouldSerializespecial_effects_id()
+ {
+ return this.special_effects_idSpecified;
+ }
+
+ private void Resetspecial_effects_id()
+ {
+ this.special_effects_idSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}
|