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/WarningRandomSet.cs | 59 ++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WarningRandomSet.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/WarningRandomSet.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WarningRandomSet.cs b/Client/Assets/Scripts/XMainClient/KKSG/WarningRandomSet.cs new file mode 100644 index 00000000..23b620d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WarningRandomSet.cs @@ -0,0 +1,59 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WarningRandomSet")] + [Serializable] + public class WarningRandomSet : IExtensible + { + [ProtoMember(1, Name = "WarningItems", DataFormat = DataFormat.Default)] + public List WarningItems + { + get + { + return this._WarningItems; + } + } + + [ProtoMember(2, IsRequired = true, Name = "Firer", DataFormat = DataFormat.TwosComplement)] + public ulong Firer + { + get + { + return this._Firer; + } + set + { + this._Firer = value; + } + } + + [ProtoMember(3, IsRequired = true, Name = "skill", DataFormat = DataFormat.TwosComplement)] + public uint skill + { + get + { + return this._skill; + } + set + { + this._skill = value; + } + } + + private readonly List _WarningItems = new List(); + + private ulong _Firer; + + private uint _skill; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0