Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

docs(systems): Health is a user component, not an esengine export

yhh3b4a0416107e
diff --git a/docs/astro/src/content/docs/core-concepts/systems.mdx b/docs/astro/src/content/docs/core-concepts/systems.mdx
index 33c57c543..868ee946c 100644
--- a/docs/astro/src/content/docs/core-concepts/systems.mdx
+++ b/docs/astro/src/content/docs/core-concepts/systems.mdx
@@ -109,8 +109,8 @@ Query(Changed(Transform)) // written since the last run
`Removed(C)` is its own query that yields entities that **lost** `C`:
```typescript
-import { defineSystem, Removed, Health } from 'esengine';
-defineSystem([Removed(Health)], (removed) => {
+import { defineSystem, Removed } from 'esengine';
+defineSystem([Removed(Health)], (removed) => { // Health is your own component
for (const entity of removed) { /* cleanup */ }
});
```
diff --git a/docs/astro/src/content/docs/zh-cn/core-concepts/systems.mdx b/docs/astro/src/content/docs/zh-cn/core-concepts/systems.mdx
index 2ca700fde..660dffd85 100644
--- a/docs/astro/src/content/docs/zh-cn/core-concepts/systems.mdx
+++ b/docs/astro/src/content/docs/zh-cn/core-concepts/systems.mdx
@@ -99,8 +99,8 @@ Query(Changed(Transform)) // 上次运行后被写过
`Removed(C)` 是它自己的查询,产出**丢失**了 `C` 的实体:
```typescript
-import { defineSystem, Removed, Health } from 'esengine';
-defineSystem([Removed(Health)], (removed) => {
+import { defineSystem, Removed } from 'esengine';
+defineSystem([Removed(Health)], (removed) => { // Health 是你自己的组件
for (const entity of removed) { /* 清理 */ }
});
```