Methods for submitting and processing game actions
public Task<ActionSubmitResponse> SubmitActionAsync<T>(string playerToken, SubmitAction<T> request, CancellationToken ct = default)
Submits an action to specific targets (host, all, others, or specific players) with typed request data.
public Task<ActionPollResponse> PollActionsAsync(string playerToken, CancellationToken ct = default)
Polls for completed actions from other players. Call periodically to check for new actions.
public Task<ActionPendingResponse<T>> GetPendingActionsAsync<T>(string playerToken, CancellationToken ct = default)
Gets actions awaiting processing by the current player with typed request data.
public Task<ActionCompleteResponse> CompleteActionAsync<T>(string actionId, string playerToken, ActionComplete<T> request, CancellationToken ct = default)
Marks an action as completed with processing results using typed response data.
Actions are the room's request/response primitive — trades, votes, dialogs, ability prompts. Send issues a typed action at a target set: everyone, the host, everyone-but-you, or an explicit list of player ids. Each action carries a request payload and waits for an answer rather than firing and forgetting.
Recipients poll for actions addressed to them and answer with complete — a status marking it accepted, declined or completed, plus an optional response payload. Pending lists the sender's own still-unanswered actions, so a reconnecting client can rebuild its outstanding-request view.