forked from Dolphee/FindersKeepersD3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFKStats.cs
60 lines (53 loc) · 1.57 KB
/
FKStats.cs
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
using FindersKeepers.Controller.Enums;
namespace FindersKeepers
{
public class FKStats : SetDefault
{
[XmlElement]
public Items FKStat {
get; set; }
[Serializable]
public class Items
{
[XmlArray("Accounts")]
[XmlArrayItem("Account", typeof(FKItem))]
public List<FKItem> Accounts { get; set; }
[XmlArray("RiftManager")]
[XmlArrayItem("Rift", typeof(Rift.RiftStats))]
public List<Rift.RiftStats> RiftManager;
public class FKItem
{
[XmlElement]
public int ID { get; set; }
[XmlElement]
public ItemBase Items { get; set; }
public class ItemBase
{
[XmlAttribute]
public long White;
[XmlAttribute]
public long Magic;
[XmlAttribute]
public long Rare;
[XmlAttribute]
public long Legendary;
[XmlAttribute]
public long Set;
}
}
}
public object _DEFAULT()
{
return new FKStats
{
FKStat = new Items { Accounts = new List<FKStats.Items.FKItem>(), RiftManager = new List<Rift.RiftStats>() }
};
}
}
}