What problem does it solve?
This Skill provides the essential architectural guidelines, API references, and best practices for effectively utilizing the core @repo/engine package within the Better ECS workspace, ensuring type safety and standardized system design.
Core Features & Use Cases
- Enforces Type Safety: Guides users on augmenting the global
Register interface for robust type inference.
- Standardizes System Design: Details the canonical layout for defining systems using
createSystem, including schema definition and phase assignment.
- Documents Context API: Lists and explains crucial context hooks like
useWorld, useSystem, and useDelta for accessing engine state.
- Guides World Interaction: Demonstrates how to query entities, access components, and leverage component utilities for state manipulation.
- Use Case: When developing a new game feature, use this Skill to understand how to correctly define a new system, access entity data, and integrate it into the game loop according to established engine conventions.
Quick Start
Use the engine skill to define a new system for handling player input.