Example #1
0
 /// <summary>
 /// Loads the data for the current active file if any
 /// Note that this will overwrite the data current stored in the library
 /// </summary>
 /// <returns>True if the operation completed, false if skiped such as for a blank active file</returns>
 public void Load()
 {
     if (activeFile != null)
     {
         activeFile = SteamworksRemoteStorageManager.FileReadSteamDataFile(activeFile.address);
         activeFile.WriteToLibrary(this);
     }
 }
Example #2
0
 /// <summary>
 /// Loads the data from a given address
 /// Note that the load operation will only establish the result as the active data if its prefix matches
 /// </summary>
 /// <param name="address"></param>
 /// <returns></returns>
 public void Load(SteamworksRemoteStorageManager.FileAddress address)
 {
     if (!string.IsNullOrEmpty(address.fileName) && address.fileName.StartsWith(filePrefix))
     {
         activeFile = SteamworksRemoteStorageManager.FileReadSteamDataFile(address);
         activeFile.WriteToLibrary(this);
     }
 }
Example #3
0
 public void Load(string fileName)
 {
     if (fileName.StartsWith(filePrefix))
     {
         var result = SteamworksRemoteStorageManager.FileReadSteamDataFile(fileName);
         activeFile = result;
         result.WriteToLibrary(this);
     }
     else
     {
         var result = SteamworksRemoteStorageManager.FileReadSteamDataFile(filePrefix + fileName);
         activeFile = result;
         result.WriteToLibrary(this);
     }
 }