Overview
Thesystem schematic scaffolds a new ECS system function for a NanoForge client or server part. The generated file includes the system function, a default export required for code generation, and an EDITOR_SYSTEM_MANIFEST required for the NanoForge editor to display and configure the system.
Usage
Options
Generated file
{directory}/{name}.system.ts
Editor manifest
TheEDITOR_SYSTEM_MANIFEST export is required for the NanoForge editor to discover the system and wire it into the game loop.
System signature
Every NanoForge system follows the same function signature:registry— the ECS registry; useregistry.getZipper([...])to query entities with specific components.ctx— the application context; provides access toctx.app,ctx.assets, and other engine services.
Examples
Generate aPhysicsSystem for the client: