Class LegacyPreferences

java.lang.Object
com.prineside.tdi2.managers.preferences.LegacyPreferences

public class LegacyPreferences extends Object
  • Constructor Details

    • LegacyPreferences

      public LegacyPreferences()
  • Method Details

    • getLocallyStoredPrefs

      @Null public com.badlogic.gdx.utils.Array<ObjectPair<String,HashMap<String,String>>> getLocallyStoredPrefs()
      Returns:
      array of legacy preferences. Array( PreferencesName -> Map of preferences ) Preferences are being searched by file names defined in Config.LEGACY_PREFERENCES_NAMES Names of preferences are: - Progress - Settings - Statistics - UserMaps
    • removeAllLocallyStoredPrefs

      @Deprecated public void removeAllLocallyStoredPrefs()
      Deprecated.
    • fromBytes

      public com.badlogic.gdx.utils.Array<ObjectPair<String,HashMap<String,String>>> fromBytes(byte[] data, int offset, int count)
    • fromCompactBase64

      public com.badlogic.gdx.utils.Array<ObjectPair<String,HashMap<String,String>>> fromCompactBase64(String base64Data)
      Used to parse cloud saves and backups Same return format as getLocallyStoredPrefs()