mirror of
https://github.com/SoDOff-Project/sodoff.git
synced 2025-11-27 10:06:53 -08:00
25 lines
721 B
C#
25 lines
721 B
C#
using System.Xml.Serialization;
|
|
|
|
namespace sodoff.Schema;
|
|
|
|
[XmlRoot(ElementName = "ISM", Namespace = "", IsNullable = false)]
|
|
[Serializable]
|
|
public class ItemStatsMap {
|
|
public ItemStatsMap() { }
|
|
|
|
public ItemStatsMap(ItemStatsMap other) {
|
|
ItemID = other.ItemID;
|
|
ItemTier = other.ItemTier;
|
|
ItemStats = other.ItemStats.Select(s => new ItemStat(s)).ToArray();
|
|
}
|
|
|
|
[XmlElement(ElementName = "IID", IsNullable = false)]
|
|
public int ItemID { get; set; }
|
|
|
|
[XmlElement(ElementName = "IT", IsNullable = false)]
|
|
public ItemTier ItemTier { get; set; }
|
|
|
|
[XmlElement(ElementName = "ISS", IsNullable = false)]
|
|
public ItemStat[] ItemStats { get; set; }
|
|
}
|