fix indent

This commit is contained in:
Spirtix 2025-06-27 14:17:05 +02:00
parent 06daf21d8c
commit 2aac24c37e
30 changed files with 276 additions and 276 deletions

View File

@ -5,11 +5,11 @@ namespace sodoff.Schema;
[XmlRoot(ElementName = "AR", Namespace = "")] [XmlRoot(ElementName = "AR", Namespace = "")]
[Serializable] [Serializable]
public class AchievementReward { public class AchievementReward {
public AchievementReward() {} public AchievementReward() { }
public AchievementReward(AchievementReward other) { public AchievementReward(AchievementReward other) {
if (other.UserItem != null) if (other.UserItem != null)
UserItem = new UserItemData(other.UserItem); UserItem = new UserItemData(other.UserItem);
Amount = other.Amount; Amount = other.Amount;
PointTypeID = other.PointTypeID; PointTypeID = other.PointTypeID;
@ -26,45 +26,45 @@ public class AchievementReward {
} }
[XmlElement(ElementName = "ui", IsNullable = true)] [XmlElement(ElementName = "ui", IsNullable = true)]
public UserItemData UserItem { get; set; } public UserItemData UserItem { get; set; }
[XmlElement(ElementName = "a")] [XmlElement(ElementName = "a")]
public int? Amount; public int? Amount;
[XmlElement(ElementName = "p", IsNullable = true)] [XmlElement(ElementName = "p", IsNullable = true)]
public AchievementPointTypes? PointTypeID; public AchievementPointTypes? PointTypeID;
[XmlElement(ElementName = "ii")] [XmlElement(ElementName = "ii")]
public int ItemID; public int ItemID;
[XmlElement(ElementName = "i", IsNullable = true)] [XmlElement(ElementName = "i", IsNullable = true)]
public Guid? EntityID; public Guid? EntityID;
[XmlElement(ElementName = "t")] [XmlElement(ElementName = "t")]
public int EntityTypeID; public int EntityTypeID;
[XmlElement(ElementName = "r")] [XmlElement(ElementName = "r")]
public int RewardID; public int RewardID;
[XmlElement(ElementName = "ai")] [XmlElement(ElementName = "ai")]
public int AchievementID; public int AchievementID;
[XmlElement(ElementName = "amulti")] [XmlElement(ElementName = "amulti")]
public bool AllowMultiple; public bool AllowMultiple;
[XmlElement(ElementName = "mina", IsNullable = true)] [XmlElement(ElementName = "mina", IsNullable = true)]
public int? MinAmount; public int? MinAmount;
[XmlElement(ElementName = "maxa", IsNullable = true)] [XmlElement(ElementName = "maxa", IsNullable = true)]
public int? MaxAmount; public int? MaxAmount;
[XmlElement(ElementName = "d", IsNullable = true)] [XmlElement(ElementName = "d", IsNullable = true)]
public DateTime? Date; public DateTime? Date;
[XmlElement(ElementName = "cid")] [XmlElement(ElementName = "cid")]
public int CommonInventoryID; public int CommonInventoryID;
public AchievementReward Clone() { public AchievementReward Clone() {
return (AchievementReward) this.MemberwiseClone(); return (AchievementReward)this.MemberwiseClone();
} }
} }

View File

@ -6,7 +6,7 @@ namespace sodoff.Schema;
[XmlRoot(ElementName = "BP", Namespace = "", IsNullable = true)] [XmlRoot(ElementName = "BP", Namespace = "", IsNullable = true)]
[Serializable] [Serializable]
public class BluePrint { public class BluePrint {
public BluePrint() {} public BluePrint() { }
public BluePrint(BluePrint other) { public BluePrint(BluePrint other) {
Deductibles = other.Deductibles.Select(d => new BluePrintDeductibleConfig(d)).ToList(); Deductibles = other.Deductibles.Select(d => new BluePrintDeductibleConfig(d)).ToList();
@ -15,11 +15,11 @@ public class BluePrint {
} }
[XmlElement(ElementName = "BPDC", IsNullable = true)] [XmlElement(ElementName = "BPDC", IsNullable = true)]
public List<BluePrintDeductibleConfig> Deductibles { get; set; } public List<BluePrintDeductibleConfig> Deductibles { get; set; }
[XmlElement(ElementName = "ING", IsNullable = false)] [XmlElement(ElementName = "ING", IsNullable = false)]
public List<BluePrintSpecification> Ingredients { get; set; } public List<BluePrintSpecification> Ingredients { get; set; }
[XmlElement(ElementName = "OUT", IsNullable = false)] [XmlElement(ElementName = "OUT", IsNullable = false)]
public List<BluePrintSpecification> Outputs { get; set; } public List<BluePrintSpecification> Outputs { get; set; }
} }

View File

@ -15,14 +15,14 @@ public class BluePrintDeductibleConfig {
} }
[XmlElement(ElementName = "BPIID", IsNullable = false)] [XmlElement(ElementName = "BPIID", IsNullable = false)]
public int BluePrintItemID { get; set; } public int BluePrintItemID { get; set; }
[XmlElement(ElementName = "DT", IsNullable = false)] [XmlElement(ElementName = "DT", IsNullable = false)]
public DeductibleType DeductibleType { get; set; } public DeductibleType DeductibleType { get; set; }
[XmlElement(ElementName = "IID", IsNullable = true)] [XmlElement(ElementName = "IID", IsNullable = true)]
public int? ItemID { get; set; } public int? ItemID { get; set; }
[XmlElement(ElementName = "QTY", IsNullable = false)] [XmlElement(ElementName = "QTY", IsNullable = false)]
public int Quantity { get; set; } public int Quantity { get; set; }
} }

