/// <summary> /// Writes an object to the specified key - you must called commit to write the data to file /// </summary> /// <typeparam name="T">The type of object to write</typeparam> /// <param name="key">The key this object will be saved under</param> /// <param name="value">The object to save</param> /// <returns>The QuickSaveWriter</returns> public QuickSaveWriter Write <T>(string key, T value) { if (Exists(key)) { _items.Remove(key); } _items.Add(key, JsonSerialiser.SerialiseKey(value)); return(this); }