public void Save <T>(T data, bool indent = false) { Files.WriteText(FullPath, Serialize(data, indent), EncryptionProvider); }
public T Load <T>(T defaultValue = default) { return(File.Exists(FullPath) ? Deserialize <T>(Files.ReadText(FullPath, EncryptionProvider)) : defaultValue); }
public JsonFile(SaveLocation saveLocation, string relativePath) { FullPath = Files.GetPath(saveLocation, relativePath); }