From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../KKSG/LoginReconnectEnterSceneData.cs | 94 ++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginReconnectEnterSceneData.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/LoginReconnectEnterSceneData.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginReconnectEnterSceneData.cs b/Client/Assets/Scripts/XMainClient/KKSG/LoginReconnectEnterSceneData.cs new file mode 100644 index 00000000..2cb8cbdf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginReconnectEnterSceneData.cs @@ -0,0 +1,94 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LoginReconnectEnterSceneData")] + [Serializable] + public class LoginReconnectEnterSceneData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "selfAppearance", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public UnitAppearance selfAppearance + { + get + { + return this._selfAppearance; + } + set + { + this._selfAppearance = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "deathinfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public DeathInfo deathinfo + { + get + { + return this._deathinfo; + } + set + { + this._deathinfo = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "isautofight", DataFormat = DataFormat.Default)] + public bool isautofight + { + get + { + return this._isautofight ?? false; + } + set + { + this._isautofight = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isautofightSpecified + { + get + { + return this._isautofight != null; + } + set + { + bool flag = value == (this._isautofight == null); + if (flag) + { + this._isautofight = (value ? new bool?(this.isautofight) : null); + } + } + } + + private UnitAppearance _selfAppearance = null; + + private DeathInfo _deathinfo = null; + + private bool? _isautofight; + + private IExtension extensionObject; + + private bool ShouldSerializeisautofight() + { + return this.isautofightSpecified; + } + + private void Resetisautofight() + { + this.isautofightSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0