MrStahlfelge / gdx-gamesvcs

Easy integration of gameservices in your libGDX game: Google Play Games, Apple Game Center, Amazon GameCircle and more
Apache License 2.0
113 stars 20 forks source link

loadGameState and saveGameState need designated callback interfaces #6

Closed MrStahlfelge closed 7 years ago

MrStahlfelge commented 7 years ago

If loadGameState is performed, the loaded game state response comes back on the main game service listener's gsGameStateLoaded(byte[] gameState) method.

This does not fit in any case: If several game states are used, and if the cloud sync feature is not used at all the method declaration is not necessary.

The method should be moved to an own interface and the response listener should be paramatrized on the loadGameState call.

Also, saveGameState should get a callback interface for returning if operation was performed and if it was successful.

mgsx-dev commented 7 years ago

Fully agree with all this ;-)