public static class ResourceData.SaveData extends Object implements Json.Serializable
data is a map which link an asset name to its instance. assets is an array of
indices addressing a given ResourceData.AssetData in the
ResourceData| Constructor and Description |
|---|
SaveData() |
SaveData(ResourceData resources) |
| Modifier and Type | Method and Description |
|---|---|
<K> K |
load(String key) |
AssetDescriptor |
loadAsset() |
void |
read(Json json,
JsonValue jsonData) |
void |
save(String key,
Object value) |
<K> void |
saveAsset(String filename,
Class<K> type) |
void |
write(Json json) |
public SaveData()
public SaveData(ResourceData resources)
public AssetDescriptor loadAsset()
public <K> K load(String key)
public void write(Json json)
write in interface Json.Serializablepublic void read(Json json, JsonValue jsonData)
read in interface Json.SerializableCopyright © 2021. All rights reserved.