command · command.work

Assign work

Assigns one current visible Work job to one Actor through the retained order path.

command.work.assign(actor_id, expected_actor_revision, job_id, expected_job_revision, work_task_id, expected_task_revision, target_site_id, expected_topology_revision) -> command.receipt
Stable ID
command.work.assign
Owner
game.work-lifecycle
Authority
request
Timing
fixed_tick
Availability
active-session
Side effects
may create and activate one durable player assignment order
Determinism
record request and Work result in engine sequence order
Introduced
1.5.0

Usage

Use one current row from world.work.targets without altering its stable IDs or revisions. The normal assignment-order path decides whether the Actor can accept the work.

Parameters

Returns

A fixed-tick receipt for a durable player assignment-order request.

Cost

Bounded indexed validation across Actor, Work, World, and ControlAuthority.

Fields

IDTypeUnitsRequiredDescription
actor_idstable-idnoneyesActor receiving the work direction.
expected_actor_revisionrevisionnoneyesExpected Actor owner revision.
expected_job_revisionrevisionnoneyesExpected Work job revision.
expected_task_revisionrevisionnoneyesExpected Work task revision.
expected_topology_revisionrevisionnoneyesExpected World topology revision.
job_idstable-idnoneyesCurrent visible Work job.
target_site_idstable-idnoneyesWorld Site that owns the work target.
work_task_idstable-idnoneyesFirst task of the selected job.

Errors

Examples

command.submit("command.work.assign", target, 1)

API history

Related symbols

Project references