Run from an endpoint
Workflows never run from game code. They run inside an endpoint step; the game calls that endpoint. No game-callable endpoint runs this workflow yet.
This project has no enabled public key. Create one under API keys: game code needs it.
// Workflow "demo-season-reward" never runs from game code: it runs inside an endpoint step.
// Save an endpoint with the step from the Endpoint step tab, then call that endpoint:
var result = await NetworkStorage.CallEndpoint( "my-endpoint", new { } );
if ( !result.HasValue )
{
return;
}- id: run_demo-season-reward
type: workflow
workflow: demo-season-reward
params: {}My sbox-ns project ID is proj_a75070d69b083f0f16f827f1. I am working on the workflow "demo-season-reward" (params: none). Workflows never run from game code: they run inside an endpoint step. No game-callable endpoint runs it yet. Draft the endpoint step YAML that runs it with its params, validate with definition_check, and show me the C# that calls that endpoint with NetworkStorage.CallEndpoint once saved. Do not save anything without my confirm string.