apply_template
Instantiates a bundled or project template into the res:// directory, copying its files and optionally setting the main scene.
Instructions
Instantiate a bundled (or project) template into res:// in one call â copies its files and, if the template declares a main_scene, sets and opens it. Generic: a template can be a game starter, a UI screen, a settings menu, a test harness. Project templates under res://.beckett/templates/ override bundled ones. Call with no 'template' to list what's available.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | overwrite existing res:// files (default false) | |
| template | No | template name, e.g. platformer-2d |