C++ ScoreController::DestroyScoreRecordSet()
From J2Play
Contents |
Description
Destroy the ScoreRecordSet pointer from score get APIs.
Syntax
void ScoreController::DestroyScoreRecordSet(const ScoreRecordSet* recordset);
Parameters
* @param recordset, the pointer to ScoreRecordSet object.
Return Value
N/A
Examples
Here is the example to destroy score record set after using
ScoreController* scorecon = CGDKInstnace::GetInstance()->GetScoreController();
if (score)
{
const ScoreRecordSet* toprecord = scorecon->EasyGetScores(J2PLAY_DEFAULT_LEADER_BOARD_SCORE_TYPE);
if (toprecord)
{
// TODO: get the score details in the ScoreRecordSet
score->DestroyScoreRecordSet(toprecord);
}
}
