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

30 lines
873 B
C#
Raw Normal View History

2024-08-18 12:22:50 +00:00
using System.Collections.Generic;
using System.Text.Json.Nodes;
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; }
}
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
}