PkmnLib.NET/PkmnLib.Dataloader/Models/SerializedMove.cs

35 lines
1.0 KiB
C#
Raw Normal View History

2024-08-18 12:22:50 +00:00
using System.Collections.Generic;
using System.Text.Json;
2024-08-18 12:22:50 +00:00
using System.Text.Json.Nodes;
using System.Text.Json.Serialization;
2024-08-18 12:22:50 +00:00
namespace PkmnLib.Dataloader.Models;
public class SerializedMoveDataWrapper
{
2024-08-23 07:24:00 +00:00
public SerializedMove[] Data { get; set; } = null!;
2024-08-18 12:22:50 +00:00
}
public class SerializedMove
{
2024-08-23 07:24:00 +00:00
public string Name { get; set; } = null!;
public string Type { get; set; } = null!;
2024-08-18 12:22:50 +00:00
public byte Power { get; set; }
public byte PP { get; set; }
public byte Accuracy { get; set; }
public sbyte Priority { get; set; }
2024-08-23 07:24:00 +00:00
public string Target { get; set; } = null!;
public string Category { get; set; } = null!;
public string[] Flags { get; set; } = null!;
2024-08-18 12:22:50 +00:00
public SerializedMoveEffect? Effect { get; set; }
[JsonExtensionData]
public Dictionary<string, JsonElement>? ExtensionData { get; set; }
2024-08-18 12:22:50 +00:00
}
public class SerializedMoveEffect
{
2024-08-23 07:24:00 +00:00
public string Name { get; set; } = null!;
2024-08-18 12:22:50 +00:00
public float Chance { get; set; }
2024-08-23 07:24:00 +00:00
public Dictionary<string, JsonNode>? Parameters { get; set; } = null!;
2024-08-18 12:22:50 +00:00
}