Compartir a través de


Sending an event

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.