This commit is contained in:
27 files changed
+384
-39
No files matched your search
@@ -8,6 +8,9 @@ using PkmnLib.Static.Utils;
|
||||
|
||||
namespace PkmnLib.Dynamic.Libraries.DataLoaders;
|
||||
|
||||
/// <summary>
|
||||
/// Loads ability data from a JSON file.
|
||||
/// </summary>
|
||||
public static class AbilityDataLoader
|
||||
{
|
||||
private static Dictionary<string, SerializedAbility> LoadAbilitiesData(Stream stream)
|
||||
@@ -26,6 +29,9 @@ public static class AbilityDataLoader
|
||||
return objects;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Loads the ability library from a JSON file.
|
||||
/// </summary>
|
||||
public static AbilityLibrary LoadAbilities(Stream stream,
|
||||
Action<Dictionary<string, SerializedAbility>>? action = null)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user