View File

@ -3,7 +3,7 @@ using System.Xml.Serialization;
namespace sodoff.Schema; namespace sodoff.Schema;
public class BluePrintSpecification { public class BluePrintSpecification {
public BluePrintSpecification() {} public BluePrintSpecification() { }
public BluePrintSpecification(BluePrintSpecification other) { public BluePrintSpecification(BluePrintSpecification other) {
BluePrintSpecID = other.BluePrintSpecID; BluePrintSpecID = other.BluePrintSpecID;
@ -17,30 +17,30 @@ public class BluePrintSpecification {
} }
[XmlElement(ElementName = "BPSID", IsNullable = false)] [XmlElement(ElementName = "BPSID", IsNullable = false)]
public int BluePrintSpecID { get; set; } public int BluePrintSpecID { get; set; }
[XmlElement(ElementName = "BPIID", IsNullable = false)] [XmlElement(ElementName = "BPIID", IsNullable = false)]
public int BluePrintItemID { get; set; } public int BluePrintItemID { get; set; }
public bool ShouldSerializeBluePrintItemID() { return BluePrintItemID != 0; } public bool ShouldSerializeBluePrintItemID() { return BluePrintItemID != 0; }
[XmlElement(ElementName = "IID", IsNullable = true)] [XmlElement(ElementName = "IID", IsNullable = true)]
public int? ItemID { get; set; } public int? ItemID { get; set; }
[XmlElement(ElementName = "CID", IsNullable = true)] [XmlElement(ElementName = "CID", IsNullable = true)]
public int? CategoryID { get; set; } public int? CategoryID { get; set; }
[XmlElement(ElementName = "IR", IsNullable = true)] [XmlElement(ElementName = "IR", IsNullable = true)]
public ItemRarity? ItemRarity { get; set; } public ItemRarity? ItemRarity { get; set; }
[XmlElement(ElementName = "T", IsNullable = true)] [XmlElement(ElementName = "T", IsNullable = true)]
public ItemTier? Tier { get; set; } public ItemTier? Tier { get; set; }
[XmlElement(ElementName = "QTY", IsNullable = false)] [XmlElement(ElementName = "QTY", IsNullable = false)]
public int Quantity { get; set; } public int Quantity { get; set; }
[XmlElement(ElementName = "ST", IsNullable = true)] [XmlElement(ElementName = "ST", IsNullable = true)]
public SpecificationType? SpecificationType { get; set; } public SpecificationType? SpecificationType { get; set; }
public bool ShouldSerializeSpecificationType() { return SpecificationType != null; } public bool ShouldSerializeSpecificationType() { return SpecificationType != null; }
} }

View File

@ -4,12 +4,12 @@ namespace sodoff.Schema;
[Serializable] [Serializable]
public class CompletionAction { public class CompletionAction {
public CompletionAction() {} public CompletionAction() { }
public CompletionAction(CompletionAction other) { public CompletionAction(CompletionAction other) {
Transition = other.Transition; Transition = other.Transition;
} }
[XmlElement(ElementName = "Transition")] [XmlElement(ElementName = "Transition")]
public StateTransition Transition; public StateTransition Transition;
} }

View File

@ -5,7 +5,7 @@ namespace sodoff.Schema;
[XmlRoot(ElementName = "AT", Namespace = "")] [XmlRoot(ElementName = "AT", Namespace = "")]
[Serializable] [Serializable]
public class ItemAttribute { public class ItemAttribute {
public ItemAttribute() {} public ItemAttribute() { }
public ItemAttribute(ItemAttribute other) { public ItemAttribute(ItemAttribute other) {
Key = other.Key; Key = other.Key;
@ -13,8 +13,8 @@ public class ItemAttribute {
} }
[XmlElement(ElementName = "k")] [XmlElement(ElementName = "k")]
public string Key; public string Key;
[XmlElement(ElementName = "v")] [XmlElement(ElementName = "v")]
public string Value; public string Value;
} }

View File

@ -5,7 +5,7 @@ namespace sodoff.Schema;
[XmlRoot(ElementName = "Availability", Namespace = "")] [XmlRoot(ElementName = "Availability", Namespace = "")]
[Serializable] [Serializable]
public class ItemAvailability { public class ItemAvailability {
public ItemAvailability() {} public ItemAvailability() { }
public ItemAvailability(ItemAvailability other) { public ItemAvailability(ItemAvailability other) {
StartDate = other.StartDate; StartDate = other.StartDate;
@ -13,8 +13,8 @@ public class ItemAvailability {
} }
[XmlElement(ElementName = "sdate", IsNullable = true)] [XmlElement(ElementName = "sdate", IsNullable = true)]
public DateTime? StartDate; public DateTime? StartDate;
[XmlElement(ElementName = "edate", IsNullable = true)] [XmlElement(ElementName = "edate", IsNullable = true)]
public DateTime? EndDate; public DateTime? EndDate;
} }

View File

@ -4,7 +4,7 @@ namespace sodoff.Schema;
[XmlRoot(ElementName = "I", Namespace = "", IsNullable = true)] [XmlRoot(ElementName = "I", Namespace = "", IsNullable = true)]
public class ItemData { public class ItemData {
public ItemData() {} public ItemData() { }
public ItemData(ItemData other) { public ItemData(ItemData other) {
ItemStates = other.ItemStates.Select(s => new ItemState(s)).ToList(); ItemStates = other.ItemStates.Select(s => new ItemState(s)).ToList();
@ -43,108 +43,108 @@ public class ItemData {
} }
[XmlElement(ElementName = "is")] [XmlElement(ElementName = "is")]
public List<ItemState> ItemStates { get; set; } public List<ItemState> ItemStates { get; set; }
[XmlElement(ElementName = "ir", IsNullable = true)] [XmlElement(ElementName = "ir", IsNullable = true)]
public ItemRarity? ItemRarity { get; set; } public ItemRarity? ItemRarity { get; set; }
[XmlElement(ElementName = "ipsm", IsNullable = true)] [XmlElement(ElementName = "ipsm", IsNullable = true)]
public ItemPossibleStatsMap PossibleStatsMap { get; set; } public ItemPossibleStatsMap PossibleStatsMap { get; set; }
[XmlElement(ElementName = "ism", IsNullable = true)] [XmlElement(ElementName = "ism", IsNullable = true)]
public ItemStatsMap ItemStatsMap { get; set; } public ItemStatsMap ItemStatsMap { get; set; }
[XmlElement(ElementName = "iscs", IsNullable = true)] [XmlElement(ElementName = "iscs", IsNullable = true)]
public ItemSaleConfig[] ItemSaleConfigs { get; set; } public ItemSaleConfig[] ItemSaleConfigs { get; set; }
[XmlElement(ElementName = "bp", IsNullable = true)] [XmlElement(ElementName = "bp", IsNullable = true)]
public BluePrint BluePrint { get; set; } public BluePrint BluePrint { get; set; }
[XmlElement(ElementName = "an")] [XmlElement(ElementName = "an")]
public string AssetName; public string AssetName;
[XmlElement(ElementName = "at", IsNullable = true)] [XmlElement(ElementName = "at", IsNullable = true)]
public ItemAttribute[] Attribute; public ItemAttribute[] Attribute;
[XmlElement(ElementName = "c")] [XmlElement(ElementName = "c")]
public ItemDataCategory[] Category; public ItemDataCategory[] Category;
[XmlElement(ElementName = "ct")] [XmlElement(ElementName = "ct")]
public int Cost; public int Cost;
[XmlElement(ElementName = "ct2")] [XmlElement(ElementName = "ct2")]
public int CashCost; public int CashCost;
[XmlElement(ElementName = "cp")] [XmlElement(ElementName = "cp")]
public int CreativePoints; public int CreativePoints;
[XmlElement(ElementName = "d")] [XmlElement(ElementName = "d")]
public string Description; public string Description;
[XmlElement(ElementName = "icn")] [XmlElement(ElementName = "icn")]
public string IconName; public string IconName;
[XmlElement(ElementName = "im")] [XmlElement(ElementName = "im")]
public int InventoryMax; public int InventoryMax;
[XmlElement(ElementName = "id")] [XmlElement(ElementName = "id")]
public int ItemID; public int ItemID;
[XmlElement(ElementName = "itn")] [XmlElement(ElementName = "itn")]
public string ItemName; public string ItemName;
[XmlElement(ElementName = "itnp")] [XmlElement(ElementName = "itnp")]
public string ItemNamePlural; public string ItemNamePlural;
[XmlElement(ElementName = "l")] [XmlElement(ElementName = "l")]
public bool Locked; public bool Locked;
[XmlElement(ElementName = "g", IsNullable = true)] [XmlElement(ElementName = "g", IsNullable = true)]
public string Geometry2; public string Geometry2;
[XmlElement(ElementName = "ro", IsNullable = true)] [XmlElement(ElementName = "ro", IsNullable = true)]
public ItemDataRollover Rollover; public ItemDataRollover Rollover;
[XmlElement(ElementName = "rid", IsNullable = true)] [XmlElement(ElementName = "rid", IsNullable = true)]
public int? RankId; public int? RankId;
[XmlElement(ElementName = "r")] [XmlElement(ElementName = "r")]
public ItemDataRelationship[] Relationship; public ItemDataRelationship[] Relationship;
[XmlElement(ElementName = "s")] [XmlElement(ElementName = "s")]
public bool Stackable; public bool Stackable;
[XmlElement(ElementName = "as")] [XmlElement(ElementName = "as")]
public bool AllowStacking; public bool AllowStacking;
[XmlElement(ElementName = "sf")] [XmlElement(ElementName = "sf")]
public int SaleFactor; public int SaleFactor;
[XmlElement(ElementName = "t")] [XmlElement(ElementName = "t")]
public ItemDataTexture[] Texture; public ItemDataTexture[] Texture;
[XmlElement(ElementName = "u")] [XmlElement(ElementName = "u")]
public int Uses; public int Uses;
[XmlElement(ElementName = "av")] [XmlElement(ElementName = "av")]
public ItemAvailability[] Availability; public ItemAvailability[] Availability;
[XmlElement(ElementName = "rtid")] [XmlElement(ElementName = "rtid")]
public int RewardTypeID; public int RewardTypeID;
[XmlElement(ElementName = "p", IsNullable = true)] [XmlElement(ElementName = "p", IsNullable = true)]
public int? Points; public int? Points;
[XmlIgnore] [XmlIgnore]
public float NormalDiscoutModifier; public float NormalDiscoutModifier;
[XmlIgnore] [XmlIgnore]
public float MemberDiscountModifier; public float MemberDiscountModifier;
[XmlIgnore] [XmlIgnore]
public float FinalDiscoutModifier { public float FinalDiscoutModifier {
get { get {
return Math.Min(1f, (1f - NormalDiscoutModifier) * (1f - MemberDiscountModifier)); return Math.Min(1f, (1f - NormalDiscoutModifier) * (1f - MemberDiscountModifier));
} }
} }
} }

View File

@ -5,7 +5,7 @@ namespace sodoff.Schema;
[XmlRoot(ElementName = "IC", Namespace = "")] [XmlRoot(ElementName = "IC", Namespace = "")]
[Serializable] [Serializable]
public class ItemDataCategory { public class ItemDataCategory {
public ItemDataCategory() {} public ItemDataCategory() { }
public ItemDataCategory(ItemDataCategory other) { public ItemDataCategory(ItemDataCategory other) {
CategoryId = other.CategoryId; CategoryId = other.CategoryId;
@ -14,11 +14,11 @@ public class ItemDataCategory {
} }
[XmlElement(ElementName = "cid")] [XmlElement(ElementName = "cid")]
public int CategoryId; public int CategoryId;
[XmlElement(ElementName = "cn")] [XmlElement(ElementName = "cn")]
public string CategoryName; public string CategoryName;
[XmlElement(ElementName = "i", IsNullable = true)] [XmlElement(ElementName = "i", IsNullable = true)]
public string IconName; public string IconName;
} }

View File

@ -5,7 +5,7 @@ namespace sodoff.Schema;
[XmlRoot(ElementName = "IRE", Namespace = "")] [XmlRoot(ElementName = "IRE", Namespace = "")]
[Serializable] [Serializable]
public class ItemDataRelationship { public class ItemDataRelationship {
public ItemDataRelationship() {} public ItemDataRelationship() { }
public ItemDataRelationship(ItemDataRelationship other) { public ItemDataRelationship(ItemDataRelationship other) {
Type = other.Type; Type = other.Type;
@ -16,17 +16,17 @@ public class ItemDataRelationship {
} }
[XmlElement(ElementName = "t")] [XmlElement(ElementName = "t")]
public string Type; public string Type;
[XmlElement(ElementName = "id")] [XmlElement(ElementName = "id")]
public int ItemId; public int ItemId;
[XmlElement(ElementName = "wt")] [XmlElement(ElementName = "wt")]
public int Weight; public int Weight;
[XmlElement(ElementName = "q")] [XmlElement(ElementName = "q")]
public int Quantity; public int Quantity;
[XmlElement(ElementName = "mxq")] [XmlElement(ElementName = "mxq")]
public int? MaxQuantity; public int? MaxQuantity;
} }

View File

@ -5,7 +5,7 @@ namespace sodoff.Schema;
[XmlRoot(ElementName = "IRO", Namespace = "")] [XmlRoot(ElementName = "IRO", Namespace = "")]
[Serializable] [Serializable]
public class ItemDataRollover { public class ItemDataRollover {
public ItemDataRollover() {} public ItemDataRollover() { }
public ItemDataRollover(ItemDataRollover other) { public ItemDataRollover(ItemDataRollover other) {
DialogName = other.DialogName; DialogName = other.DialogName;
@ -13,8 +13,8 @@ public class ItemDataRollover {
} }
[XmlElement(ElementName = "d")] [XmlElement(ElementName = "d")]
public string DialogName; public string DialogName;
[XmlElement(ElementName = "b")] [XmlElement(ElementName = "b")]
public string Bundle; public string Bundle;
} }

View File

@ -5,7 +5,7 @@ namespace sodoff.Schema;
[XmlRoot(ElementName = "IT", Namespace = "")] [XmlRoot(ElementName = "IT", Namespace = "")]
[Serializable] [Serializable]
public class ItemDataTexture { public class ItemDataTexture {
public ItemDataTexture() {} public ItemDataTexture() { }
public ItemDataTexture(ItemDataTexture other) { public ItemDataTexture(ItemDataTexture other) {
TextureName = other.TextureName; TextureName = other.TextureName;
@ -15,14 +15,14 @@ public class ItemDataTexture {
} }
[XmlElement(ElementName = "n")] [XmlElement(ElementName = "n")]
public string TextureName; public string TextureName;
[XmlElement(ElementName = "t")] [XmlElement(ElementName = "t")]
public string TextureTypeName; public string TextureTypeName;
[XmlElement(ElementName = "x", IsNullable = true)] [XmlElement(ElementName = "x", IsNullable = true)]
public float? OffsetX; public float? OffsetX;
[XmlElement(ElementName = "y", IsNullable = true)] [XmlElement(ElementName = "y", IsNullable = true)]
public float? OffsetY; public float? OffsetY;
} }

View File

@ -5,7 +5,7 @@ namespace sodoff.Schema;
[XmlRoot(ElementName = "IPSM", Namespace = "", IsNullable = false)] [XmlRoot(ElementName = "IPSM", Namespace = "", IsNullable = false)]
[Serializable] [Serializable]
public class ItemPossibleStatsMap { public class ItemPossibleStatsMap {
public ItemPossibleStatsMap() {} public ItemPossibleStatsMap() { }
public ItemPossibleStatsMap(ItemPossibleStatsMap other) { public ItemPossibleStatsMap(ItemPossibleStatsMap other) {
ItemID = other.ItemID; ItemID = other.ItemID;
@ -15,14 +15,14 @@ public class ItemPossibleStatsMap {
} }
[XmlElement(ElementName = "IID", IsNullable = false)] [XmlElement(ElementName = "IID", IsNullable = false)]
public int ItemID { get; set; } public int ItemID { get; set; }
[XmlElement(ElementName = "SC", IsNullable = false)] [XmlElement(ElementName = "SC", IsNullable = false)]
public int ItemStatsCount { get; set; } public int ItemStatsCount { get; set; }
[XmlElement(ElementName = "SID", IsNullable = false)] [XmlElement(ElementName = "SID", IsNullable = false)]
public int SetID { get; set; } public int SetID { get; set; }
[XmlElement(ElementName = "SS", IsNullable = false)] [XmlElement(ElementName = "SS", IsNullable = false)]
public List<Stat> Stats { get; set; } public List<Stat> Stats { get; set; }
} }

View File

@ -5,7 +5,7 @@ namespace sodoff.Schema;
[XmlRoot(ElementName = "ISC", Namespace = "", IsNullable = true)] [XmlRoot(ElementName = "ISC", Namespace = "", IsNullable = true)]
[Serializable] [Serializable]
public class ItemSaleConfig { public class ItemSaleConfig {
public ItemSaleConfig() {} public ItemSaleConfig() { }
public ItemSaleConfig(ItemSaleConfig other) { public ItemSaleConfig(ItemSaleConfig other) {
ItemID = other.ItemID; ItemID = other.ItemID;
@ -16,17 +16,17 @@ public class ItemSaleConfig {
} }
[XmlElement(ElementName = "IID", IsNullable = true)] [XmlElement(ElementName = "IID", IsNullable = true)]
public int? ItemID { get; set; } public int? ItemID { get; set; }
[XmlElement(ElementName = "CID", IsNullable = true)] [XmlElement(ElementName = "CID", IsNullable = true)]
public int? CategoryID { get; set; } public int? CategoryID { get; set; }
[XmlElement(ElementName = "RID", IsNullable = true)] [XmlElement(ElementName = "RID", IsNullable = true)]
public int? RarityID { get; set; } public int? RarityID { get; set; }
[XmlElement(ElementName = "QTY", IsNullable = false)] [XmlElement(ElementName = "QTY", IsNullable = false)]
public int Quantity { get; set; } public int Quantity { get; set; }
[XmlElement(ElementName = "RIID", IsNullable = false)] [XmlElement(ElementName = "RIID", IsNullable = false)]
public int RewardItemID { get; set; } public int RewardItemID { get; set; }
} }

View File

@ -5,7 +5,7 @@ namespace sodoff.Schema;
[XmlRoot(ElementName = "IS", Namespace = "")] [XmlRoot(ElementName = "IS", Namespace = "")]
[Serializable] [Serializable]
public class ItemStat { public class ItemStat {
public ItemStat() {} public ItemStat() { }
public ItemStat(ItemStat other) { public ItemStat(ItemStat other) {
ItemStatID = other.ItemStatID; ItemStatID = other.ItemStatID;
@ -15,14 +15,14 @@ public class ItemStat {
} }
[XmlElement(ElementName = "ID")] [XmlElement(ElementName = "ID")]
public int ItemStatID { get; set; } public int ItemStatID { get; set; }
[XmlElement(ElementName = "N")] [XmlElement(ElementName = "N")]
public string Name { get; set; } public string Name { get; set; }
[XmlElement(ElementName = "V")] [XmlElement(ElementName = "V")]
public string Value { get; set; } public string Value { get; set; }
[XmlElement(ElementName = "DTI")] [XmlElement(ElementName = "DTI")]
public DataTypeInfo DataType { get; set; } public DataTypeInfo DataType { get; set; }
} }

View File

@ -17,20 +17,20 @@ public class ItemState {
} }
[XmlElement(ElementName = "ItemStateID")] [XmlElement(ElementName = "ItemStateID")]
public int ItemStateID; public int ItemStateID;
[XmlElement(ElementName = "Name")] [XmlElement(ElementName = "Name")]
public string Name; public string Name;
[XmlElement(ElementName = "Rule")] [XmlElement(ElementName = "Rule")]
public ItemStateRule Rule; public ItemStateRule Rule;
[XmlElement(ElementName = "Order")] [XmlElement(ElementName = "Order")]
public int Order; public int Order;
[XmlElement(ElementName = "AchievementID", IsNullable = true)] [XmlElement(ElementName = "AchievementID", IsNullable = true)]
public int? AchievementID; public int? AchievementID;
[XmlElement(ElementName = "Rewards")] [XmlElement(ElementName = "Rewards")]
public AchievementReward[] Rewards; public AchievementReward[] Rewards;
} }

View File

@ -11,12 +11,12 @@ namespace sodoff.Schema;
[XmlInclude(typeof(ItemStateCriteriaExpiry))] [XmlInclude(typeof(ItemStateCriteriaExpiry))]
[Serializable] [Serializable]
public class ItemStateCriteria { public class ItemStateCriteria {
public ItemStateCriteria() {} public ItemStateCriteria() { }
public ItemStateCriteria(ItemStateCriteria other) { public ItemStateCriteria(ItemStateCriteria other) {
Type = other.Type; Type = other.Type;
} }
[XmlElement(ElementName = "Type")] [XmlElement(ElementName = "Type")]
public ItemStateCriteriaType Type; public ItemStateCriteriaType Type;
} }

View File

@ -5,7 +5,7 @@ namespace sodoff.Schema;
[XmlRoot(ElementName = "ItemStateRule", Namespace = "")] [XmlRoot(ElementName = "ItemStateRule", Namespace = "")]
[Serializable] [Serializable]
public class ItemStateRule { public class ItemStateRule {
public ItemStateRule() {} public ItemStateRule() { }
public ItemStateRule(ItemStateRule other) { public ItemStateRule(ItemStateRule other) {
Criterias = other.Criterias.Select(c => new ItemStateCriteria(c)).ToList(); Criterias = other.Criterias.Select(c => new ItemStateCriteria(c)).ToList();
@ -13,8 +13,8 @@ public class ItemStateRule {
} }
[XmlElement(ElementName = "Criterias")] [XmlElement(ElementName = "Criterias")]
public List<ItemStateCriteria> Criterias; public List<ItemStateCriteria> Criterias;
[XmlElement(ElementName = "CompletionAction")] [XmlElement(ElementName = "CompletionAction")]
public CompletionAction CompletionAction; public CompletionAction CompletionAction;
} }

View File

@ -5,7 +5,7 @@ namespace sodoff.Schema;
[XmlRoot(ElementName = "ISM", Namespace = "", IsNullable = false)] [XmlRoot(ElementName = "ISM", Namespace = "", IsNullable = false)]
[Serializable] [Serializable]
public class ItemStatsMap { public class ItemStatsMap {
public ItemStatsMap() {} public ItemStatsMap() { }
public ItemStatsMap(ItemStatsMap other) { public ItemStatsMap(ItemStatsMap other) {
ItemID = other.ItemID; ItemID = other.ItemID;
@ -14,11 +14,11 @@ public class ItemStatsMap {
} }
[XmlElement(ElementName = "IID", IsNullable = false)] [XmlElement(ElementName = "IID", IsNullable = false)]
public int ItemID { get; set; } public int ItemID { get; set; }
[XmlElement(ElementName = "IT", IsNullable = false)] [XmlElement(ElementName = "IT", IsNullable = false)]
public ItemTier ItemTier { get; set; } public ItemTier ItemTier { get; set; }
[XmlElement(ElementName = "ISS", IsNullable = false)] [XmlElement(ElementName = "ISS", IsNullable = false)]
public ItemStat[] ItemStats { get; set; } public ItemStat[] ItemStats { get; set; }
} }

View File

@ -3,9 +3,9 @@
namespace sodoff.Schema; namespace sodoff.Schema;
[XmlRoot(ElementName = "Mission", Namespace = "")] [XmlRoot(ElementName = "Mission", Namespace = "")]
[Serializable] // FIXME: Remove serializable once we have a different way of deep copying than BinaryFormatter [Serializable]
public class Mission { public class Mission {
public Mission() {} public Mission() { }
public Mission(Mission other) { public Mission(Mission other) {
if (other == null) throw new ArgumentNullException(nameof(other)); if (other == null) throw new ArgumentNullException(nameof(other));

View File

@ -5,7 +5,7 @@ namespace sodoff.Schema;
[XmlRoot(ElementName = "MissionCriteria", Namespace = "")] [XmlRoot(ElementName = "MissionCriteria", Namespace = "")]
[Serializable] [Serializable]
public class MissionCriteria { public class MissionCriteria {
public MissionCriteria() {} public MissionCriteria() { }
public MissionCriteria(MissionCriteria other) { public MissionCriteria(MissionCriteria other) {
Type = other.Type; Type = other.Type;

View File

@ -5,7 +5,7 @@ namespace sodoff.Schema;
[XmlRoot(ElementName = "MissionRule", Namespace = "")] [XmlRoot(ElementName = "MissionRule", Namespace = "")]
[Serializable] [Serializable]
public class MissionRule { public class MissionRule {
public MissionRule() {} public MissionRule() { }
public MissionRule(MissionRule other) { public MissionRule(MissionRule other) {
Prerequisites = other.Prerequisites.Select(p => new PrerequisiteItem(p)).ToList(); Prerequisites = other.Prerequisites.Select(p => new PrerequisiteItem(p)).ToList();

View File

@ -5,7 +5,7 @@ namespace sodoff.Schema;
[XmlRoot(ElementName = "Pair", Namespace = "")] [XmlRoot(ElementName = "Pair", Namespace = "")]
[Serializable] [Serializable]
public class Pair { public class Pair {
public Pair() {} public Pair() { }
public Pair(Pair other) { public Pair(Pair other) {
PairKey = other.PairKey; PairKey = other.PairKey;
@ -14,11 +14,11 @@ public class Pair {
} }
[XmlElement(ElementName = "PairKey")] [XmlElement(ElementName = "PairKey")]
public string PairKey; public string PairKey;
[XmlElement(ElementName = "PairValue")] [XmlElement(ElementName = "PairValue")]
public string PairValue; public string PairValue;
[XmlElement(ElementName = "UpdateDate")] [XmlElement(ElementName = "UpdateDate")]
public DateTime UpdateDate; public DateTime UpdateDate;
} }

View File

@ -5,7 +5,7 @@ namespace sodoff.Schema;
[XmlRoot(ElementName = "Pairs", Namespace = "", IsNullable = true)] [XmlRoot(ElementName = "Pairs", Namespace = "", IsNullable = true)]
[Serializable] [Serializable]
public class PairData { public class PairData {
public PairData() {} public PairData() { }
public PairData(PairData other) { public PairData(PairData other) {
Pairs = other.Pairs.Select(p => new Pair(p)).ToArray(); Pairs = other.Pairs.Select(p => new Pair(p)).ToArray();

View File

@ -5,7 +5,7 @@ namespace sodoff.Schema;
[XmlRoot(ElementName = "PrerequisiteItem", Namespace = "")] [XmlRoot(ElementName = "PrerequisiteItem", Namespace = "")]
[Serializable] [Serializable]
public class PrerequisiteItem { public class PrerequisiteItem {
public PrerequisiteItem() {} public PrerequisiteItem() { }
public PrerequisiteItem(PrerequisiteItem other) { public PrerequisiteItem(PrerequisiteItem other) {
Type = other.Type; Type = other.Type;

View File

@ -5,7 +5,7 @@ namespace sodoff.Schema;
[XmlRoot(ElementName = "RuleItem", Namespace = "")] [XmlRoot(ElementName = "RuleItem", Namespace = "")]
[Serializable] [Serializable]
public class RuleItem { public class RuleItem {
public RuleItem() {} public RuleItem() { }
public RuleItem(RuleItem other) { public RuleItem(RuleItem other) {
Type = other.Type; Type = other.Type;

View File

@ -5,7 +5,7 @@ namespace sodoff.Schema;
[XmlRoot(ElementName = "STAT", Namespace = "", IsNullable = false)] [XmlRoot(ElementName = "STAT", Namespace = "", IsNullable = false)]
[Serializable] [Serializable]
public class Stat { public class Stat {
public Stat() {} public Stat() { }
public Stat(Stat other) { public Stat(Stat other) {
ItemID = other.ItemID; ItemID = other.ItemID;
@ -16,17 +16,17 @@ public class Stat {
} }
[XmlElement(ElementName = "IID", IsNullable = false)] [XmlElement(ElementName = "IID", IsNullable = false)]
public int ItemID { get; set; } public int ItemID { get; set; }
[XmlElement(ElementName = "ISID", IsNullable = false)] [XmlElement(ElementName = "ISID", IsNullable = false)]
public int ItemStatsID { get; set; } public int ItemStatsID { get; set; }
[XmlElement(ElementName = "SID", IsNullable = false)] [XmlElement(ElementName = "SID", IsNullable = false)]
public int SetID { get; set; } public int SetID { get; set; }
[XmlElement(ElementName = "PROB", IsNullable = false)] [XmlElement(ElementName = "PROB", IsNullable = false)]
public int Probability { get; set; } public int Probability { get; set; }
[XmlElement(ElementName = "ISRM", IsNullable = false)] [XmlElement(ElementName = "ISRM", IsNullable = false)]
public List<StatRangeMap> ItemStatsRangeMaps { get; set; } public List<StatRangeMap> ItemStatsRangeMaps { get; set; }
} }

View File

@ -5,7 +5,7 @@ namespace sodoff.Schema;
[XmlRoot(ElementName = "SRM", Namespace = "", IsNullable = false)] [XmlRoot(ElementName = "SRM", Namespace = "", IsNullable = false)]
[Serializable] [Serializable]
public class StatRangeMap { public class StatRangeMap {
public StatRangeMap() {} public StatRangeMap() { }
public StatRangeMap(StatRangeMap other) { public StatRangeMap(StatRangeMap other) {
ItemStatsID = other.ItemStatsID; ItemStatsID = other.ItemStatsID;
@ -16,17 +16,17 @@ public class StatRangeMap {
} }
[XmlElement(ElementName = "ISID", IsNullable = false)] [XmlElement(ElementName = "ISID", IsNullable = false)]
public int ItemStatsID { get; set; } public int ItemStatsID { get; set; }
[XmlElement(ElementName = "ISN", IsNullable = false)] [XmlElement(ElementName = "ISN", IsNullable = false)]
public string ItemStatsName { get; set; } public string ItemStatsName { get; set; }
[XmlElement(ElementName = "ITID", IsNullable = false)] [XmlElement(ElementName = "ITID", IsNullable = false)]
public int ItemTierID { get; set; } public int ItemTierID { get; set; }
[XmlElement(ElementName = "SR", IsNullable = false)] [XmlElement(ElementName = "SR", IsNullable = false)]
public int StartRange { get; set; } public int StartRange { get; set; }
[XmlElement(ElementName = "ER", IsNullable = false)] [XmlElement(ElementName = "ER", IsNullable = false)]
public int EndRange { get; set; } public int EndRange { get; set; }
} }

View File

@ -8,7 +8,7 @@ namespace sodoff.Schema;
[XmlRoot(ElementName = "Task", Namespace = "")] [XmlRoot(ElementName = "Task", Namespace = "")]
[Serializable] [Serializable]
public class Task { public class Task {
public Task() {} public Task() { }
public Task(Task other) { public Task(Task other) {
TaskID = other.TaskID; TaskID = other.TaskID;

View File

@ -5,7 +5,7 @@ namespace sodoff.Schema;
[XmlRoot(ElementName = "UserItem", Namespace = "")] [XmlRoot(ElementName = "UserItem", Namespace = "")]
[Serializable] [Serializable]
public class UserItemData { public class UserItemData {
public UserItemData() {} public UserItemData() { }
public UserItemData(UserItemData other) { public UserItemData(UserItemData other) {
ItemID = other.ItemID; ItemID = other.ItemID;
@ -21,32 +21,32 @@ public class UserItemData {
} }
[XmlElement(ElementName = "iid")] [XmlElement(ElementName = "iid")]
public int ItemID { get; set; } public int ItemID { get; set; }
[XmlElement(ElementName = "md", IsNullable = true)] [XmlElement(ElementName = "md", IsNullable = true)]
public DateTime? ModifiedDate { get; set; } public DateTime? ModifiedDate { get; set; }
[XmlElement(ElementName = "uia", IsNullable = true)] [XmlElement(ElementName = "uia", IsNullable = true)]
public PairData UserItemAttributes { get; set; } public PairData UserItemAttributes { get; set; }
[XmlElement(ElementName = "iss", IsNullable = true)] [XmlElement(ElementName = "iss", IsNullable = true)]
public ItemStat[] ItemStats { get; set; } public ItemStat[] ItemStats { get; set; }
[XmlElement(ElementName = "IT", IsNullable = true)] [XmlElement(ElementName = "IT", IsNullable = true)]
public ItemTier? ItemTier { get; set; } public ItemTier? ItemTier { get; set; }
[XmlElement(ElementName = "cd", IsNullable = true)] [XmlElement(ElementName = "cd", IsNullable = true)]
public DateTime? CreatedDate { get; set; } public DateTime? CreatedDate { get; set; }
[XmlElement(ElementName = "uiid")] [XmlElement(ElementName = "uiid")]
public int UserInventoryID; public int UserInventoryID;
[XmlElement(ElementName = "q")] [XmlElement(ElementName = "q")]
public int Quantity; public int Quantity;
[XmlElement(ElementName = "u")] [XmlElement(ElementName = "u")]
public int Uses; public int Uses;
[XmlElement(ElementName = "i")] [XmlElement(ElementName = "i")]
public ItemData Item; public ItemData Item;
} }