blob: 2a5a004d3999325f5412f1897adabde8be9242fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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);
}
}
}
|