public static List <ModTeamMember> LoadModTeam(int modId) { string filePath = CacheClient.GenerateModTeamFilePath(modId); var modTeam = CacheClient.ReadJsonObjectFile <List <ModTeamMember> >(filePath); return(modTeam); }
/// <summary>Stores a mod team's data in the cache.</summary> public static bool SaveModTeam(int modId, List <ModTeamMember> modTeam) { Debug.Assert(modTeam != null); string filePath = CacheClient.GenerateModTeamFilePath(modId); return(IOUtilities.WriteJsonObjectFile(filePath, modTeam)); }
/// <summary>Retrieves a mod team's data from the cache.</summary> public static List <ModTeamMember> LoadModTeam(int modId) { string filePath = CacheClient.GenerateModTeamFilePath(modId); List <ModTeamMember> modTeam; LocalDataStorage.ReadJSONFile(filePath, out modTeam); return(modTeam); }
/// <summary>Stores a mod team's data in the cache.</summary> public static bool SaveModTeam(int modId, List <ModTeamMember> modTeam) { Debug.Assert(modTeam != null); string filePath = CacheClient.GenerateModTeamFilePath(modId); return(LocalDataStorage.WriteJSONFile(filePath, modTeam)); }
public static void SaveModTeam(int modId, List <ModTeamMember> modTeam) { Debug.Assert(modId > 0, "[mod.io] Cannot cache a mod team without a mod id"); string filePath = CacheClient.GenerateModTeamFilePath(modId); CacheClient.WriteJsonObjectFile(filePath, modTeam); }
public static void DeleteModTeam(int modId) { CacheClient.DeleteFile(CacheClient.GenerateModTeamFilePath(modId)); }
/// <summary>Deletes a mod team's data from the cache.</summary> public static bool DeleteModTeam(int modId) { return(IOUtilities.DeleteFile(CacheClient.GenerateModTeamFilePath(modId))); }
/// <summary>Deletes a mod team's data from the cache.</summary> public static bool DeleteModTeam(int modId) { string path = CacheClient.GenerateModTeamFilePath(modId); return(LocalDataStorage.DeleteFile(path)); }