AirConsole team just merged my Github pull request.
Introducing persistent data for AirConsole on Construct 2
Added in version 1.4.7
- Couple of cosmetics
- Couple of little fixes and and there
- New conditions:
- onPersistentDataLoaded - Trigger - Triggered when the requested persistent data have loaded
- onPersistentDataStored - Trigger - Triggered when your persistent data have been stored on the servers
- New actions:
- requestPersistentData(uids) - Requests persistent data from the server. You have to specify the device uids the request is for. If more than one, separate them by comma. Triggers onPersistentDataLoaded when done
- storePersistentData(key, value, uid) - Stores persistent data to the server. Triggers onPersistentDataStored when done
- New expressions:
- PersistentData - A JSON string representation of the persistent data loaded by the last requestPersistentData in a C2Dictionary format.
- Highscores - A JSON string representation of the highscores loaded by the last requestHighscores in a C2Dictionary format.
- GetUID(deviceId) - Returns the globally unique id of a device
Check it out on Github:
Official AirConsole repo: https://github.com/AirConsole/airconsole-construct2
My fork: https://github.com/Psychokiller1888/airconsole-construct2
Feel free to contact me for additions, missing parts etc etc