Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This topic provides example code that shows how to write an event. This code updates event-based Stats based on the stat rules that you've defined in Partner Center.
Flat C API
HRESULT hr = XblEventsWriteInGameEvent(
xboxLiveContext,
"PuzzleSolved",
R"({"DifficultyLevelId":100, "GameplayModeId":"Adventure"})",
R"({"LocationX":1,"LocationY":1})"
);
For more information, see XblEventsWriteInGameEvent.