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

33 lines
776 B
C#

using System.Xml.Serialization;
namespace sodoff.Schema;
[XmlRoot(ElementName = "IRE", Namespace = "")]
[Serializable]
public class ItemDataRelationship {
public ItemDataRelationship() { }
public ItemDataRelationship(ItemDataRelationship other) {
Type = other.Type;
ItemId = other.ItemId;
Weight = other.Weight;
Quantity = other.Quantity;
MaxQuantity = other.MaxQuantity;
}
[XmlElement(ElementName = "t")]
public string Type;
[XmlElement(ElementName = "id")]
public int ItemId;
[XmlElement(ElementName = "wt")]
public int Weight;
[XmlElement(ElementName = "q")]
public int Quantity;
[XmlElement(ElementName = "mxq")]
public int? MaxQuantity;
}