This commit is contained in:
27 files changed
+384
-39
No files matched your search
@@ -4,8 +4,14 @@ using PkmnLib.Static.Libraries;
|
||||
|
||||
namespace PkmnLib.Dynamic.Libraries.DataLoaders;
|
||||
|
||||
/// <summary>
|
||||
/// Loads growth rate data from a JSON file.
|
||||
/// </summary>
|
||||
public static class GrowthRateDataLoader
|
||||
{
|
||||
/// <summary>
|
||||
/// Loads the growth rate library from a JSON file.
|
||||
/// </summary>
|
||||
public static GrowthRateLibrary LoadGrowthRates(Stream stream, Action<List<IGrowthRate>>? action = null)
|
||||
{
|
||||
var objects = JsonSerializer.Deserialize<Dictionary<string, uint[]>>(stream, JsonOptions.DefaultOptions)!;
|
||||
|
||||
Reference in new issue
Block a user