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/ReconectSync.cs | 138 +++++++++++++++++++++ 1 file changed, 138 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReconectSync.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/ReconectSync.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReconectSync.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReconectSync.cs new file mode 100644 index 00000000..01e06a83 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReconectSync.cs @@ -0,0 +1,138 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReconectSync")] + [Serializable] + public class ReconectSync : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "self", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RoleAllInfo self + { + get + { + return this._self; + } + set + { + this._self = value; + } + } + + [ProtoMember(2, Name = "units", DataFormat = DataFormat.Default)] + public List units + { + get + { + return this._units; + } + } + + [ProtoMember(3, IsRequired = false, Name = "selfAppearance", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public UnitAppearance selfAppearance + { + get + { + return this._selfAppearance; + } + set + { + this._selfAppearance = value; + } + } + + [ProtoMember(4, IsRequired = false, Name = "deathinfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public DeathInfo deathinfo + { + get + { + return this._deathinfo; + } + set + { + this._deathinfo = value; + } + } + + [ProtoMember(5, 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); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "scene", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ReconnectScene scene + { + get + { + return this._scene; + } + set + { + this._scene = value; + } + } + + private RoleAllInfo _self = null; + + private readonly List _units = new List(); + + private UnitAppearance _selfAppearance = null; + + private DeathInfo _deathinfo = null; + + private bool? _isautofight; + + private ReconnectScene _scene = null; + + 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