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.
- Loading branch information
Showing
6 changed files
with
134 additions
and
1 deletion.
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
17 changes: 17 additions & 0 deletions
17
Maple2.File.Parser/Xml/Table/Server/ItemOptionProbability.cs
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,17 @@ | ||
using System.Xml.Serialization; | ||
|
||
namespace Maple2.File.Parser.Xml.Table.Server; | ||
|
||
// ./data/server/table/Server/itemOptionProbability.xml | ||
[XmlRoot("ms2")] | ||
public class ItemOptionProbabilityRoot { | ||
[XmlElement] public List<ItemOptionProbability> option; | ||
} | ||
|
||
public partial class ItemOptionProbability { | ||
[XmlAttribute] public string name = string.Empty; | ||
[XmlAttribute] public int weaponProbability; | ||
[XmlAttribute] public int armorProbability; | ||
[XmlAttribute] public int accProbability; | ||
[XmlAttribute] public int petProbability; | ||
} |
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,25 @@ | ||
using System.Xml.Serialization; | ||
|
||
namespace Maple2.File.Parser.Xml.Table.Server; | ||
|
||
// ./data/server/table/Server/itemOptionRandom.xml | ||
[XmlRoot("ms2")] | ||
public class ItemOptionRandomRoot { | ||
[XmlElement] public List<ItemOptionRandom> option; | ||
} | ||
|
||
public class ItemOptionRandom { | ||
[XmlAttribute] public int code; | ||
[XmlAttribute] public int statGroup; | ||
[XmlAttribute] public int levelGroupID; | ||
[XmlAttribute] public int pickCount; | ||
[XmlAttribute] public bool isRarePickOne; | ||
[XmlAttribute] public int copyID; | ||
[XmlElement] public List<ItemOptionStat> v; | ||
|
||
public class ItemOptionStat { | ||
[XmlAttribute] public string name = string.Empty; | ||
[XmlAttribute] public int weight = 1; | ||
[XmlAttribute] public int statID; | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
Maple2.File.Parser/Xml/Table/Server/ItemOptionVariation.cs
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,25 @@ | ||
using System.Xml.Serialization; | ||
|
||
namespace Maple2.File.Parser.Xml.Table.Server; | ||
|
||
// ./data/server/table/Server/itemOptionVariation.xml | ||
[XmlRoot("ms2")] | ||
public class ItemOptionVariationRoot { | ||
[XmlElement] public List<ItemOptionVariation> option; | ||
} | ||
|
||
public class ItemOptionVariation { | ||
[XmlAttribute] public int id; | ||
[XmlAttribute] public int multipleID; | ||
[XmlAttribute] public int groupType; | ||
[XmlAttribute] public string name = string.Empty; | ||
[XmlAttribute] public int levelGroupID; | ||
[XmlAttribute] public int highStat; | ||
[XmlAttribute] public int isRateType; | ||
[XmlElement] public List<ItemOptionStat> v; | ||
|
||
public class ItemOptionStat { | ||
[XmlAttribute] public int stat; | ||
[XmlAttribute] public int weight = 1; | ||
} | ||
} |
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