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/FashionChangedData.cs | 117 +++++++++++++++++++++ 1 file changed, 117 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FashionChangedData.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/FashionChangedData.cs') 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 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 _fashion = new List(); + + 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); + } + } +} -- cgit v1.1-26-g67d0