Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit15ce14a4c1

README.md

agentContext

Named blocks of world data published to the agents working in a world. Each block is scoped to a world and branch, and optionally to the root scene it describes; a block published for another scope is refused, and a block is cleared only by the scope it was published for.

local agentContext = require("modules.api.engine.agentContext")
local ok, why = agentContext.publishWorld("sceneAuthoring", worldGuid, branch, sceneGuid, Json.encode(body))
agentContext.clearWorld("sceneAuthoring", worldGuid, branch, sceneGuid)