Package de.extio.spacecraft.shared.bo
Interface CheckPointUtil
-
public interface CheckPointUtil
Utility business object to create and load checkpoints (savegames) on client side You can access the corresponding bean implementation via EngineFacade::getBusinessObject
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
create(StorageItemDescriptor descriptor, List<String> statePrefixes)
Trigger creating a save game on client side.boolean
load(StorageItemDescriptor descriptor, StorageItemDescriptor descriptorDigest)
Load a save game on client side and send it to the server.
-
-
-
Method Detail
-
create
void create(StorageItemDescriptor descriptor, List<String> statePrefixes)
Trigger creating a save game on client side. Game core takes care that server will create the save game and transfer it to the client.- Parameters:
descriptor
- Storage descriptor describing where to save (e.g. coming from file selection dialog or storage manager)statePrefixes
- prefixes of client state keys you want to include in the checkpoint
-
load
boolean load(StorageItemDescriptor descriptor, StorageItemDescriptor descriptorDigest)
Load a save game on client side and send it to the server.- Parameters:
descriptor
- Storage descriptor describing from where to load (e.g. coming from file selection dialog or storage manager)descriptorDigest
- Optional, can be null. Storage descriptor of the checkpoint digest, provided by official servers to verify then authenticity of a checkpoint for highscores- Returns:
- whether the checkpoint could be loaded. If true, at some point there will be a CheckpointLoadedMessage as the last step of the loading process
-
-