ScriptedAgent constructor

ScriptedAgent(
  1. FakeWorld world, {
  2. required String agentId,
  3. required AgentScript script,
  4. bool anchors = false,
})

Creates the agent; it acts after attach. With anchors every run gets its live box anchor (kind = run, 09 5.4) right after it is queued, as the server writes it in the same transaction; tests of tickets before M4-21 run without.

Implementation

ScriptedAgent(
  this.world, {
  required this.agentId,
  required this.script,
  this.anchors = false,
});