forked from kOchirasu/Maple2.File
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Parse Shop Furnishing * Update Maple2.File.Parser.csproj
- Loading branch information
1 parent
d7ccf56
commit 7c54f1b
Showing
3 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System.Xml.Serialization; | ||
using M2dXmlGenerator; | ||
|
||
namespace Maple2.File.Parser.Xml.Table; | ||
|
||
// ./data/xml/table/na/shop_ugcall.xml | ||
// ./data/xml/table/na/shop_maid.xml | ||
[XmlRoot("ms2")] | ||
public partial class ShopFurnishingRoot { | ||
[M2dFeatureLocale(Selector = "id")] private IList<ShopFurnishing> _key; | ||
} | ||
|
||
public partial class ShopFurnishing : IFeatureLocale { | ||
[XmlAttribute] public int id; | ||
[XmlAttribute] public bool ugcHousingBuy; | ||
[M2dEnum] public HousingMoneyType ugcHousingMoneyType = HousingMoneyType.Meso; | ||
[XmlAttribute] public int ugcHousingDefaultPrice; | ||
} | ||
|
||
public enum HousingMoneyType { | ||
Meso = 1, | ||
Meret = 3, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters