-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCardEvolveMst.cs
More file actions
36 lines (31 loc) · 1.2 KB
/
CardEvolveMst.cs
File metadata and controls
36 lines (31 loc) · 1.2 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
using System.Runtime.Serialization;
namespace Edelstein.Data.Msts;
[Serializable]
public class CardEvolveMst : IGameMst, ISerializable
{
public Rarity Rarity { get; set; }
public int EvolveCount { get; set; }
public int MaxLevel { get; set; }
public int Price { get; set; }
public int HpAddValue { get; set; }
public uint MasterReleaseLabelId { get; set; }
public CardEvolveMst() { }
protected CardEvolveMst(SerializationInfo info, StreamingContext context)
{
Rarity = (Rarity)info.GetValue("_rarity", typeof(Rarity))!;
EvolveCount = info.GetInt32("_evolveCount");
MaxLevel = info.GetInt32("_maxLevel");
Price = info.GetInt32("_price");
HpAddValue = info.GetInt32("_hpAddValue");
MasterReleaseLabelId = info.GetUInt32("_masterReleaseLabelId");
}
public void GetObjectData(SerializationInfo info, StreamingContext context)
{
info.AddValue("_rarity", Rarity);
info.AddValue("_evolveCount", EvolveCount);
info.AddValue("_maxLevel", MaxLevel);
info.AddValue("_price", Price);
info.AddValue("_hpAddValue", HpAddValue);
info.AddValue("_masterReleaseLabelId", MasterReleaseLabelId);
}
}