示例#1
0
 /// <summary>
 /// Writes the data stored in the <see cref="binaryData"/> field into the target SteamDataLibrary e.g. loads the data into meaningful Unity memory.
 /// </summary>
 /// <param name="dataLibrary"></param>
 public void WriteToLibrary(SteamDataLibrary dataLibrary)
 {
     linkedLibrary = dataLibrary;
     dataLibrary.SyncFromBuffer(binaryData);
 }
示例#2
0
 /// <summary>
 /// Reads the data from a SteamDataLibrary into the byte[] in preperation for submiting the data to the Steam Remote Storage system.
 /// </summary>
 /// <param name="dataLibrary"></param>
 public void ReadFromLibrary(SteamDataLibrary dataLibrary)
 {
     linkedLibrary = dataLibrary;
     dataLibrary.SyncToBuffer(out binaryData);
 }