Package | Description |
---|---|
squidpony |
The default conversion, compression, and storage classes are here; they delegate to the classes in
squidpony.store.json . |
squidpony.store.json |
Conversion, compression,and storage (to libGDX Preferences) using JSON as the stored type.
|
Modifier and Type | Class and Description |
---|---|
class |
SquidStorage
Helps games store information in libGDX's Preferences class as Strings, then get it back out.
|
Modifier and Type | Method and Description |
---|---|
JsonStorage |
JsonStorage.clear()
Clears the current group of objects; recommended if you intend to store under multiple outerName keys.
|
JsonStorage |
JsonStorage.put(java.lang.String innerName,
java.lang.Object o)
Prepares to store the Object
o to be retrieved with innerName in the current group of objects. |
JsonStorage |
JsonStorage.remove(java.lang.String innerName)
Removes one object from the current group by the
innerName it was prepared with using
put(String, Object) . |
JsonStorage |
JsonStorage.store(java.lang.String outerName)
Actually stores all objects that had previously been prepared with
put(String, Object) , with
outerName used as a key to retrieve any object in the current group. |
Copyright © Eben Howard 2012–2022. All rights reserved.