Google Cloud Save

Important: The new Google Play Games Saved Games service, introduced in July 2014, offers improved functionality for saving game state information and visually displaying player game progression. Game developers are highly encouraged to migrate from the Cloud Save service to the new Saved Games service as soon as possible.

 

In case you steel want to use old Cloud API, here is API description. All Cloud API is implemented in the GoogleCloudManager class, which contains following

Methods:

public void loadAllStates()
public void loadState(int stateKey)
public byte[] GetStateData(int stateKey)
public void updateState(int stateKey, byte[] val)
public void deleteState(int stateKey) 
public void resolveState(int stateKey,  byte[] resolvedData, string resolvedVersion)

 

Getters:

public int maxStateSize
public int maxNumKeys
public Dictionary<int, byte[]> states

 

Events and Actions:

//Events
public const string STATE_DELETED     = "key_deleted";
public const string STATE_UPDATED     = "state_updated";
public const string STATE_LOADED      = "state_loaded";
public const string STATE_RESOLVED    = "state_resolved";
public const string STATE_CONFLICT    = "state_conflict";
public const string ALL_STATES_LOADED = "all_states_loaded";


//Actions
public static Action<GoogleCloudResult> ActionStateDeleted =  delegate {};
public static Action<GoogleCloudResult> ActionStateUpdated =  delegate {};
public static Action<GoogleCloudResult> ActionStateLoaded =  delegate {};
public static Action<GoogleCloudResult> ActionStateResolved =  delegate {};
public static Action<GoogleCloudResult> ActionStateConflict =  delegate {};
public static Action<GoogleCloudResult> ActionAllStatesLoaded =  delegate {};