SetPersistData
Sets the entire block of persistent data for a user.
- void SetPersistData(
- int localid,
- int profileid,
- persisttype_t type,
- int index,
- char * data,
- int len,
- PersDataSaveCallbackFn callback,
- void * instance );
Routine | Required Header | Distribution |
---|---|---|
SetPersistData | <gpersist.h> | SDKZIP |
Parameters
- localid
- [in] Your game-specific reference number for this player
- profileid
- [in] The profileid of the player whose data you are setting.
- type
- [in] The type of persistent data you are setting. Only rw data is setable.
- index
- [in] Each profile can have multiple persistent data records associated with them. Usually 0 is used.
- data
- [in] The persistent data to be saved.
- len
- [in] The length of the data.
- callback
- [in] Will be called when the data save is complete.
- instance
- [in] Pointer that will be passed to the callback function (for your use.)
Remarks
The profileid for whom the data is being set MUST have been authenticated already.
If you are setting key\value delimited data, make sure the "len" parameter includes length of the null terminator.
Section Reference: Gamespy Persistent Storage SDK
See Also: GetPersistData, SetPersistDataValues