Skip to main content

build-systems

Build a feature's ecs system-database — the real-time tick loop (systems the scheduler runs each frame). For real-time features only.

소스 정보

저장소
adobe/data
최근 소스 활동
2026년 7월 24일 01:18
감지된 SKILL.md 언어
영어
스타
12
포크
8

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
build-systems
description
Build a feature's ecs system-database — the real-time tick loop (systems the scheduler runs each frame). For real-time features only.
input
feature
output
feature
Create `ecs/system-database/system-database.ts`: `Database.Plugin.create({ extends: Database.Plugin.combine(ComputedDatabase.plugin, scheduler), systems })` where the `systems` map is declared **inline** (see `features/ecs/systems.md` — inline is required for `db` to be typed and for system-name inference; a `systems/` folder is optional, only for extracted per-frame body helpers). - A system is a `SystemDeclaration`: `{ create, schedule?: { before?, after?, during? } }`. `create(db)` runs once (capture queries / index handles / closures); the returned function advances the world one tick. Return `void` for an init-only system (seeding entities). - The step math lives in `data/`; each system reads store rows, calls the pure `data/` step, writes back — via `db.store` (writable) for hot per-row work, or `db.transactions.*` for discrete events. Iterate archetypes per `archetypes.md` (tail→head when destroying rows). - Order under `schedule` (mirror the `data/` step's internal sequence); drive the loop by combining `scheduler` (rAF), gated by the `schedulerState` resource. **Only for real-time features** (games, sims) — turn-based features skip this phase entirely. Comes after `build-computed`. The how is in the auto-loading `features/ecs/systems.md` rule.
GitHub에서 보기