using System; using System.Collections.Generic; using System.IO; using Newtonsoft.Json; public static class MoveLoader { public static List LoadMoves(string path) { if (!File.Exists(path)){ Console.WriteLine("Move data file not found!"); return new List(); } string json = File.ReadAllText(path); List moves = JsonConvert.DeserializeObject>(json) ?? new List(); return moves ?? new List(); } }