Decode() public static méthode

Decodes a Save Point from JSON text format and loads it.
public static Decode ( string saveDataJSON ) : void
saveDataJSON string
Résultat void
Exemple #1
0
 /// <summary>
 /// Loads the latest Save Point.
 /// </summary>
 public void LoadLatestSavePoint()
 {
     if (savePoints.Count > 0)
     {
         var savePointData = savePoints[savePoints.Count - 1];
         SavePointData.Decode(savePointData);
     }
 }
Exemple #2
0
 public void LoadSpecificSavePoint(string savePointKey)
 {
     if (savePoints.Count > 0)
     {
         int index         = savePoints.IndexOf(savePointKey);
         var savePointData = savePoints[index];
         SavePointData.Decode(savePointData);
     }
 }