Skip to main content

computeDeployTemplate

Deploy a named engine template from the platform registry: upserts the module, publishes the template source (deduped by hash), binds its triggers, and enables it — one call instead of the upsert/deploy/trigger/enable sequence. Compilation proceeds asynchronously; poll computeModuleVersions for compile status. Templates are data-driven (behavior comes from model containers such as MobDef/EncounterDef/Course), so most games parameterize rather than fork. Requires the org 'manage_compute' permission.

computeDeployTemplate(
appId: BigInt!
templateName: String!
moduleName: String
): WasmModule!

Arguments

computeDeployTemplate.appId ● BigInt! non-null scalar

The app (tenant) to deploy into.

computeDeployTemplate.templateName ● String! non-null scalar

The registry template to deploy (see computeTemplates).

computeDeployTemplate.moduleName ● String scalar

Optional module name override (defaults to the template name); use it to run two parameterizations side by side.

Type

WasmModule object

A WASM compute module: developer-authored Rust compiled to sandboxed WASM on game-api instances. Holds metadata, the deployed version pointer, and circuit-breaker state; source lives in versions.