summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/WarningRandomSet.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-01-25 14:28:30 +0800
committerchai <chaifix@163.com>2021-01-25 14:28:30 +0800
commit6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch)
tree7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/KKSG/WarningRandomSet.cs
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/WarningRandomSet.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/KKSG/WarningRandomSet.cs59
1 files changed, 59 insertions, 0 deletions
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<WarningItemSet> 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<WarningItemSet> _WarningItems = new List<WarningItemSet>();
+
+ private ulong _Firer;
+
+ private uint _skill;
+
+ private IExtension extensionObject;
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}