summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/RiskBuyData.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/RiskBuyData.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/KKSG/RiskBuyData.cs46
1 files changed, 46 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiskBuyData.cs b/Client/Assets/Scripts/XMainClient/KKSG/RiskBuyData.cs
new file mode 100644
index 00000000..2a5a004d
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/KKSG/RiskBuyData.cs
@@ -0,0 +1,46 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "RiskBuyData")]
+ [Serializable]
+ public class RiskBuyData : IExtensible
+ {
+ [ProtoMember(1, Name = "rewardItems", DataFormat = DataFormat.Default)]
+ public List<ItemBrief> rewardItems
+ {
+ get
+ {
+ return this._rewardItems;
+ }
+ }
+
+ [ProtoMember(2, IsRequired = false, Name = "cost", DataFormat = DataFormat.Default)]
+ [DefaultValue(null)]
+ public ItemBrief cost
+ {
+ get
+ {
+ return this._cost;
+ }
+ set
+ {
+ this._cost = value;
+ }
+ }
+
+ private readonly List<ItemBrief> _rewardItems = new List<ItemBrief>();
+
+ private ItemBrief _cost = null;
+
+ private IExtension extensionObject;
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}