public class SaveGame
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Savable |
loadGame(java.lang.String gamePath,
java.lang.String dataName)
Loads a savable that has been saved on this system with saveGame() before.
|
static Savable |
loadGame(java.lang.String gamePath,
java.lang.String dataName,
AssetManager manager)
Loads a savable that has been saved on this system with saveGame() before.
|
static Savable |
loadGame(java.lang.String gamePath,
java.lang.String dataName,
AssetManager manager,
JmeSystem.StorageFolderType storageType)
Loads a savable that has been saved on this system with saveGame() before.
|
static Savable |
loadGame(java.lang.String gamePath,
java.lang.String dataName,
JmeSystem.StorageFolderType storageType)
Loads a savable that has been saved on this system with saveGame() before.
|
static void |
saveGame(java.lang.String gamePath,
java.lang.String dataName,
Savable data)
Saves a savable in a system-dependent way.
|
static void |
saveGame(java.lang.String gamePath,
java.lang.String dataName,
Savable data,
JmeSystem.StorageFolderType storageType)
Saves a savable in a system-dependent way.
|
public static void saveGame(java.lang.String gamePath, java.lang.String dataName, Savable data)
gamePath
- A unique path for this game, e.g. com/mycompany/mygamedataName
- A unique name for this savegame, e.g. "save_001"data
- The Savable to savepublic static void saveGame(java.lang.String gamePath, java.lang.String dataName, Savable data, JmeSystem.StorageFolderType storageType)
gamePath
- A unique path for this game, e.g. com/mycompany/mygamedataName
- A unique name for this savegame, e.g. "save_001"data
- The Savable to savestorageType
- The specific type of folder to use to save the datapublic static Savable loadGame(java.lang.String gamePath, java.lang.String dataName)
gamePath
- A unique path for this game, e.g. com/mycompany/mygamedataName
- A unique name for this savegame, e.g. "save_001"public static Savable loadGame(java.lang.String gamePath, java.lang.String dataName, JmeSystem.StorageFolderType storageType)
gamePath
- A unique path for this game, e.g. com/mycompany/mygamedataName
- A unique name for this savegame, e.g. "save_001"storageType
- The specific type of folder to use to save the datapublic static Savable loadGame(java.lang.String gamePath, java.lang.String dataName, AssetManager manager)
gamePath
- A unique path for this game, e.g. com/mycompany/mygamedataName
- A unique name for this savegame, e.g. "save_001"manager
- Link to an AssetManager if required for loading the data (e.g. models with textures)public static Savable loadGame(java.lang.String gamePath, java.lang.String dataName, AssetManager manager, JmeSystem.StorageFolderType storageType)
gamePath
- A unique path for this game, e.g. com/mycompany/mygamedataName
- A unique name for this savegame, e.g. "save_001"manager
- Link to an AssetManager if required for loading the data (e.g. models with textures)storageType
- The specific type of folder to use to save the data