sodoff/src/Schema/ItemSaleConfig.cs
2025-06-27 22:37:58 +02:00

33 lines
966 B
C#

using System.Xml.Serialization;
namespace sodoff.Schema;
[XmlRoot(ElementName = "ISC", Namespace = "", IsNullable = true)]
[Serializable]
public class ItemSaleConfig {
public ItemSaleConfig() { }
public ItemSaleConfig(ItemSaleConfig other) {
ItemID = other.ItemID;
CategoryID = other.CategoryID;
RarityID = other.RarityID;
Quantity = other.Quantity;
RewardItemID = other.RewardItemID;
}
[XmlElement(ElementName = "IID", IsNullable = true)]
public int? ItemID { get; set; }
[XmlElement(ElementName = "CID", IsNullable = true)]
public int? CategoryID { get; set; }
[XmlElement(ElementName = "RID", IsNullable = true)]
public int? RarityID { get; set; }
[XmlElement(ElementName = "QTY", IsNullable = false)]
public int Quantity { get; set; }
[XmlElement(ElementName = "RIID", IsNullable = false)]
public int RewardItemID { get; set; }
}