Decode() публичный статический Метод

Decodes a Save Point from JSON text format and loads it.
public static Decode ( string saveDataJSON ) : void
saveDataJSON string
Результат void
Пример #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);
     }
 }
Пример #2
0
 public void LoadSpecificSavePoint(string savePointKey)
 {
     if (savePoints.Count > 0)
     {
         int index         = savePoints.IndexOf(savePointKey);
         var savePointData = savePoints[index];
         SavePointData.Decode(savePointData);
     }
 }