Implements dataloading
This commit is contained in:
30
PkmnLib.Dataloader/Models/SerializedMove.cs
Normal file
30
PkmnLib.Dataloader/Models/SerializedMove.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text.Json.Nodes;
|
||||
|
||||
namespace PkmnLib.Dataloader.Models;
|
||||
|
||||
public class SerializedMoveDataWrapper
|
||||
{
|
||||
public SerializedMove[] Data { get; set; }
|
||||
}
|
||||
|
||||
public class SerializedMove
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Type { get; set; }
|
||||
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; }
|
||||
public string Category { get; set; }
|
||||
public string[] Flags { get; set; }
|
||||
public SerializedMoveEffect? Effect { get; set; }
|
||||
}
|
||||
|
||||
public class SerializedMoveEffect
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public float Chance { get; set; }
|
||||
public Dictionary<string, JsonNode>? Parameters { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user