Menu
Lumberyard
Developer Guide (Version 1.11)

Leaderboard Sample Level Implementation Details

An entity named Leaderboard contains the CloudGemLeaderboardClientComponent.


            CloudGemLeaderboardClientComponent

The CloudGemLeaderboardClientComponent enables the gem's API to be called from other components on that entity and receives notifications for those calls.

The Leaderboard entity also contains a Lua script component that uses the leaderboardmainmenu.lua script. The script creates the testing user interface and calls the following APIs through the attached client component:

  • PostScore (to submit scores)

  • PostLeaderboard (to request a leaderboard for a stat)

The script also implements the notification methods for these API calls:

  • OnPostScoreRequestSuccess

  • OnPostScoreRequestError

  • OnPostLeaderboardRequestSuccess

  • OnPostLeaderboardRequestError