forked from kOchirasu/Maple2.File
-
Notifications
You must be signed in to change notification settings - Fork 8
Parse Wedding Tables #36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,8 @@ | ||
| namespace Maple2.File.Parser.Enum; | ||
|
|
||
| public enum WeddingRewardLimit { | ||
| none, | ||
| day, | ||
| week, | ||
| month, | ||
| } |
This file contains hidden or 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,11 @@ | ||
| namespace Maple2.File.Parser.Enum; | ||
|
|
||
| public enum WeddingRewardType { | ||
| none, | ||
| marriedLife, | ||
| attendance, | ||
| coupleMessage, | ||
| marriageRegister, | ||
| weddingExpItem, | ||
| logoutPanelty, | ||
| } |
This file contains hidden or 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,7 @@ | ||
| namespace Maple2.File.Parser.Enum; | ||
|
|
||
| public enum WeddingSkillType { | ||
| none, | ||
| passive, | ||
| item, | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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,14 @@ | ||
| using System.Xml.Serialization; | ||
|
|
||
| namespace Maple2.File.Parser.Xml.Table; | ||
|
|
||
| // ./data/xml/table/weddingexp.xml | ||
| [XmlRoot("ms2")] | ||
| public class WeddingExpRoot { | ||
| [XmlElement] public List<WeddingExp> v; | ||
| } | ||
|
|
||
| public class WeddingExp { | ||
| [XmlAttribute] public int grade; | ||
| [XmlAttribute] public int value; | ||
| } |
This file contains hidden or 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,36 @@ | ||
| using System.Xml.Serialization; | ||
| using M2dXmlGenerator; | ||
|
|
||
| namespace Maple2.File.Parser.Xml.Table; | ||
|
|
||
| // ./data/xml/table/weddingpackage.xml | ||
| [XmlRoot("ms2")] | ||
| public partial class WeddingPackageRoot { | ||
| [M2dFeatureLocale(Selector = "id")] private IList<WeddingPackage> _package; | ||
| } | ||
|
|
||
| public partial class WeddingPackage : IFeatureLocale { | ||
| [XmlAttribute] public int id; | ||
| [XmlAttribute] public int planner; | ||
| [XmlElement] public List<WeddingHall> weddingHall; | ||
| } | ||
|
|
||
| public class WeddingHall { | ||
| [XmlAttribute] public int id; | ||
| [XmlAttribute] public int fieldID; | ||
| [XmlAttribute] public int nightFieldID; | ||
| [XmlAttribute] public byte grade; | ||
| [XmlAttribute] public int merat; | ||
| [XmlAttribute] public string videoPath = string.Empty; | ||
| [XmlAttribute] public string desc = string.Empty; | ||
| [XmlAttribute] public string mcillust = string.Empty; | ||
| [XmlElement] public List<WeddingItem> weddingItem; | ||
| [XmlElement] public List<WeddingItem> weddingCompleteItem; | ||
| } | ||
|
|
||
| public class WeddingItem { | ||
| [XmlAttribute] public int itemID; | ||
| [XmlAttribute] public byte grade; | ||
| [XmlAttribute] public int count; | ||
| [XmlAttribute] public bool nightReward; | ||
| } |
This file contains hidden or 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,17 @@ | ||
| using System.Xml.Serialization; | ||
| using M2dXmlGenerator; | ||
| using Maple2.File.Parser.Enum; | ||
|
|
||
| namespace Maple2.File.Parser.Xml.Table; | ||
|
|
||
| // ./data/xml/table/weddingreward.xml | ||
| [XmlRoot("ms2")] | ||
| public class WeddingRewardRoot { | ||
| [XmlElement] public List<WeddingReward> v; | ||
| } | ||
|
|
||
| public partial class WeddingReward { | ||
| [M2dEnum] public WeddingRewardType type; | ||
| [XmlAttribute] public int rewardExp; | ||
| [M2dEnum] public WeddingRewardLimit rewardLimit; | ||
| } |
This file contains hidden or 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,24 @@ | ||
| using System.Xml.Serialization; | ||
| using M2dXmlGenerator; | ||
| using Maple2.File.Parser.Enum; | ||
|
|
||
| namespace Maple2.File.Parser.Xml.Table; | ||
|
|
||
| // ./data/xml/table/weddingskill.xml | ||
| [XmlRoot("ms2")] | ||
| public partial class WeddingSkillRoot { | ||
| [M2dFeatureLocale(Selector = "id")] private IList<WeddingSkill> _v; | ||
| } | ||
|
|
||
| public partial class WeddingSkill : IFeatureLocale { | ||
| [XmlAttribute] public int id; | ||
| [M2dEnum] public WeddingSkillType type; | ||
| [XmlAttribute] public byte requireGrade; | ||
| [XmlAttribute] public int additionalEffectID; | ||
| [XmlAttribute] public float startValue; | ||
| [XmlAttribute] public float addValue; | ||
| [XmlAttribute] public int maxCount; | ||
| [XmlAttribute] public int itemID; | ||
| [XmlAttribute] public byte grade; | ||
| [XmlAttribute] public int count; | ||
| } |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.