Skip to content

Commit

Permalink
Merge pull request #851 from WALLOFJUSTICE/dev-23-q3-2
Browse files Browse the repository at this point in the history
* add currentlvl and secretlevel to stat
  • Loading branch information
WALLOFJUSTICE authored Oct 24, 2024
2 parents e30a480 + d9c72d6 commit 37286d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/playfab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ void PlayfabUser_t::globalStat(int index, int value)
eventContent.EventNamespace = "custom.statglobal";
eventContent.Name = "statglobal";
eventContent.Payload["stat"] = SteamGlobalStatStr[index].c_str();
eventContent.Payload["level"] = currentlevel;
eventContent.Payload["secret"] = secretlevel;
eventRequest.Events.push_back(eventContent);
PlayFab::PlayFabEventsAPI::WriteTelemetryEvents(eventRequest, OnEventsWrite, OnCloudScriptFailure);
}
Expand Down

0 comments on commit 37286d3

Please sign in to comment.