Skip to content

Commit

Permalink
Fix: Missing ShopItem attributes (#29)
Browse files Browse the repository at this point in the history
* Update ShopGame.cs

* Update Maple2.File.Parser.csproj
  • Loading branch information
Zintixx authored Jul 19, 2024
1 parent 50a96cd commit f99ceef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Maple2.File.Parser/Maple2.File.Parser.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<PackageTags>MapleStory2, File, Parser, m2d, xml</PackageTags>
<!-- Use following lines to write the generated files to disk. -->
<EmitCompilerGeneratedFiles Condition=" '$(Configuration)' == 'Debug' ">true</EmitCompilerGeneratedFiles>
<PackageVersion>2.1.22</PackageVersion>
<PackageVersion>2.1.23</PackageVersion>
<TargetFramework>net8.0</TargetFramework>
<PackageReadmeFile>README.md</PackageReadmeFile>
<ImplicitUsings>enable</ImplicitUsings>
Expand Down
8 changes: 7 additions & 1 deletion Maple2.File.Parser/Xml/Table/Server/ShopGame.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System.Xml.Serialization;
using M2dXmlGenerator;
using Maple2.File.Parser.Enum;
using DayOfWeek = Maple2.File.Parser.Enum.DayOfWeek;

namespace Maple2.File.Parser.Xml.Table.Server;

Expand All @@ -12,7 +13,7 @@ public partial class ShopGameRoot {

public partial class ShopGame {
[XmlAttribute] public int shopID;
[M2dFeatureLocale(Selector = "sn")] private IList<ShopGame.Item> _item;
[M2dFeatureLocale(Selector = "sn")] private IList<Item> _item;

public partial class Item : IFeatureLocale {
[XmlAttribute] public int sn;
Expand All @@ -36,7 +37,12 @@ public partial class Item : IFeatureLocale {
[XmlAttribute] public string requireAchieve = string.Empty;
[XmlAttribute] public string requireAlliance = string.Empty;
[XmlAttribute] public byte requireAllianceGrade;
[XmlAttribute] public int requireGuildTrophy;
[M2dArray] public int[] requireChampionshipInfo = Array.Empty<int>();
[M2dArray] public string[] requireGuildNpc = Array.Empty<string>();
[XmlAttribute] public bool checkGameEvent;
[M2dEnum] public DayOfWeek DayOfWeek;
[XmlAttribute] public string partTime = string.Empty;
[XmlAttribute] public bool onlyVisibleInPeriod;
}
}

0 comments on commit f99ceef

Please sign in to comment.