public static void WriteOutWardInfo(ARealmReversed realm) { List <Plot> plots = new List <Plot>(); ReadLandSetSheet(realm, ref plots); ReadTerritoryPlots(realm, ref plots); string outpath = FFXIVHSPaths.GetWardInfoJson(); if (File.Exists(outpath)) { File.Delete(outpath); } string json = JsonConvert.SerializeObject(plots, Formatting.Indented); File.WriteAllText(outpath, json); }
private static void LoadWardInfo() { string jsonText = File.ReadAllText(FFXIVHSPaths.GetWardInfoJson()); _wardInfo = JsonConvert.DeserializeObject <List <Plot> >(jsonText); }