game-common / pragma.playerdata / PlayerDataLifecyclePlugin / onLoadPlayerData /
onLoadPlayerData #
open suspend fun onLoadPlayerData(context: Context)
Called after retrieving player data from the database
- provides hook to modify player data prior to calling a player data operation or returning all player data in a get response
- this only occurs on a cache miss
- any modifications are applied in one transaction
- if an operation request triggers this function, the operation will receive a snapshot that reflects these modifications and the operation transaction is applied separately