From e03e732f337c5c7325ada661f4ba8f6f09e19963 Mon Sep 17 00:00:00 2001 From: Spirtix Date: Fri, 27 Jun 2025 14:17:05 +0200 Subject: [PATCH] fix indent --- src/Schema/AchievementReward.cs | 62 +++++------ src/Schema/BluePrint.cs | 12 +- src/Schema/BluePrintDeductibleConfig.cs | 14 +-- src/Schema/BluePrintSpecification.cs | 36 +++--- src/Schema/CompletionAction.cs | 4 +- src/Schema/ItemAttribute.cs | 8 +- src/Schema/ItemAvailability.cs | 8 +- src/Schema/ItemData.cs | 142 ++++++++++++------------ src/Schema/ItemDataCategory.cs | 12 +- src/Schema/ItemDataRelationship.cs | 20 ++-- src/Schema/ItemDataRollover.cs | 8 +- src/Schema/ItemDataTexture.cs | 16 +-- src/Schema/ItemPossibleStatsMap.cs | 16 +-- src/Schema/ItemSaleConfig.cs | 20 ++-- src/Schema/ItemStat.cs | 16 +-- src/Schema/ItemState.cs | 22 ++-- src/Schema/ItemStateCriteria.cs | 4 +- src/Schema/ItemStateRule.cs | 8 +- src/Schema/ItemStatsMap.cs | 12 +- src/Schema/Mission.cs | 4 +- src/Schema/MissionCriteria.cs | 2 +- src/Schema/MissionRule.cs | 2 +- src/Schema/Pair.cs | 16 +-- src/Schema/PairData.cs | 2 +- src/Schema/PrerequisiteItem.cs | 2 +- src/Schema/RuleItem.cs | 2 +- src/Schema/Stat.cs | 20 ++-- src/Schema/StatRangeMap.cs | 20 ++-- src/Schema/Task.cs | 2 +- src/Schema/UserItemData.cs | 40 +++---- 30 files changed, 276 insertions(+), 276 deletions(-) diff --git a/src/Schema/AchievementReward.cs b/src/Schema/AchievementReward.cs index 20f0a26..b6f4f48 100644 --- a/src/Schema/AchievementReward.cs +++ b/src/Schema/AchievementReward.cs @@ -5,11 +5,11 @@ namespace sodoff.Schema; [XmlRoot(ElementName = "AR", Namespace = "")] [Serializable] public class AchievementReward { - public AchievementReward() {} + public AchievementReward() { } public AchievementReward(AchievementReward other) { - if (other.UserItem != null) - UserItem = new UserItemData(other.UserItem); + if (other.UserItem != null) + UserItem = new UserItemData(other.UserItem); Amount = other.Amount; PointTypeID = other.PointTypeID; @@ -26,45 +26,45 @@ public class AchievementReward { } [XmlElement(ElementName = "ui", IsNullable = true)] - public UserItemData UserItem { get; set; } + public UserItemData UserItem { get; set; } - [XmlElement(ElementName = "a")] - public int? Amount; + [XmlElement(ElementName = "a")] + public int? Amount; - [XmlElement(ElementName = "p", IsNullable = true)] - public AchievementPointTypes? PointTypeID; + [XmlElement(ElementName = "p", IsNullable = true)] + public AchievementPointTypes? PointTypeID; - [XmlElement(ElementName = "ii")] - public int ItemID; + [XmlElement(ElementName = "ii")] + public int ItemID; - [XmlElement(ElementName = "i", IsNullable = true)] - public Guid? EntityID; + [XmlElement(ElementName = "i", IsNullable = true)] + public Guid? EntityID; - [XmlElement(ElementName = "t")] - public int EntityTypeID; + [XmlElement(ElementName = "t")] + public int EntityTypeID; - [XmlElement(ElementName = "r")] - public int RewardID; + [XmlElement(ElementName = "r")] + public int RewardID; - [XmlElement(ElementName = "ai")] - public int AchievementID; + [XmlElement(ElementName = "ai")] + public int AchievementID; - [XmlElement(ElementName = "amulti")] - public bool AllowMultiple; + [XmlElement(ElementName = "amulti")] + public bool AllowMultiple; - [XmlElement(ElementName = "mina", IsNullable = true)] - public int? MinAmount; + [XmlElement(ElementName = "mina", IsNullable = true)] + public int? MinAmount; - [XmlElement(ElementName = "maxa", IsNullable = true)] - public int? MaxAmount; + [XmlElement(ElementName = "maxa", IsNullable = true)] + public int? MaxAmount; - [XmlElement(ElementName = "d", IsNullable = true)] - public DateTime? Date; + [XmlElement(ElementName = "d", IsNullable = true)] + public DateTime? Date; - [XmlElement(ElementName = "cid")] - public int CommonInventoryID; + [XmlElement(ElementName = "cid")] + public int CommonInventoryID; - public AchievementReward Clone() { - return (AchievementReward) this.MemberwiseClone(); - } + public AchievementReward Clone() { + return (AchievementReward)this.MemberwiseClone(); + } } diff --git a/src/Schema/BluePrint.cs b/src/Schema/BluePrint.cs index e7f81b8..47b48d9 100644 --- a/src/Schema/BluePrint.cs +++ b/src/Schema/BluePrint.cs @@ -6,7 +6,7 @@ namespace sodoff.Schema; [XmlRoot(ElementName = "BP", Namespace = "", IsNullable = true)] [Serializable] public class BluePrint { - public BluePrint() {} + public BluePrint() { } public BluePrint(BluePrint other) { Deductibles = other.Deductibles.Select(d => new BluePrintDeductibleConfig(d)).ToList(); @@ -15,11 +15,11 @@ public class BluePrint { } [XmlElement(ElementName = "BPDC", IsNullable = true)] - public List Deductibles { get; set; } + public List Deductibles { get; set; } - [XmlElement(ElementName = "ING", IsNullable = false)] - public List Ingredients { get; set; } + [XmlElement(ElementName = "ING", IsNullable = false)] + public List Ingredients { get; set; } - [XmlElement(ElementName = "OUT", IsNullable = false)] - public List Outputs { get; set; } + [XmlElement(ElementName = "OUT", IsNullable = false)] + public List Outputs { get; set; } } diff --git a/src/Schema/BluePrintDeductibleConfig.cs b/src/Schema/BluePrintDeductibleConfig.cs index a83012c..e6ceb8c 100644 --- a/src/Schema/BluePrintDeductibleConfig.cs +++ b/src/Schema/BluePrintDeductibleConfig.cs @@ -15,14 +15,14 @@ public class BluePrintDeductibleConfig { } [XmlElement(ElementName = "BPIID", IsNullable = false)] - public int BluePrintItemID { get; set; } + public int BluePrintItemID { get; set; } - [XmlElement(ElementName = "DT", IsNullable = false)] - public DeductibleType DeductibleType { get; set; } + [XmlElement(ElementName = "DT", IsNullable = false)] + public DeductibleType DeductibleType { get; set; } - [XmlElement(ElementName = "IID", IsNullable = true)] - public int? ItemID { get; set; } + [XmlElement(ElementName = "IID", IsNullable = true)] + public int? ItemID { get; set; } - [XmlElement(ElementName = "QTY", IsNullable = false)] - public int Quantity { get; set; } + [XmlElement(ElementName = "QTY", IsNullable = false)] + public int Quantity { get; set; } } diff --git a/src/Schema/BluePrintSpecification.cs b/src/Schema/BluePrintSpecification.cs index 2851c8c..6146f1d 100644 --- a/src/Schema/BluePrintSpecification.cs +++ b/src/Schema/BluePrintSpecification.cs @@ -3,7 +3,7 @@ using System.Xml.Serialization; namespace sodoff.Schema; public class BluePrintSpecification { - public BluePrintSpecification() {} + public BluePrintSpecification() { } public BluePrintSpecification(BluePrintSpecification other) { BluePrintSpecID = other.BluePrintSpecID; @@ -17,30 +17,30 @@ public class BluePrintSpecification { } [XmlElement(ElementName = "BPSID", IsNullable = false)] - public int BluePrintSpecID { get; set; } + public int BluePrintSpecID { get; set; } - [XmlElement(ElementName = "BPIID", IsNullable = false)] - public int BluePrintItemID { get; set; } + [XmlElement(ElementName = "BPIID", IsNullable = false)] + public int BluePrintItemID { get; set; } - public bool ShouldSerializeBluePrintItemID() { return BluePrintItemID != 0; } + public bool ShouldSerializeBluePrintItemID() { return BluePrintItemID != 0; } - [XmlElement(ElementName = "IID", IsNullable = true)] - public int? ItemID { get; set; } + [XmlElement(ElementName = "IID", IsNullable = true)] + public int? ItemID { get; set; } - [XmlElement(ElementName = "CID", IsNullable = true)] - public int? CategoryID { get; set; } + [XmlElement(ElementName = "CID", IsNullable = true)] + public int? CategoryID { get; set; } - [XmlElement(ElementName = "IR", IsNullable = true)] - public ItemRarity? ItemRarity { get; set; } + [XmlElement(ElementName = "IR", IsNullable = true)] + public ItemRarity? ItemRarity { get; set; } - [XmlElement(ElementName = "T", IsNullable = true)] - public ItemTier? Tier { get; set; } + [XmlElement(ElementName = "T", IsNullable = true)] + public ItemTier? Tier { get; set; } - [XmlElement(ElementName = "QTY", IsNullable = false)] - public int Quantity { get; set; } + [XmlElement(ElementName = "QTY", IsNullable = false)] + public int Quantity { get; set; } - [XmlElement(ElementName = "ST", IsNullable = true)] - public SpecificationType? SpecificationType { get; set; } + [XmlElement(ElementName = "ST", IsNullable = true)] + public SpecificationType? SpecificationType { get; set; } - public bool ShouldSerializeSpecificationType() { return SpecificationType != null; } + public bool ShouldSerializeSpecificationType() { return SpecificationType != null; } } diff --git a/src/Schema/CompletionAction.cs b/src/Schema/CompletionAction.cs index 8e9e9e2..5d49da3 100644 --- a/src/Schema/CompletionAction.cs +++ b/src/Schema/CompletionAction.cs @@ -4,12 +4,12 @@ namespace sodoff.Schema; [Serializable] public class CompletionAction { - public CompletionAction() {} + public CompletionAction() { } public CompletionAction(CompletionAction other) { Transition = other.Transition; } [XmlElement(ElementName = "Transition")] - public StateTransition Transition; + public StateTransition Transition; } diff --git a/src/Schema/ItemAttribute.cs b/src/Schema/ItemAttribute.cs index a5c3056..bfa76d8 100644 --- a/src/Schema/ItemAttribute.cs +++ b/src/Schema/ItemAttribute.cs @@ -5,7 +5,7 @@ namespace sodoff.Schema; [XmlRoot(ElementName = "AT", Namespace = "")] [Serializable] public class ItemAttribute { - public ItemAttribute() {} + public ItemAttribute() { } public ItemAttribute(ItemAttribute other) { Key = other.Key; @@ -13,8 +13,8 @@ public class ItemAttribute { } [XmlElement(ElementName = "k")] - public string Key; + public string Key; - [XmlElement(ElementName = "v")] - public string Value; + [XmlElement(ElementName = "v")] + public string Value; } diff --git a/src/Schema/ItemAvailability.cs b/src/Schema/ItemAvailability.cs index 898a666..3b79bc6 100644 --- a/src/Schema/ItemAvailability.cs +++ b/src/Schema/ItemAvailability.cs @@ -5,7 +5,7 @@ namespace sodoff.Schema; [XmlRoot(ElementName = "Availability", Namespace = "")] [Serializable] public class ItemAvailability { - public ItemAvailability() {} + public ItemAvailability() { } public ItemAvailability(ItemAvailability other) { StartDate = other.StartDate; @@ -13,8 +13,8 @@ public class ItemAvailability { } [XmlElement(ElementName = "sdate", IsNullable = true)] - public DateTime? StartDate; + public DateTime? StartDate; - [XmlElement(ElementName = "edate", IsNullable = true)] - public DateTime? EndDate; + [XmlElement(ElementName = "edate", IsNullable = true)] + public DateTime? EndDate; } diff --git a/src/Schema/ItemData.cs b/src/Schema/ItemData.cs index c8b591a..73c5762 100644 --- a/src/Schema/ItemData.cs +++ b/src/Schema/ItemData.cs @@ -4,7 +4,7 @@ namespace sodoff.Schema; [XmlRoot(ElementName = "I", Namespace = "", IsNullable = true)] public class ItemData { - public ItemData() {} + public ItemData() { } public ItemData(ItemData other) { ItemStates = other.ItemStates.Select(s => new ItemState(s)).ToList(); @@ -43,108 +43,108 @@ public class ItemData { } [XmlElement(ElementName = "is")] - public List ItemStates { get; set; } + public List ItemStates { get; set; } - [XmlElement(ElementName = "ir", IsNullable = true)] - public ItemRarity? ItemRarity { get; set; } + [XmlElement(ElementName = "ir", IsNullable = true)] + public ItemRarity? ItemRarity { get; set; } - [XmlElement(ElementName = "ipsm", IsNullable = true)] - public ItemPossibleStatsMap PossibleStatsMap { get; set; } + [XmlElement(ElementName = "ipsm", IsNullable = true)] + public ItemPossibleStatsMap PossibleStatsMap { get; set; } - [XmlElement(ElementName = "ism", IsNullable = true)] - public ItemStatsMap ItemStatsMap { get; set; } + [XmlElement(ElementName = "ism", IsNullable = true)] + public ItemStatsMap ItemStatsMap { get; set; } - [XmlElement(ElementName = "iscs", IsNullable = true)] - public ItemSaleConfig[] ItemSaleConfigs { get; set; } + [XmlElement(ElementName = "iscs", IsNullable = true)] + public ItemSaleConfig[] ItemSaleConfigs { get; set; } - [XmlElement(ElementName = "bp", IsNullable = true)] - public BluePrint BluePrint { get; set; } + [XmlElement(ElementName = "bp", IsNullable = true)] + public BluePrint BluePrint { get; set; } - [XmlElement(ElementName = "an")] - public string AssetName; + [XmlElement(ElementName = "an")] + public string AssetName; - [XmlElement(ElementName = "at", IsNullable = true)] - public ItemAttribute[] Attribute; + [XmlElement(ElementName = "at", IsNullable = true)] + public ItemAttribute[] Attribute; - [XmlElement(ElementName = "c")] - public ItemDataCategory[] Category; + [XmlElement(ElementName = "c")] + public ItemDataCategory[] Category; - [XmlElement(ElementName = "ct")] - public int Cost; + [XmlElement(ElementName = "ct")] + public int Cost; - [XmlElement(ElementName = "ct2")] - public int CashCost; + [XmlElement(ElementName = "ct2")] + public int CashCost; - [XmlElement(ElementName = "cp")] - public int CreativePoints; + [XmlElement(ElementName = "cp")] + public int CreativePoints; - [XmlElement(ElementName = "d")] - public string Description; + [XmlElement(ElementName = "d")] + public string Description; - [XmlElement(ElementName = "icn")] - public string IconName; + [XmlElement(ElementName = "icn")] + public string IconName; - [XmlElement(ElementName = "im")] - public int InventoryMax; + [XmlElement(ElementName = "im")] + public int InventoryMax; - [XmlElement(ElementName = "id")] - public int ItemID; + [XmlElement(ElementName = "id")] + public int ItemID; - [XmlElement(ElementName = "itn")] - public string ItemName; + [XmlElement(ElementName = "itn")] + public string ItemName; - [XmlElement(ElementName = "itnp")] - public string ItemNamePlural; + [XmlElement(ElementName = "itnp")] + public string ItemNamePlural; - [XmlElement(ElementName = "l")] - public bool Locked; + [XmlElement(ElementName = "l")] + public bool Locked; - [XmlElement(ElementName = "g", IsNullable = true)] - public string Geometry2; + [XmlElement(ElementName = "g", IsNullable = true)] + public string Geometry2; - [XmlElement(ElementName = "ro", IsNullable = true)] - public ItemDataRollover Rollover; + [XmlElement(ElementName = "ro", IsNullable = true)] + public ItemDataRollover Rollover; - [XmlElement(ElementName = "rid", IsNullable = true)] - public int? RankId; + [XmlElement(ElementName = "rid", IsNullable = true)] + public int? RankId; - [XmlElement(ElementName = "r")] - public ItemDataRelationship[] Relationship; + [XmlElement(ElementName = "r")] + public ItemDataRelationship[] Relationship; - [XmlElement(ElementName = "s")] - public bool Stackable; + [XmlElement(ElementName = "s")] + public bool Stackable; - [XmlElement(ElementName = "as")] - public bool AllowStacking; + [XmlElement(ElementName = "as")] + public bool AllowStacking; - [XmlElement(ElementName = "sf")] - public int SaleFactor; + [XmlElement(ElementName = "sf")] + public int SaleFactor; - [XmlElement(ElementName = "t")] - public ItemDataTexture[] Texture; + [XmlElement(ElementName = "t")] + public ItemDataTexture[] Texture; - [XmlElement(ElementName = "u")] - public int Uses; + [XmlElement(ElementName = "u")] + public int Uses; - [XmlElement(ElementName = "av")] - public ItemAvailability[] Availability; + [XmlElement(ElementName = "av")] + public ItemAvailability[] Availability; - [XmlElement(ElementName = "rtid")] - public int RewardTypeID; + [XmlElement(ElementName = "rtid")] + public int RewardTypeID; - [XmlElement(ElementName = "p", IsNullable = true)] - public int? Points; + [XmlElement(ElementName = "p", IsNullable = true)] + public int? Points; - [XmlIgnore] - public float NormalDiscoutModifier; + [XmlIgnore] + public float NormalDiscoutModifier; - [XmlIgnore] - public float MemberDiscountModifier; + [XmlIgnore] + public float MemberDiscountModifier; - [XmlIgnore] - public float FinalDiscoutModifier { - get { - return Math.Min(1f, (1f - NormalDiscoutModifier) * (1f - MemberDiscountModifier)); + [XmlIgnore] + public float FinalDiscoutModifier { + get { + return Math.Min(1f, (1f - NormalDiscoutModifier) * (1f - MemberDiscountModifier)); } - } + } } diff --git a/src/Schema/ItemDataCategory.cs b/src/Schema/ItemDataCategory.cs index 6e5cb55..d9b31b6 100644 --- a/src/Schema/ItemDataCategory.cs +++ b/src/Schema/ItemDataCategory.cs @@ -5,7 +5,7 @@ namespace sodoff.Schema; [XmlRoot(ElementName = "IC", Namespace = "")] [Serializable] public class ItemDataCategory { - public ItemDataCategory() {} + public ItemDataCategory() { } public ItemDataCategory(ItemDataCategory other) { CategoryId = other.CategoryId; @@ -14,11 +14,11 @@ public class ItemDataCategory { } [XmlElement(ElementName = "cid")] - public int CategoryId; + public int CategoryId; - [XmlElement(ElementName = "cn")] - public string CategoryName; + [XmlElement(ElementName = "cn")] + public string CategoryName; - [XmlElement(ElementName = "i", IsNullable = true)] - public string IconName; + [XmlElement(ElementName = "i", IsNullable = true)] + public string IconName; } diff --git a/src/Schema/ItemDataRelationship.cs b/src/Schema/ItemDataRelationship.cs index f340ecf..58c0817 100644 --- a/src/Schema/ItemDataRelationship.cs +++ b/src/Schema/ItemDataRelationship.cs @@ -5,7 +5,7 @@ namespace sodoff.Schema; [XmlRoot(ElementName = "IRE", Namespace = "")] [Serializable] public class ItemDataRelationship { - public ItemDataRelationship() {} + public ItemDataRelationship() { } public ItemDataRelationship(ItemDataRelationship other) { Type = other.Type; @@ -16,17 +16,17 @@ public class ItemDataRelationship { } [XmlElement(ElementName = "t")] - public string Type; + public string Type; - [XmlElement(ElementName = "id")] - public int ItemId; + [XmlElement(ElementName = "id")] + public int ItemId; - [XmlElement(ElementName = "wt")] - public int Weight; + [XmlElement(ElementName = "wt")] + public int Weight; - [XmlElement(ElementName = "q")] - public int Quantity; + [XmlElement(ElementName = "q")] + public int Quantity; - [XmlElement(ElementName = "mxq")] - public int? MaxQuantity; + [XmlElement(ElementName = "mxq")] + public int? MaxQuantity; } diff --git a/src/Schema/ItemDataRollover.cs b/src/Schema/ItemDataRollover.cs index baee86f..7e03179 100644 --- a/src/Schema/ItemDataRollover.cs +++ b/src/Schema/ItemDataRollover.cs @@ -5,7 +5,7 @@ namespace sodoff.Schema; [XmlRoot(ElementName = "IRO", Namespace = "")] [Serializable] public class ItemDataRollover { - public ItemDataRollover() {} + public ItemDataRollover() { } public ItemDataRollover(ItemDataRollover other) { DialogName = other.DialogName; @@ -13,8 +13,8 @@ public class ItemDataRollover { } [XmlElement(ElementName = "d")] - public string DialogName; + public string DialogName; - [XmlElement(ElementName = "b")] - public string Bundle; + [XmlElement(ElementName = "b")] + public string Bundle; } diff --git a/src/Schema/ItemDataTexture.cs b/src/Schema/ItemDataTexture.cs index 1650352..053d109 100644 --- a/src/Schema/ItemDataTexture.cs +++ b/src/Schema/ItemDataTexture.cs @@ -5,7 +5,7 @@ namespace sodoff.Schema; [XmlRoot(ElementName = "IT", Namespace = "")] [Serializable] public class ItemDataTexture { - public ItemDataTexture() {} + public ItemDataTexture() { } public ItemDataTexture(ItemDataTexture other) { TextureName = other.TextureName; @@ -15,14 +15,14 @@ public class ItemDataTexture { } [XmlElement(ElementName = "n")] - public string TextureName; + public string TextureName; - [XmlElement(ElementName = "t")] - public string TextureTypeName; + [XmlElement(ElementName = "t")] + public string TextureTypeName; - [XmlElement(ElementName = "x", IsNullable = true)] - public float? OffsetX; + [XmlElement(ElementName = "x", IsNullable = true)] + public float? OffsetX; - [XmlElement(ElementName = "y", IsNullable = true)] - public float? OffsetY; + [XmlElement(ElementName = "y", IsNullable = true)] + public float? OffsetY; } diff --git a/src/Schema/ItemPossibleStatsMap.cs b/src/Schema/ItemPossibleStatsMap.cs index ac577b0..4070725 100644 --- a/src/Schema/ItemPossibleStatsMap.cs +++ b/src/Schema/ItemPossibleStatsMap.cs @@ -5,7 +5,7 @@ namespace sodoff.Schema; [XmlRoot(ElementName = "IPSM", Namespace = "", IsNullable = false)] [Serializable] public class ItemPossibleStatsMap { - public ItemPossibleStatsMap() {} + public ItemPossibleStatsMap() { } public ItemPossibleStatsMap(ItemPossibleStatsMap other) { ItemID = other.ItemID; @@ -15,14 +15,14 @@ public class ItemPossibleStatsMap { } [XmlElement(ElementName = "IID", IsNullable = false)] - public int ItemID { get; set; } + public int ItemID { get; set; } - [XmlElement(ElementName = "SC", IsNullable = false)] - public int ItemStatsCount { get; set; } + [XmlElement(ElementName = "SC", IsNullable = false)] + public int ItemStatsCount { get; set; } - [XmlElement(ElementName = "SID", IsNullable = false)] - public int SetID { get; set; } + [XmlElement(ElementName = "SID", IsNullable = false)] + public int SetID { get; set; } - [XmlElement(ElementName = "SS", IsNullable = false)] - public List Stats { get; set; } + [XmlElement(ElementName = "SS", IsNullable = false)] + public List Stats { get; set; } } diff --git a/src/Schema/ItemSaleConfig.cs b/src/Schema/ItemSaleConfig.cs index 0528167..c7644e6 100644 --- a/src/Schema/ItemSaleConfig.cs +++ b/src/Schema/ItemSaleConfig.cs @@ -5,7 +5,7 @@ namespace sodoff.Schema; [XmlRoot(ElementName = "ISC", Namespace = "", IsNullable = true)] [Serializable] public class ItemSaleConfig { - public ItemSaleConfig() {} + public ItemSaleConfig() { } public ItemSaleConfig(ItemSaleConfig other) { ItemID = other.ItemID; @@ -16,17 +16,17 @@ public class ItemSaleConfig { } [XmlElement(ElementName = "IID", IsNullable = true)] - public int? ItemID { get; set; } + public int? ItemID { get; set; } - [XmlElement(ElementName = "CID", IsNullable = true)] - public int? CategoryID { get; set; } + [XmlElement(ElementName = "CID", IsNullable = true)] + public int? CategoryID { get; set; } - [XmlElement(ElementName = "RID", IsNullable = true)] - public int? RarityID { get; set; } + [XmlElement(ElementName = "RID", IsNullable = true)] + public int? RarityID { get; set; } - [XmlElement(ElementName = "QTY", IsNullable = false)] - public int Quantity { get; set; } + [XmlElement(ElementName = "QTY", IsNullable = false)] + public int Quantity { get; set; } - [XmlElement(ElementName = "RIID", IsNullable = false)] - public int RewardItemID { get; set; } + [XmlElement(ElementName = "RIID", IsNullable = false)] + public int RewardItemID { get; set; } } diff --git a/src/Schema/ItemStat.cs b/src/Schema/ItemStat.cs index 3a1b9c0..3782a33 100644 --- a/src/Schema/ItemStat.cs +++ b/src/Schema/ItemStat.cs @@ -5,7 +5,7 @@ namespace sodoff.Schema; [XmlRoot(ElementName = "IS", Namespace = "")] [Serializable] public class ItemStat { - public ItemStat() {} + public ItemStat() { } public ItemStat(ItemStat other) { ItemStatID = other.ItemStatID; @@ -15,14 +15,14 @@ public class ItemStat { } [XmlElement(ElementName = "ID")] - public int ItemStatID { get; set; } + public int ItemStatID { get; set; } - [XmlElement(ElementName = "N")] - public string Name { get; set; } + [XmlElement(ElementName = "N")] + public string Name { get; set; } - [XmlElement(ElementName = "V")] - public string Value { get; set; } + [XmlElement(ElementName = "V")] + public string Value { get; set; } - [XmlElement(ElementName = "DTI")] - public DataTypeInfo DataType { get; set; } + [XmlElement(ElementName = "DTI")] + public DataTypeInfo DataType { get; set; } } diff --git a/src/Schema/ItemState.cs b/src/Schema/ItemState.cs index a39af77..3d90ab4 100644 --- a/src/Schema/ItemState.cs +++ b/src/Schema/ItemState.cs @@ -17,20 +17,20 @@ public class ItemState { } [XmlElement(ElementName = "ItemStateID")] - public int ItemStateID; + public int ItemStateID; - [XmlElement(ElementName = "Name")] - public string Name; + [XmlElement(ElementName = "Name")] + public string Name; - [XmlElement(ElementName = "Rule")] - public ItemStateRule Rule; + [XmlElement(ElementName = "Rule")] + public ItemStateRule Rule; - [XmlElement(ElementName = "Order")] - public int Order; + [XmlElement(ElementName = "Order")] + public int Order; - [XmlElement(ElementName = "AchievementID", IsNullable = true)] - public int? AchievementID; + [XmlElement(ElementName = "AchievementID", IsNullable = true)] + public int? AchievementID; - [XmlElement(ElementName = "Rewards")] - public AchievementReward[] Rewards; + [XmlElement(ElementName = "Rewards")] + public AchievementReward[] Rewards; } diff --git a/src/Schema/ItemStateCriteria.cs b/src/Schema/ItemStateCriteria.cs index 715946f..5a482c4 100644 --- a/src/Schema/ItemStateCriteria.cs +++ b/src/Schema/ItemStateCriteria.cs @@ -11,12 +11,12 @@ namespace sodoff.Schema; [XmlInclude(typeof(ItemStateCriteriaExpiry))] [Serializable] public class ItemStateCriteria { - public ItemStateCriteria() {} + public ItemStateCriteria() { } public ItemStateCriteria(ItemStateCriteria other) { Type = other.Type; } [XmlElement(ElementName = "Type")] - public ItemStateCriteriaType Type; + public ItemStateCriteriaType Type; } diff --git a/src/Schema/ItemStateRule.cs b/src/Schema/ItemStateRule.cs index 162efb4..e8eac05 100644 --- a/src/Schema/ItemStateRule.cs +++ b/src/Schema/ItemStateRule.cs @@ -5,7 +5,7 @@ namespace sodoff.Schema; [XmlRoot(ElementName = "ItemStateRule", Namespace = "")] [Serializable] public class ItemStateRule { - public ItemStateRule() {} + public ItemStateRule() { } public ItemStateRule(ItemStateRule other) { Criterias = other.Criterias.Select(c => new ItemStateCriteria(c)).ToList(); @@ -13,8 +13,8 @@ public class ItemStateRule { } [XmlElement(ElementName = "Criterias")] - public List Criterias; + public List Criterias; - [XmlElement(ElementName = "CompletionAction")] - public CompletionAction CompletionAction; + [XmlElement(ElementName = "CompletionAction")] + public CompletionAction CompletionAction; } diff --git a/src/Schema/ItemStatsMap.cs b/src/Schema/ItemStatsMap.cs index 280500a..f694446 100644 --- a/src/Schema/ItemStatsMap.cs +++ b/src/Schema/ItemStatsMap.cs @@ -5,7 +5,7 @@ namespace sodoff.Schema; [XmlRoot(ElementName = "ISM", Namespace = "", IsNullable = false)] [Serializable] public class ItemStatsMap { - public ItemStatsMap() {} + public ItemStatsMap() { } public ItemStatsMap(ItemStatsMap other) { ItemID = other.ItemID; @@ -14,11 +14,11 @@ public class ItemStatsMap { } [XmlElement(ElementName = "IID", IsNullable = false)] - public int ItemID { get; set; } + public int ItemID { get; set; } - [XmlElement(ElementName = "IT", IsNullable = false)] - public ItemTier ItemTier { get; set; } + [XmlElement(ElementName = "IT", IsNullable = false)] + public ItemTier ItemTier { get; set; } - [XmlElement(ElementName = "ISS", IsNullable = false)] - public ItemStat[] ItemStats { get; set; } + [XmlElement(ElementName = "ISS", IsNullable = false)] + public ItemStat[] ItemStats { get; set; } } diff --git a/src/Schema/Mission.cs b/src/Schema/Mission.cs index 1e49c29..278e4ce 100644 --- a/src/Schema/Mission.cs +++ b/src/Schema/Mission.cs @@ -3,9 +3,9 @@ namespace sodoff.Schema; [XmlRoot(ElementName = "Mission", Namespace = "")] -[Serializable] // FIXME: Remove serializable once we have a different way of deep copying than BinaryFormatter +[Serializable] public class Mission { - public Mission() {} + public Mission() { } public Mission(Mission other) { if (other == null) throw new ArgumentNullException(nameof(other)); diff --git a/src/Schema/MissionCriteria.cs b/src/Schema/MissionCriteria.cs index 29c867f..154a6ee 100644 --- a/src/Schema/MissionCriteria.cs +++ b/src/Schema/MissionCriteria.cs @@ -5,7 +5,7 @@ namespace sodoff.Schema; [XmlRoot(ElementName = "MissionCriteria", Namespace = "")] [Serializable] public class MissionCriteria { - public MissionCriteria() {} + public MissionCriteria() { } public MissionCriteria(MissionCriteria other) { Type = other.Type; diff --git a/src/Schema/MissionRule.cs b/src/Schema/MissionRule.cs index 3a9e6a5..d34905b 100644 --- a/src/Schema/MissionRule.cs +++ b/src/Schema/MissionRule.cs @@ -5,7 +5,7 @@ namespace sodoff.Schema; [XmlRoot(ElementName = "MissionRule", Namespace = "")] [Serializable] public class MissionRule { - public MissionRule() {} + public MissionRule() { } public MissionRule(MissionRule other) { Prerequisites = other.Prerequisites.Select(p => new PrerequisiteItem(p)).ToList(); diff --git a/src/Schema/Pair.cs b/src/Schema/Pair.cs index 485d3d8..c100b2f 100644 --- a/src/Schema/Pair.cs +++ b/src/Schema/Pair.cs @@ -5,7 +5,7 @@ namespace sodoff.Schema; [XmlRoot(ElementName = "Pair", Namespace = "")] [Serializable] public class Pair { - public Pair() {} + public Pair() { } public Pair(Pair other) { PairKey = other.PairKey; @@ -14,11 +14,11 @@ public class Pair { } [XmlElement(ElementName = "PairKey")] - public string PairKey; - - [XmlElement(ElementName = "PairValue")] - public string PairValue; - - [XmlElement(ElementName = "UpdateDate")] - public DateTime UpdateDate; + public string PairKey; + + [XmlElement(ElementName = "PairValue")] + public string PairValue; + + [XmlElement(ElementName = "UpdateDate")] + public DateTime UpdateDate; } \ No newline at end of file diff --git a/src/Schema/PairData.cs b/src/Schema/PairData.cs index 46438ff..8b7d995 100644 --- a/src/Schema/PairData.cs +++ b/src/Schema/PairData.cs @@ -5,7 +5,7 @@ namespace sodoff.Schema; [XmlRoot(ElementName = "Pairs", Namespace = "", IsNullable = true)] [Serializable] public class PairData { - public PairData() {} + public PairData() { } public PairData(PairData other) { Pairs = other.Pairs.Select(p => new Pair(p)).ToArray(); diff --git a/src/Schema/PrerequisiteItem.cs b/src/Schema/PrerequisiteItem.cs index 8d555a4..11fb74f 100644 --- a/src/Schema/PrerequisiteItem.cs +++ b/src/Schema/PrerequisiteItem.cs @@ -5,7 +5,7 @@ namespace sodoff.Schema; [XmlRoot(ElementName = "PrerequisiteItem", Namespace = "")] [Serializable] public class PrerequisiteItem { - public PrerequisiteItem() {} + public PrerequisiteItem() { } public PrerequisiteItem(PrerequisiteItem other) { Type = other.Type; diff --git a/src/Schema/RuleItem.cs b/src/Schema/RuleItem.cs index 3478454..ac4fcd1 100644 --- a/src/Schema/RuleItem.cs +++ b/src/Schema/RuleItem.cs @@ -5,7 +5,7 @@ namespace sodoff.Schema; [XmlRoot(ElementName = "RuleItem", Namespace = "")] [Serializable] public class RuleItem { - public RuleItem() {} + public RuleItem() { } public RuleItem(RuleItem other) { Type = other.Type; diff --git a/src/Schema/Stat.cs b/src/Schema/Stat.cs index ea9fc3a..23fd6f0 100644 --- a/src/Schema/Stat.cs +++ b/src/Schema/Stat.cs @@ -5,7 +5,7 @@ namespace sodoff.Schema; [XmlRoot(ElementName = "STAT", Namespace = "", IsNullable = false)] [Serializable] public class Stat { - public Stat() {} + public Stat() { } public Stat(Stat other) { ItemID = other.ItemID; @@ -16,17 +16,17 @@ public class Stat { } [XmlElement(ElementName = "IID", IsNullable = false)] - public int ItemID { get; set; } + public int ItemID { get; set; } - [XmlElement(ElementName = "ISID", IsNullable = false)] - public int ItemStatsID { get; set; } + [XmlElement(ElementName = "ISID", IsNullable = false)] + public int ItemStatsID { get; set; } - [XmlElement(ElementName = "SID", IsNullable = false)] - public int SetID { get; set; } + [XmlElement(ElementName = "SID", IsNullable = false)] + public int SetID { get; set; } - [XmlElement(ElementName = "PROB", IsNullable = false)] - public int Probability { get; set; } + [XmlElement(ElementName = "PROB", IsNullable = false)] + public int Probability { get; set; } - [XmlElement(ElementName = "ISRM", IsNullable = false)] - public List ItemStatsRangeMaps { get; set; } + [XmlElement(ElementName = "ISRM", IsNullable = false)] + public List ItemStatsRangeMaps { get; set; } } diff --git a/src/Schema/StatRangeMap.cs b/src/Schema/StatRangeMap.cs index 6b8c7c5..0f27ce9 100644 --- a/src/Schema/StatRangeMap.cs +++ b/src/Schema/StatRangeMap.cs @@ -5,7 +5,7 @@ namespace sodoff.Schema; [XmlRoot(ElementName = "SRM", Namespace = "", IsNullable = false)] [Serializable] public class StatRangeMap { - public StatRangeMap() {} + public StatRangeMap() { } public StatRangeMap(StatRangeMap other) { ItemStatsID = other.ItemStatsID; @@ -16,17 +16,17 @@ public class StatRangeMap { } [XmlElement(ElementName = "ISID", IsNullable = false)] - public int ItemStatsID { get; set; } + public int ItemStatsID { get; set; } - [XmlElement(ElementName = "ISN", IsNullable = false)] - public string ItemStatsName { get; set; } + [XmlElement(ElementName = "ISN", IsNullable = false)] + public string ItemStatsName { get; set; } - [XmlElement(ElementName = "ITID", IsNullable = false)] - public int ItemTierID { get; set; } + [XmlElement(ElementName = "ITID", IsNullable = false)] + public int ItemTierID { get; set; } - [XmlElement(ElementName = "SR", IsNullable = false)] - public int StartRange { get; set; } + [XmlElement(ElementName = "SR", IsNullable = false)] + public int StartRange { get; set; } - [XmlElement(ElementName = "ER", IsNullable = false)] - public int EndRange { get; set; } + [XmlElement(ElementName = "ER", IsNullable = false)] + public int EndRange { get; set; } } diff --git a/src/Schema/Task.cs b/src/Schema/Task.cs index f0f19b6..e909f21 100644 --- a/src/Schema/Task.cs +++ b/src/Schema/Task.cs @@ -8,7 +8,7 @@ namespace sodoff.Schema; [XmlRoot(ElementName = "Task", Namespace = "")] [Serializable] public class Task { - public Task() {} + public Task() { } public Task(Task other) { TaskID = other.TaskID; diff --git a/src/Schema/UserItemData.cs b/src/Schema/UserItemData.cs index 1e52f1c..4974e42 100644 --- a/src/Schema/UserItemData.cs +++ b/src/Schema/UserItemData.cs @@ -5,7 +5,7 @@ namespace sodoff.Schema; [XmlRoot(ElementName = "UserItem", Namespace = "")] [Serializable] public class UserItemData { - public UserItemData() {} + public UserItemData() { } public UserItemData(UserItemData other) { ItemID = other.ItemID; @@ -21,32 +21,32 @@ public class UserItemData { } [XmlElement(ElementName = "iid")] - public int ItemID { get; set; } + public int ItemID { get; set; } - [XmlElement(ElementName = "md", IsNullable = true)] - public DateTime? ModifiedDate { get; set; } + [XmlElement(ElementName = "md", IsNullable = true)] + public DateTime? ModifiedDate { get; set; } - [XmlElement(ElementName = "uia", IsNullable = true)] - public PairData UserItemAttributes { get; set; } + [XmlElement(ElementName = "uia", IsNullable = true)] + public PairData UserItemAttributes { get; set; } - [XmlElement(ElementName = "iss", IsNullable = true)] - public ItemStat[] ItemStats { get; set; } + [XmlElement(ElementName = "iss", IsNullable = true)] + public ItemStat[] ItemStats { get; set; } - [XmlElement(ElementName = "IT", IsNullable = true)] - public ItemTier? ItemTier { get; set; } + [XmlElement(ElementName = "IT", IsNullable = true)] + public ItemTier? ItemTier { get; set; } - [XmlElement(ElementName = "cd", IsNullable = true)] - public DateTime? CreatedDate { get; set; } + [XmlElement(ElementName = "cd", IsNullable = true)] + public DateTime? CreatedDate { get; set; } - [XmlElement(ElementName = "uiid")] - public int UserInventoryID; + [XmlElement(ElementName = "uiid")] + public int UserInventoryID; - [XmlElement(ElementName = "q")] - public int Quantity; + [XmlElement(ElementName = "q")] + public int Quantity; - [XmlElement(ElementName = "u")] - public int Uses; + [XmlElement(ElementName = "u")] + public int Uses; - [XmlElement(ElementName = "i")] - public ItemData Item; + [XmlElement(ElementName = "i")] + public ItemData Item; }