-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCardCollectionRewardMst.cs
More file actions
43 lines (37 loc) · 1.44 KB
/
CardCollectionRewardMst.cs
File metadata and controls
43 lines (37 loc) · 1.44 KB
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
using System.Runtime.Serialization;
namespace Edelstein.Data.Msts;
[Serializable]
public class CardCollectionRewardMst : IGameMst, ISerializable
{
public uint Id { get; set; }
public uint Number { get; set; }
public RewardType Type { get; set; }
public GiveType GiveType { get; set; }
public uint Value { get; set; }
public int Level { get; set; }
public int Amount { get; set; }
public uint MasterReleaseLabelId { get; set; }
public CardCollectionRewardMst() { }
protected CardCollectionRewardMst(SerializationInfo info, StreamingContext context)
{
Id = info.GetUInt32("_id");
Number = info.GetUInt32("_number");
Type = (RewardType)info.GetValue("_type", typeof(RewardType))!;
GiveType = (GiveType)info.GetValue("_giveType", typeof(GiveType))!;
Value = info.GetUInt32("_value");
Level = info.GetInt32("_level");
Amount = info.GetInt32("_amount");
MasterReleaseLabelId = info.GetUInt32("_masterReleaseLabelId");
}
public void GetObjectData(SerializationInfo info, StreamingContext context)
{
info.AddValue("_id", Id);
info.AddValue("_number", Number);
info.AddValue("_type", Type);
info.AddValue("_giveType", GiveType);
info.AddValue("_value", Value);
info.AddValue("_level", Level);
info.AddValue("_amount", Amount);
info.AddValue("_masterReleaseLabelId", MasterReleaseLabelId);
}
}