Deukhoofd 810cdbb15a
All checks were successful
continuous-integration/drone/push Build is passing
Move data and data loading to plugin libraries.
2025-05-16 13:01:23 +02:00

33 lines
1014 B
C#

using System.Text.Json;
using System.Text.Json.Nodes;
using System.Text.Json.Serialization;
namespace PkmnLib.Dynamic.Libraries.DataLoaders.Models;
public class SerializedMoveDataWrapper
{
public SerializedMove[] Data { get; set; } = null!;
}
public class SerializedMove
{
public string Name { get; set; } = null!;
public string Type { get; set; } = null!;
public byte Power { get; set; }
public byte PP { get; set; }
public byte Accuracy { get; set; }
public sbyte Priority { get; set; }
public string Target { get; set; } = null!;
public string Category { get; set; } = null!;
public string[] Flags { get; set; } = null!;
public SerializedMoveEffect? Effect { get; set; }
[JsonExtensionData] public Dictionary<string, JsonElement>? ExtensionData { get; set; }
}
public class SerializedMoveEffect
{
public string Name { get; set; } = null!;
public float? Chance { get; set; }
public Dictionary<string, JsonNode>? Parameters { get; set; } = null!;
}