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.

fix(api): every part of the engine owes a verdict, and a verdict covers the shape

esengine880613a13c86
diff --git a/docs/astro/src/data/apiStability.generated.json b/docs/astro/src/data/apiStability.generated.json
index e3fc70fca..7cb017d7b 100644
--- a/docs/astro/src/data/apiStability.generated.json
+++ b/docs/astro/src/data/apiStability.generated.json
@@ -2,11 +2,11 @@
"note": "Generated by tools/api-stability.mjs from sdk/etc/*.api.md — do not edit.",
"counts": {
"public": 113,
- "beta": 73,
- "experimental": 1625,
+ "beta": 65,
+ "experimental": 1654,
"deprecated": 3
},
- "total": 1811,
+ "total": 1832,
"subsystems": [
{
"id": "ecs",
@@ -287,6 +287,84 @@
"Light",
"PostProcessStack"
]
+ },
+ {
+ "id": "physics-3d",
+ "title": "3D physics",
+ "titleZh": "3D 物理",
+ "tier": "experimental",
+ "why": "its door — the plugin, the world resource, the contact events — reached no entry until this release, so nothing has yet built on the half a game actually calls",
+ "whyZh": "它的门(插件、世界资源、碰撞事件)到这个版本才第一次进入口,所以游戏真正会调用的那一半还没有被任何东西建立在上面",
+ "entry": [
+ "RigidBody3D",
+ "Physics3D",
+ "Physics3DPlugin",
+ "CharacterController3D"
+ ]
+ },
+ {
+ "id": "mesh",
+ "title": "3D models & skinning",
+ "titleZh": "3D 模型与蒙皮",
+ "tier": "experimental",
+ "why": "the import chain is certified end to end, but the runtime surface a game drives a model through — geometry, materials per submesh, joint entities — has not been read for a tier",
+ "whyZh": "导入链路已经端到端认证,但游戏用来驱动模型的运行时面(几何体、逐子网格材质、关节实体)还没有被拿来定级",
+ "entry": [
+ "MeshRenderer",
+ "MeshRendererAPI",
+ "MeshRenderers"
+ ]
+ },
+ {
+ "id": "dragonbones",
+ "title": "DragonBones",
+ "titleZh": "DragonBones",
+ "tier": "experimental",
+ "why": "the second 2D skeletal runtime, and the one no certified game animates with — Spine carries that evidence and this shares none of it",
+ "whyZh": "第二个 2D 骨骼运行时,也是没有任何被认证的游戏在用的那个 —— 证据在 Spine 那边,这边一点也没分到",
+ "entry": [
+ "DragonBonesAnimation",
+ "DragonBonesPlugin"
+ ]
+ },
+ {
+ "id": "math",
+ "title": "Math",
+ "titleZh": "数学库",
+ "tier": "experimental",
+ "why": "the TYPES are frozen — Vec2, Vec3, Quat are @public and a Transform is made of them — but the operations over them are not, and a verdict has to name the weaker half",
+ "whyZh": "类型本身已冻结 —— Vec2、Vec3、Quat 是 @public,Transform 就是由它们构成的 —— 但它们之上的运算没有,而判决必须按更弱的那一半来说",
+ "entry": [
+ "vec2",
+ "vec3",
+ "quat"
+ ]
+ },
+ {
+ "id": "i18n",
+ "title": "Localization",
+ "titleZh": "本地化",
+ "tier": "experimental",
+ "why": "certified end to end by one game, whose use is a locale and a key lookup; the plural, formatting and fallback surface around that has no consumer",
+ "whyZh": "有一个游戏端到端认证了它,但用到的只是「切语言 + 查 key」;围绕它的复数、格式化、回退这一圈没有任何消费者",
+ "entry": [
+ "Localization",
+ "LocalizationAPI",
+ "LocalizationPlugin"
+ ]
+ },
+ {
+ "id": "services",
+ "title": "Platform services",
+ "titleZh": "平台服务",
+ "tier": "experimental",
+ "why": "each service is a contract with a store rather than with the engine, and the ones behind it differ enough that the shared shape is still being found",
+ "whyZh": "每个服务都是与某个平台的契约而非与引擎的契约,而它们之间的差异大到共同形状还没找出来",
+ "entry": [
+ "Ads",
+ "Achievements",
+ "Identity"
+ ]
}
],
"public": [
@@ -1757,54 +1835,6 @@
"minigame"
]
},
- {
- "name": "CharacterController3D",
- "kind": "const",
- "deprecated": false,
- "entries": [
- "index",
- "index.node",
- "index.native",
- "wechat",
- "minigame"
- ]
- },
- {
- "name": "ConvexCollider3D",
- "kind": "const",
- "deprecated": false,
- "entries": [
- "index",
- "index.node",
- "index.native",
- "wechat",
- "minigame"
- ]
- },
- {
- "name": "DistanceJoint3D",
- "kind": "const",
- "deprecated": false,
- "entries": [
- "index",
- "index.node",
- "index.native",
- "wechat",
- "minigame"
- ]
- },
- {
- "name": "FixedJoint3D",
- "kind": "const",
- "deprecated": false,
- "entries": [
- "index",
- "index.node",
- "index.native",
- "wechat",
- "minigame"
- ]
- },
{
"name": "GraphNodeType",
"kind": "type",
@@ -1829,18 +1859,6 @@
"minigame"
]
},
- {
- "name": "HingeJoint3D",
- "kind": "const",
- "deprecated": false,
- "entries": [
- "index",
- "index.node",
- "index.native",
- "wechat",
- "minigame"
- ]
- },
{
"name": "Input",
"kind": "const",
@@ -1901,18 +1919,6 @@
"minigame"
]
},
- {
- "name": "MeshCollider3D",
- "kind": "const",
- "deprecated": false,
- "entries": [
- "index",
- "index.node",
- "index.native",
- "wechat",
- "minigame"
- ]
- },
{
"name": "NODE_SPECS",
"kind": "const",
@@ -2019,18 +2025,6 @@
"minigame"
]
},
- {
- "name": "PointJoint3D",
- "kind": "const",
- "deprecated": false,
- "entries": [
- "index",
- "index.node",
- "index.native",
- "wechat",
- "minigame"
- ]
- },
{
"name": "PrefabOverride",
"kind": "interface",
@@ -2139,18 +2133,6 @@
"minigame"
]
},
- {
- "name": "SliderJoint3D",
- "kind": "const",
- "deprecated": false,
- "entries": [
- "index",
- "index.node",
- "index.native",
- "wechat",
- "minigame"
- ]
- },
{
"name": "SpawnOverride",
"kind": "type",
diff --git a/sdk/etc/index.api.md b/sdk/etc/index.api.md
index e3b1dc9a1..4162abc96 100644
--- a/sdk/etc/index.api.md
+++ b/sdk/etc/index.api.md
@@ -1,7 +1,7 @@
# API surface — esengine/index
<!-- Generated by tools/api-surface.mjs — do not edit. Run --update to accept changes. -->
-Symbols: 113 public · 66 beta · 1509 experimental · 3 deprecated
+Symbols: 113 public · 64 beta · 1511 experimental · 3 deprecated
## ABI_LAYOUT_HASH — const @experimental
```
@@ -421,7 +421,7 @@ parameters: AnimatorParam[]
states: AnimatorState[]
```
-## AnimatorData — interface @experimental
+## AnimatorData — interface @beta
```
controller: string
currentState: string
@@ -1893,7 +1893,7 @@ ComponentDef<ChainCollider2DData>
ComponentDef<CharacterController2DData>
```
-## CharacterController2DData — interface @experimental
+## CharacterController2DData — interface @beta
```
floorMaxAngle: number
floorNormal: Vec2
@@ -1910,7 +1910,7 @@ up: Vec2
velocity: Vec2
```
-## CharacterController3D — const @beta
+## CharacterController3D — const @experimental
```
BuiltinComponentDef<CharacterController3DData>
```
@@ -2176,7 +2176,7 @@ name: string
pages: string[]
```
-## ConvexCollider3D — const @beta
+## ConvexCollider3D — const @experimental
```
BuiltinComponentDef<ConvexCollider3DData>
```
@@ -2546,7 +2546,7 @@ ComponentDef<{}>
ComponentDef<DistanceJoint2DData>
```
-## DistanceJoint3D — const @beta
+## DistanceJoint3D — const @experimental
```
ComponentDef<DistanceJoint3DData>
```
@@ -3160,7 +3160,7 @@ type: "filter"
{ identityMatrix(): number[]; grayscaleMatrix(): number[]; sepiaMatrix(): number[]; brightnessMatrix(value: number): number[]; contrastMatrix(value: number): number[]; saturationMatrix(value: number): number[]; invertMatrix(): number[]; getColorMatrixShader: () => ShaderHandle; colorMatrixUniforms(matrix: number[]): Record<string, number[]>; }
```
-## FixedJoint3D — const @beta
+## FixedJoint3D — const @experimental
```
ComponentDef<FixedJoint3DData>
```
@@ -3607,7 +3607,7 @@ plugins: Plugin[] | undefined
sideModules: SideModuleHost | undefined
```
-## HingeJoint3D — const @beta
+## HingeJoint3D — const @experimental
```
ComponentDef<HingeJoint3DData>
```
@@ -4489,7 +4489,7 @@ type: number
{ readonly Float32: 0; readonly UNorm8: 1; readonly UInt16: 2; }
```
-## MeshCollider3D — const @beta
+## MeshCollider3D — const @experimental
```
BuiltinComponentDef<MeshCollider3DData>
```
@@ -5288,7 +5288,7 @@ typeof Physics2DEventType[keyof typeof Physics2DEventType]
ResourceDef<Physics2DEventsData>
```
-## Physics2DEventsData — interface @experimental
+## Physics2DEventsData — interface @beta
```
collisionEnters: CollisionEnterEvent[]
collisionExits: { entityA: Entity; entityB: Entity; }[]
@@ -5752,7 +5752,7 @@ zero: string | undefined
(count: number) => PluralCategory
```
-## PointJoint3D — const @beta
+## PointJoint3D — const @experimental
```
ComponentDef<PointJoint3DData>
```
@@ -7176,7 +7176,7 @@ setValue: (value: number) => void
trackEntity: number
```
-## SliderJoint3D — const @beta
+## SliderJoint3D — const @experimental
```
ComponentDef<SliderJoint3DData>
```
@@ -7266,7 +7266,7 @@ ResourceDef<SpineManager>
BuiltinComponentDef<SpineAnimationData>
```
-## SpineAnimationData — interface @experimental
+## SpineAnimationData — interface @beta
```
animation: string
atlasPath: string
@@ -7398,7 +7398,7 @@ static prototype: SpriteAnimationAPI
ComponentDef<SpriteAnimatorData>
```
-## SpriteAnimatorData — interface @experimental
+## SpriteAnimatorData — interface @beta
```
clip: string
currentFrame: number
@@ -8924,7 +8924,7 @@ static prototype: UIVisibilityPlugin
BuiltinComponentDef<UIVisualData>
```
-## UIVisualData — interface @experimental
+## UIVisualData — interface @beta
```
color: Color
enabled: boolean
diff --git a/sdk/etc/index.native.api.md b/sdk/etc/index.native.api.md
index 297d6706c..11cfea4d3 100644
--- a/sdk/etc/index.native.api.md
+++ b/sdk/etc/index.native.api.md
@@ -1,7 +1,7 @@
# API surface — esengine/index.native
<!-- Generated by tools/api-surface.mjs — do not edit. Run --update to accept changes. -->
-Symbols: 113 public · 71 beta · 1528 experimental · 3 deprecated
+Symbols: 113 public · 69 beta · 1530 experimental · 3 deprecated
## ABI_LAYOUT_HASH — const @experimental
```
@@ -421,7 +421,7 @@ parameters: AnimatorParam[]
states: AnimatorState[]
```
-## AnimatorData — interface @experimental
+## AnimatorData — interface @beta
```
controller: string
currentState: string
@@ -1893,7 +1893,7 @@ ComponentDef<ChainCollider2DData>
ComponentDef<CharacterController2DData>
```
-## CharacterController2DData — interface @experimental
+## CharacterController2DData — interface @beta
```
floorMaxAngle: number
floorNormal: Vec2
@@ -1910,7 +1910,7 @@ up: Vec2
velocity: Vec2
```
-## CharacterController3D — const @beta
+## CharacterController3D — const @experimental
```
BuiltinComponentDef<CharacterController3DData>
```
@@ -2184,7 +2184,7 @@ name: string
pages: string[]
```
-## ConvexCollider3D — const @beta
+## ConvexCollider3D — const @experimental
```
BuiltinComponentDef<ConvexCollider3DData>
```
@@ -2554,7 +2554,7 @@ ComponentDef<{}>
ComponentDef<DistanceJoint2DData>
```
-## DistanceJoint3D — const @beta
+## DistanceJoint3D — const @experimental
```
ComponentDef<DistanceJoint3DData>
```
@@ -3168,7 +3168,7 @@ type: "filter"
{ identityMatrix(): number[]; grayscaleMatrix(): number[]; sepiaMatrix(): number[]; brightnessMatrix(value: number): number[]; contrastMatrix(value: number): number[]; saturationMatrix(value: number): number[]; invertMatrix(): number[]; getColorMatrixShader: () => ShaderHandle; colorMatrixUniforms(matrix: number[]): Record<string, number[]>; }
```
-## FixedJoint3D — const @beta
+## FixedJoint3D — const @experimental
```
ComponentDef<FixedJoint3DData>
```
@@ -3615,7 +3615,7 @@ plugins: Plugin[] | undefined
sideModules: SideModuleHost | undefined
```
-## HingeJoint3D — const @beta
+## HingeJoint3D — const @experimental
```
ComponentDef<HingeJoint3DData>
```
@@ -4502,7 +4502,7 @@ type: number
{ readonly Float32: 0; readonly UNorm8: 1; readonly UInt16: 2; }
```
-## MeshCollider3D — const @beta
+## MeshCollider3D — const @experimental
```
BuiltinComponentDef<MeshCollider3DData>
```
@@ -5471,7 +5471,7 @@ typeof Physics2DEventType[keyof typeof Physics2DEventType]
ResourceDef<Physics2DEventsData>
```
-## Physics2DEventsData — interface @experimental
+## Physics2DEventsData — interface @beta
```
collisionEnters: CollisionEnterEvent[]
collisionExits: { entityA: Entity; entityB: Entity; }[]
@@ -5935,7 +5935,7 @@ zero: string | undefined
(count: number) => PluralCategory
```
-## PointJoint3D — const @beta
+## PointJoint3D — const @experimental
```
ComponentDef<PointJoint3DData>
```
@@ -7369,7 +7369,7 @@ setValue: (value: number) => void
trackEntity: number
```
-## SliderJoint3D — const @beta
+## SliderJoint3D — const @experimental
```
ComponentDef<SliderJoint3DData>
```
@@ -7459,7 +7459,7 @@ ResourceDef<SpineManager>
BuiltinComponentDef<SpineAnimationData>
```
-## SpineAnimationData — interface @experimental
+## SpineAnimationData — interface @beta
```
animation: string
atlasPath: string
@@ -7591,7 +7591,7 @@ static prototype: SpriteAnimationAPI
ComponentDef<SpriteAnimatorData>
```
-## SpriteAnimatorData — interface @experimental
+## SpriteAnimatorData — interface @beta
```
clip: string
currentFrame: number
@@ -9117,7 +9117,7 @@ static prototype: UIVisibilityPlugin
BuiltinComponentDef<UIVisualData>
```
-## UIVisualData — interface @experimental
+## UIVisualData — interface @beta
```
color: Color
enabled: boolean
diff --git a/sdk/etc/index.node.api.md b/sdk/etc/index.node.api.md
index 69573bb49..dd96cae8d 100644
--- a/sdk/etc/index.node.api.md
+++ b/sdk/etc/index.node.api.md
@@ -1,7 +1,7 @@
# API surface — esengine/index.node
<!-- Generated by tools/api-surface.mjs — do not edit. Run --update to accept changes. -->
-Symbols: 113 public · 68 beta · 1508 experimental · 3 deprecated
+Symbols: 113 public · 66 beta · 1510 experimental · 3 deprecated
## ANCHOR_AXES — const @experimental
```
@@ -416,7 +416,7 @@ parameters: AnimatorParam[]
states: AnimatorState[]
```
-## AnimatorData — interface @experimental
+## AnimatorData — interface @beta
```
controller: string
currentState: string
@@ -1888,7 +1888,7 @@ ComponentDef<ChainCollider2DData>
ComponentDef<CharacterController2DData>
```
-## CharacterController2DData — interface @experimental
+## CharacterController2DData — interface @beta
```
floorMaxAngle: number
floorNormal: Vec2
@@ -1905,7 +1905,7 @@ up: Vec2
velocity: Vec2
```
-## CharacterController3D — const @beta
+## CharacterController3D — const @experimental
```
BuiltinComponentDef<CharacterController3DData>
```
@@ -2171,7 +2171,7 @@ name: string
pages: string[]
```
-## ConvexCollider3D — const @beta
+## ConvexCollider3D — const @experimental
```
BuiltinComponentDef<ConvexCollider3DData>
```
@@ -2541,7 +2541,7 @@ ComponentDef<{}>
ComponentDef<DistanceJoint2DData>
```
-## DistanceJoint3D — const @beta
+## DistanceJoint3D — const @experimental
```
ComponentDef<DistanceJoint3DData>
```
@@ -3155,7 +3155,7 @@ type: "filter"
{ identityMatrix(): number[]; grayscaleMatrix(): number[]; sepiaMatrix(): number[]; brightnessMatrix(value: number): number[]; contrastMatrix(value: number): number[]; saturationMatrix(value: number): number[]; invertMatrix(): number[]; getColorMatrixShader: () => ShaderHandle; colorMatrixUniforms(matrix: number[]): Record<string, number[]>; }
```
-## FixedJoint3D — const @beta
+## FixedJoint3D — const @experimental
```
ComponentDef<FixedJoint3DData>
```
@@ -3602,7 +3602,7 @@ plugins: Plugin[] | undefined
sideModules: SideModuleHost | undefined
```
-## HingeJoint3D — const @beta
+## HingeJoint3D — const @experimental
```
ComponentDef<HingeJoint3DData>
```
@@ -4484,7 +4484,7 @@ type: number
{ readonly Float32: 0; readonly UNorm8: 1; readonly UInt16: 2; }
```
-## MeshCollider3D — const @beta
+## MeshCollider3D — const @experimental
```
BuiltinComponentDef<MeshCollider3DData>
```
@@ -5283,7 +5283,7 @@ typeof Physics2DEventType[keyof typeof Physics2DEventType]
ResourceDef<Physics2DEventsData>
```
-## Physics2DEventsData — interface @experimental
+## Physics2DEventsData — interface @beta
```
collisionEnters: CollisionEnterEvent[]
collisionExits: { entityA: Entity; entityB: Entity; }[]
@@ -5747,7 +5747,7 @@ zero: string | undefined
(count: number) => PluralCategory
```
-## PointJoint3D — const @beta
+## PointJoint3D — const @experimental
```
ComponentDef<PointJoint3DData>
```
@@ -7171,7 +7171,7 @@ setValue: (value: number) => void
trackEntity: number
```
-## SliderJoint3D — const @beta
+## SliderJoint3D — const @experimental
```
ComponentDef<SliderJoint3DData>
```
@@ -7261,7 +7261,7 @@ ResourceDef<SpineManager>
BuiltinComponentDef<SpineAnimationData>
```
-## SpineAnimationData — interface @experimental
+## SpineAnimationData — interface @beta
```
animation: string
atlasPath: string
@@ -7393,7 +7393,7 @@ static prototype: SpriteAnimationAPI
ComponentDef<SpriteAnimatorData>
```
-## SpriteAnimatorData — interface @experimental
+## SpriteAnimatorData — interface @beta
```
clip: string
currentFrame: number
@@ -8919,7 +8919,7 @@ static prototype: UIVisibilityPlugin
BuiltinComponentDef<UIVisualData>
```
-## UIVisualData — interface @experimental
+## UIVisualData — interface @beta
```
color: Color
enabled: boolean
diff --git a/sdk/etc/minigame.api.md b/sdk/etc/minigame.api.md
index 612db1be2..ce168dfc7 100644
--- a/sdk/etc/minigame.api.md
+++ b/sdk/etc/minigame.api.md
@@ -1,7 +1,7 @@
# API surface — esengine/minigame
<!-- Generated by tools/api-surface.mjs — do not edit. Run --update to accept changes. -->
-Symbols: 113 public · 66 beta · 1530 experimental · 3 deprecated
+Symbols: 113 public · 64 beta · 1532 experimental · 3 deprecated
## ANCHOR_AXES — const @experimental
```
@@ -416,7 +416,7 @@ parameters: AnimatorParam[]
states: AnimatorState[]
```
-## AnimatorData — interface @experimental
+## AnimatorData — interface @beta
```
controller: string
currentState: string
@@ -1888,7 +1888,7 @@ ComponentDef<ChainCollider2DData>
ComponentDef<CharacterController2DData>
```
-## CharacterController2DData — interface @experimental
+## CharacterController2DData — interface @beta
```
floorMaxAngle: number
floorNormal: Vec2
@@ -1905,7 +1905,7 @@ up: Vec2
velocity: Vec2
```
-## CharacterController3D — const @beta
+## CharacterController3D — const @experimental
```
BuiltinComponentDef<CharacterController3DData>
```
@@ -2171,7 +2171,7 @@ name: string
pages: string[]
```
-## ConvexCollider3D — const @beta
+## ConvexCollider3D — const @experimental
```
BuiltinComponentDef<ConvexCollider3DData>
```
@@ -2541,7 +2541,7 @@ ComponentDef<{}>
ComponentDef<DistanceJoint2DData>
```
-## DistanceJoint3D — const @beta
+## DistanceJoint3D — const @experimental
```
ComponentDef<DistanceJoint3DData>
```
@@ -3155,7 +3155,7 @@ type: "filter"
{ identityMatrix(): number[]; grayscaleMatrix(): number[]; sepiaMatrix(): number[]; brightnessMatrix(value: number): number[]; contrastMatrix(value: number): number[]; saturationMatrix(value: number): number[]; invertMatrix(): number[]; getColorMatrixShader: () => ShaderHandle; colorMatrixUniforms(matrix: number[]): Record<string, number[]>; }
```
-## FixedJoint3D — const @beta
+## FixedJoint3D — const @experimental
```
ComponentDef<FixedJoint3DData>
```
@@ -3602,7 +3602,7 @@ plugins: Plugin[] | undefined
sideModules: SideModuleHost | undefined
```
-## HingeJoint3D — const @beta
+## HingeJoint3D — const @experimental
```
ComponentDef<HingeJoint3DData>
```
@@ -4484,7 +4484,7 @@ type: number
{ readonly Float32: 0; readonly UNorm8: 1; readonly UInt16: 2; }
```
-## MeshCollider3D — const @beta
+## MeshCollider3D — const @experimental
```
BuiltinComponentDef<MeshCollider3DData>
```
@@ -5528,7 +5528,7 @@ typeof Physics2DEventType[keyof typeof Physics2DEventType]
ResourceDef<Physics2DEventsData>
```
-## Physics2DEventsData — interface @experimental
+## Physics2DEventsData — interface @beta
```
collisionEnters: CollisionEnterEvent[]
collisionExits: { entityA: Entity; entityB: Entity; }[]
@@ -5992,7 +5992,7 @@ zero: string | undefined
(count: number) => PluralCategory
```
-## PointJoint3D — const @beta
+## PointJoint3D — const @experimental
```
ComponentDef<PointJoint3DData>
```
@@ -7416,7 +7416,7 @@ setValue: (value: number) => void
trackEntity: number
```
-## SliderJoint3D — const @beta
+## SliderJoint3D — const @experimental
```
ComponentDef<SliderJoint3DData>
```
@@ -7506,7 +7506,7 @@ ResourceDef<SpineManager>
BuiltinComponentDef<SpineAnimationData>
```
-## SpineAnimationData — interface @experimental
+## SpineAnimationData — interface @beta
```
animation: string
atlasPath: string
@@ -7638,7 +7638,7 @@ static prototype: SpriteAnimationAPI
ComponentDef<SpriteAnimatorData>
```
-## SpriteAnimatorData — interface @experimental
+## SpriteAnimatorData — interface @beta
```
clip: string
currentFrame: number
@@ -9164,7 +9164,7 @@ static prototype: UIVisibilityPlugin
BuiltinComponentDef<UIVisualData>
```
-## UIVisualData — interface @experimental
+## UIVisualData — interface @beta
```
color: Color
enabled: boolean
diff --git a/sdk/etc/physics.api.md b/sdk/etc/physics.api.md
index b592dc6d6..c394bbf3c 100644
--- a/sdk/etc/physics.api.md
+++ b/sdk/etc/physics.api.md
@@ -1,7 +1,7 @@
# API surface — esengine/physics
<!-- Generated by tools/api-surface.mjs — do not edit. Run --update to accept changes. -->
-Symbols: 0 public · 3 beta · 65 experimental · 0 deprecated
+Symbols: 0 public · 5 beta · 63 experimental · 0 deprecated
## BodyType — enum @experimental
```
@@ -74,7 +74,7 @@ restitution: number
ComponentDef<CharacterController2DData>
```
-## CharacterController2DData — interface @experimental
+## CharacterController2DData — interface @beta
```
floorMaxAngle: number
floorNormal: Vec2
@@ -360,7 +360,7 @@ typeof Physics2DEventType[keyof typeof Physics2DEventType]
ResourceDef<Physics2DEventsData>
```
-## Physics2DEventsData — interface @experimental
+## Physics2DEventsData — interface @beta
```
collisionEnters: CollisionEnterEvent[]
collisionExits: { entityA: Entity; entityB: Entity; }[]
diff --git a/sdk/etc/physics3d.api.md b/sdk/etc/physics3d.api.md
index 06b741d2f..a5fd13aa2 100644
--- a/sdk/etc/physics3d.api.md
+++ b/sdk/etc/physics3d.api.md
@@ -1,7 +1,7 @@
# API surface — esengine/physics3d
<!-- Generated by tools/api-surface.mjs — do not edit. Run --update to accept changes. -->
-Symbols: 0 public · 9 beta · 49 experimental · 0 deprecated
+Symbols: 0 public · 0 beta · 58 experimental · 0 deprecated
## BoxCollider3D — const @experimental
```
@@ -49,7 +49,7 @@ y: number
z: number
```
-## CharacterController3D — const @beta
+## CharacterController3D — const @experimental
```
BuiltinComponentDef<CharacterController3DData>
```
@@ -104,7 +104,7 @@ pointY: number
pointZ: number
```
-## ConvexCollider3D — const @beta
+## ConvexCollider3D — const @experimental
```
BuiltinComponentDef<ConvexCollider3DData>
```
@@ -123,7 +123,7 @@ restitution: number
Physics3DConfig
```
-## DistanceJoint3D — const @beta
+## DistanceJoint3D — const @experimental
```
ComponentDef<DistanceJoint3DData>
```
@@ -141,7 +141,7 @@ maxLength: number
minLength: number
```
-## FixedJoint3D — const @beta
+## FixedJoint3D — const @experimental
```
ComponentDef<FixedJoint3DData>
```
@@ -153,7 +153,7 @@ connectedEntity: number
enabled: boolean
```
-## HingeJoint3D — const @beta
+## HingeJoint3D — const @experimental
```
ComponentDef<HingeJoint3DData>
```
@@ -184,7 +184,7 @@ enabled: boolean
type: string
```
-## MeshCollider3D — const @beta
+## MeshCollider3D — const @experimental
```
BuiltinComponentDef<MeshCollider3DData>
```
@@ -238,7 +238,7 @@ showColliders: boolean
showContacts: boolean
```
-## Physics3DEvents — const @beta
+## Physics3DEvents — const @experimental
```
ResourceDef<Physics3DEventsData>
```
@@ -335,7 +335,7 @@ _physics3d_transforms: () => number
_physics3d_transformsBytes: () => number
```
-## PointJoint3D — const @beta
+## PointJoint3D — const @experimental
```
ComponentDef<PointJoint3DData>
```
@@ -371,7 +371,7 @@ sensorEntity: number
visitorEntity: number
```
-## SliderJoint3D — const @beta
+## SliderJoint3D — const @experimental
```
ComponentDef<SliderJoint3DData>
```
diff --git a/sdk/etc/wechat.api.md b/sdk/etc/wechat.api.md
index db77f2fde..5549b12a4 100644
--- a/sdk/etc/wechat.api.md
+++ b/sdk/etc/wechat.api.md
@@ -1,7 +1,7 @@
# API surface — esengine/wechat
<!-- Generated by tools/api-surface.mjs — do not edit. Run --update to accept changes. -->
-Symbols: 113 public · 66 beta · 1520 experimental · 3 deprecated
+Symbols: 113 public · 64 beta · 1522 experimental · 3 deprecated
## ANCHOR_AXES — const @experimental
```
@@ -416,7 +416,7 @@ parameters: AnimatorParam[]
states: AnimatorState[]
```
-## AnimatorData — interface @experimental
+## AnimatorData — interface @beta
```
controller: string
currentState: string
@@ -1888,7 +1888,7 @@ ComponentDef<ChainCollider2DData>
ComponentDef<CharacterController2DData>
```
-## CharacterController2DData — interface @experimental
+## CharacterController2DData — interface @beta
```
floorMaxAngle: number
floorNormal: Vec2
@@ -1905,7 +1905,7 @@ up: Vec2
velocity: Vec2
```
-## CharacterController3D — const @beta
+## CharacterController3D — const @experimental
```
BuiltinComponentDef<CharacterController3DData>
```
@@ -2171,7 +2171,7 @@ name: string
pages: string[]
```
-## ConvexCollider3D — const @beta
+## ConvexCollider3D — const @experimental
```
BuiltinComponentDef<ConvexCollider3DData>
```
@@ -2541,7 +2541,7 @@ ComponentDef<{}>
ComponentDef<DistanceJoint2DData>
```
-## DistanceJoint3D — const @beta
+## DistanceJoint3D — const @experimental
```
ComponentDef<DistanceJoint3DData>
```
@@ -3155,7 +3155,7 @@ type: "filter"
{ identityMatrix(): number[]; grayscaleMatrix(): number[]; sepiaMatrix(): number[]; brightnessMatrix(value: number): number[]; contrastMatrix(value: number): number[]; saturationMatrix(value: number): number[]; invertMatrix(): number[]; getColorMatrixShader: () => ShaderHandle; colorMatrixUniforms(matrix: number[]): Record<string, number[]>; }
```
-## FixedJoint3D — const @beta
+## FixedJoint3D — const @experimental
```
ComponentDef<FixedJoint3DData>
```
@@ -3602,7 +3602,7 @@ plugins: Plugin[] | undefined
sideModules: SideModuleHost | undefined
```
-## HingeJoint3D — const @beta
+## HingeJoint3D — const @experimental
```
ComponentDef<HingeJoint3DData>
```
@@ -4491,7 +4491,7 @@ type: number
{ readonly Float32: 0; readonly UNorm8: 1; readonly UInt16: 2; }
```
-## MeshCollider3D — const @beta
+## MeshCollider3D — const @experimental
```
BuiltinComponentDef<MeshCollider3DData>
```
@@ -5290,7 +5290,7 @@ typeof Physics2DEventType[keyof typeof Physics2DEventType]
ResourceDef<Physics2DEventsData>
```
-## Physics2DEventsData — interface @experimental
+## Physics2DEventsData — interface @beta
```
collisionEnters: CollisionEnterEvent[]
collisionExits: { entityA: Entity; entityB: Entity; }[]
@@ -5754,7 +5754,7 @@ zero: string | undefined
(count: number) => PluralCategory
```
-## PointJoint3D — const @beta
+## PointJoint3D — const @experimental
```
ComponentDef<PointJoint3DData>
```
@@ -7178,7 +7178,7 @@ setValue: (value: number) => void
trackEntity: number
```
-## SliderJoint3D — const @beta
+## SliderJoint3D — const @experimental
```
ComponentDef<SliderJoint3DData>
```
@@ -7268,7 +7268,7 @@ ResourceDef<SpineManager>
BuiltinComponentDef<SpineAnimationData>
```
-## SpineAnimationData — interface @experimental
+## SpineAnimationData — interface @beta
```
animation: string
atlasPath: string
@@ -7400,7 +7400,7 @@ static prototype: SpriteAnimationAPI
ComponentDef<SpriteAnimatorData>
```
-## SpriteAnimatorData — interface @experimental
+## SpriteAnimatorData — interface @beta
```
clip: string
currentFrame: number
@@ -8926,7 +8926,7 @@ static prototype: UIVisibilityPlugin
BuiltinComponentDef<UIVisualData>
```
-## UIVisualData — interface @experimental
+## UIVisualData — interface @beta
```
color: Color
enabled: boolean
diff --git a/sdk/src/animation/Animator.ts b/sdk/src/animation/Animator.ts
index f2b3e278a..32c6e94cf 100644
--- a/sdk/src/animation/Animator.ts
+++ b/sdk/src/animation/Animator.ts
@@ -340,6 +340,8 @@ export function resolveParams(
// Animator component
// =============================================================================
+/** The fields of the `Animator` component, whose tier this shape carries.
+ * @beta */
export interface AnimatorData {
/** Registered controller name (see AnimatorControllerAPI.registerController). */
controller: string;
diff --git a/sdk/src/animation/SpriteAnimator.ts b/sdk/src/animation/SpriteAnimator.ts
index 7c62d5640..c09c78df5 100644
--- a/sdk/src/animation/SpriteAnimator.ts
+++ b/sdk/src/animation/SpriteAnimator.ts
@@ -274,6 +274,8 @@ export const SpriteAnimation = defineResource<SpriteAnimationAPI>(null!, 'Sprite
// SpriteAnimator Component
// =============================================================================
+/** The fields of the `SpriteAnimator` component, whose tier this shape carries.
+ * @beta */
export interface SpriteAnimatorData {
clip: string;
speed: number;
diff --git a/sdk/src/ecs/component.generated.ts b/sdk/src/ecs/component.generated.ts
index 9a88a920b..e02756090 100644
--- a/sdk/src/ecs/component.generated.ts
+++ b/sdk/src/ecs/component.generated.ts
@@ -1418,6 +1418,12 @@ export interface SphereCollider3DData {
enabled: boolean;
}
+/**
+ * The fields of the engine's `SpineAnimation` component, generated from
+ * the C++ struct so the two shapes cannot drift.
+ *
+ * @beta
+ */
export interface SpineAnimationData {
skeletonPath: string;
atlasPath: string;
@@ -1554,6 +1560,12 @@ export interface UIScrollData {
decelerationRate: number;
}
+/**
+ * The fields of the engine's `UIVisual` component, generated from
+ * the C++ struct so the two shapes cannot drift.
+ *
+ * @beta
+ */
export interface UIVisualData {
visualType: number;
texture: number;
diff --git a/sdk/src/physics/CharacterController2D.ts b/sdk/src/physics/CharacterController2D.ts
index a20635d1d..f858e6198 100644
--- a/sdk/src/physics/CharacterController2D.ts
+++ b/sdk/src/physics/CharacterController2D.ts
@@ -41,6 +41,8 @@ import type { World } from '../ecs/world';
// Component
// =============================================================================
+/** The fields of the `CharacterController2D` component, whose tier this shape carries.
+ * @beta */
export interface CharacterController2DData {
/** Desired velocity in world pixels/second; set it from gameplay each step. */
velocity: Vec2;
diff --git a/sdk/src/physics/PhysicsTypes.ts b/sdk/src/physics/PhysicsTypes.ts
index 0c2fa6428..e09138a45 100644
--- a/sdk/src/physics/PhysicsTypes.ts
+++ b/sdk/src/physics/PhysicsTypes.ts
@@ -68,6 +68,8 @@ export interface CollisionHitEvent {
approachSpeed: number;
}
+/** What `Physics2DEvents` holds for a frame, whose tier this shape carries.
+ * @beta */
export interface Physics2DEventsData {
collisionEnters: CollisionEnterEvent[];
collisionExits: Array<{ entityA: Entity; entityB: Entity }>;
diff --git a/sdk/src/physics3d/Physics3DComponents.ts b/sdk/src/physics3d/Physics3DComponents.ts
index 25c84b33a..55aa2f337 100644
--- a/sdk/src/physics3d/Physics3DComponents.ts
+++ b/sdk/src/physics3d/Physics3DComponents.ts
@@ -66,7 +66,7 @@ export const CapsuleCollider3D = defineBuiltin<CapsuleCollider3DData>('CapsuleCo
* Imported geometry used as it is, for a level to collide against. Always static:
* a triangle soup has no inertia tensor, so there is nothing for a solver to push.
*
- * @beta
+ * @experimental
*/
export const MeshCollider3D = defineBuiltin<MeshCollider3DData>('MeshCollider3D', {
mesh: 0,
@@ -81,7 +81,7 @@ export const MeshCollider3D = defineBuiltin<MeshCollider3DData>('MeshCollider3D'
* triangle soup has no inertia tensor and is scenery whatever its body says; a
* hull is a volume a solver pushes as readily as a box.
*
- * @beta
+ * @experimental
*/
export const ConvexCollider3D = defineBuiltin<ConvexCollider3DData>('ConvexCollider3D', {
mesh: 0,
@@ -96,7 +96,7 @@ export const ConvexCollider3D = defineBuiltin<ConvexCollider3DData>('ConvexColli
* solved in it. Set `velocity` each step and read `isOnFloor` back; the vertical
* component is carried for you, so a zero there means "walk", not "hang".
*
- * @beta
+ * @experimental
*/
export const CharacterController3D = defineBuiltin<CharacterController3DData>(
'CharacterController3D', {
diff --git a/sdk/src/physics3d/Physics3DJoints.ts b/sdk/src/physics3d/Physics3DJoints.ts
index d0634a451..99f04ca29 100644
--- a/sdk/src/physics3d/Physics3DJoints.ts
+++ b/sdk/src/physics3d/Physics3DJoints.ts
@@ -31,7 +31,7 @@ export interface PointJoint3DData {
/**
* A shared point the two bodies turn freely about — a chain link, a ragdoll limb.
*
- * @beta
+ * @experimental
*/
export const PointJoint3D = defineComponent<PointJoint3DData>('PointJoint3D', {
connectedEntity: -1,
@@ -60,7 +60,7 @@ export interface HingeJoint3DData {
* One axis of rotation — a door, a lever, a driven wheel. Limits are radians
* measured from the pose the joint was made in, so zero is where you placed it.
*
- * @beta
+ * @experimental
*/
export const HingeJoint3D = defineComponent<HingeJoint3DData>('HingeJoint3D', {
connectedEntity: -1,
@@ -98,7 +98,7 @@ export interface SliderJoint3DData {
* One axis of travel — a lift, a piston, a sliding door. Limits are world units
* along `axis`, again measured from where the joint was made.
*
- * @beta
+ * @experimental
*/
export const SliderJoint3D = defineComponent<SliderJoint3DData>('SliderJoint3D', {
connectedEntity: -1,
@@ -131,7 +131,7 @@ export interface DistanceJoint3DData {
* A distance kept between two points: a rope when only `maxLength` matters, a rod
* when the two lengths meet, a spring when `frequency` is above zero.
*
- * @beta
+ * @experimental
*/
export const DistanceJoint3D = defineComponent<DistanceJoint3DData>('DistanceJoint3D', {
connectedEntity: -1,
@@ -155,7 +155,7 @@ export interface FixedJoint3DData {
* No freedom at all: the two move as one. It has no anchor — the pose the pieces
* are in when the joint is made is the joint.
*
- * @beta
+ * @experimental
*/
export const FixedJoint3D = defineComponent<FixedJoint3DData>('FixedJoint3D', {
connectedEntity: -1,
diff --git a/sdk/src/physics3d/Physics3DModule.ts b/sdk/src/physics3d/Physics3DModule.ts
index 7d07b1001..7ce73ea96 100644
--- a/sdk/src/physics3d/Physics3DModule.ts
+++ b/sdk/src/physics3d/Physics3DModule.ts
@@ -201,7 +201,7 @@ export interface Physics3DEventsData {
* system reading it must run inside one — a read from `Update` sees whatever the
* last step left.
*
- * @beta
+ * @experimental
*/
export const Physics3DEvents = defineResource<Physics3DEventsData>({
contactEnters: [],
diff --git a/sdk/src/ui/core/ui-visual.ts b/sdk/src/ui/core/ui-visual.ts
index 39eac28b7..2c4d675f8 100644
--- a/sdk/src/ui/core/ui-visual.ts
+++ b/sdk/src/ui/core/ui-visual.ts
@@ -30,6 +30,8 @@ import {
} from '../../wasm/wasm.generated';
export { UIVisualType, UIVisualFit, FillMethod, FillOrigin };
+/** The fields of the `UIVisual` component, whose tier this shape carries.
+ * @beta */
export interface UIVisualData {
visualType: UIVisualType;
texture: number;
diff --git a/src/esengine/ecs/components/SpineAnimation.hpp b/src/esengine/ecs/components/SpineAnimation.hpp
index 008df4774..537efd44c 100644
--- a/src/esengine/ecs/components/SpineAnimation.hpp
+++ b/src/esengine/ecs/components/SpineAnimation.hpp
@@ -46,7 +46,7 @@ namespace esengine::ecs {
* spine.loop = true;
* @endcode
*/
-ES_COMPONENT(renderable=enabled)
+ES_COMPONENT(renderable=enabled, stability=beta)
struct SpineAnimation {
/** @brief Path to skeleton data file (.skel or .json) */
ES_PROPERTY(asset = spine_skeleton)
diff --git a/src/esengine/ecs/components/UIVisual.hpp b/src/esengine/ecs/components/UIVisual.hpp
index 5c53b0975..a885f5e5c 100644
--- a/src/esengine/ecs/components/UIVisual.hpp
+++ b/src/esengine/ecs/components/UIVisual.hpp
@@ -80,7 +80,7 @@ enum class UIVisualFit : u8 {
* `uvScale` are the base sub-region (identity = whole texture); Tiled/Filled
* derive their final UV from this base at draw time.
*/
-ES_COMPONENT(renderable=enabled)
+ES_COMPONENT(renderable=enabled, stability=beta)
struct UIVisual {
ES_PROPERTY()
UIVisualType visualType{UIVisualType::None};
diff --git a/tools/apiSubsystems.mjs b/tools/apiSubsystems.mjs
index 08e6155ba..60b50682f 100644
--- a/tools/apiSubsystems.mjs
+++ b/tools/apiSubsystems.mjs
@@ -15,16 +15,32 @@
*/
/**
- * `tier` is the promise; `why` says what decided it, and is required for anything
- * not frozen — "not frozen" is a decision and has to read like one. Both are
- * published, so both carry a `*Zh`: the Chinese page renders Chinese or it is not
- * a Chinese page.
+ * `tier` is the promise; `why` says what decided it, required for anything not
+ * frozen — "not frozen" is a decision and has to read like one. Both publish, so
+ * both carry a `*Zh`. `source` names the `sdk/src/*` a row speaks for, which is
+ * what makes the table answerable BACKWARDS; the rest is {@link INFRASTRUCTURE}.
*/
+/**
+ * Directories under `sdk/src` that carry no creator-facing verdict: the wiring a
+ * game runs ON rather than builds WITH. Listed rather than inferred, so adding a
+ * subsystem cannot be mistaken for adding plumbing.
+ */
+export const INFRASTRUCTURE = {
+ diagnostics: 'the engine reporting on itself — a census and a stats overlay, read by tooling',
+ document: 'document-model diagnostics shared with the editor, not part of a game',
+ platform: 'the PlatformAdapter implementations; a game meets these through the subsystems above',
+ runtime: 'how an exported project boots — the loader and app factory the pipeline emits',
+ sideModules: 'fetching and caching the optional wasm modules the subsystems above sit on',
+ util: 'small shared helpers with no subsystem of their own',
+ wasm: 'the generated layout and the bridge to the C++ core',
+};
+
export const SUBSYSTEMS = [
{
id: 'ecs',
title: 'ECS',
titleZh: 'ECS',
+ source: ['ecs'],
tier: 'public',
entry: ['defineComponent', 'defineSystem', 'Query', 'Mut', 'Res', 'Commands', 'World'],
},
@@ -32,6 +48,7 @@ export const SUBSYSTEMS = [
id: 'app-lifecycle',
title: 'App lifecycle',
titleZh: '应用生命周期',
+ source: ['app'],
tier: 'public',
entry: ['Schedule', 'addSystemToSchedule', 'addStartupSystem', 'defineSystemSet', 'Time'],
},
@@ -39,6 +56,7 @@ export const SUBSYSTEMS = [
id: 'transform',
title: 'Transform & hierarchy',
titleZh: '变换与层级',
+ source: ['ecs'],
tier: 'public',
entry: ['Transform', 'Parent', 'Children', 'Name'],
},
@@ -46,6 +64,7 @@ export const SUBSYSTEMS = [
id: 'drawing',
title: 'Sprites & text',
titleZh: '精灵与文本',
+ source: ['ecs', 'ui'],
tier: 'public',
entry: ['Sprite', 'Text', 'TextAlign'],
},
@@ -53,6 +72,7 @@ export const SUBSYSTEMS = [
id: 'input',
title: 'Input actions',
titleZh: '输入动作',
+ source: ['input'],
tier: 'public',
why: 'the action and binding vocabulary is frozen; the raw per-frame state under it is Beta — see InputState',
whyZh: '动作与绑定的词汇表已冻结;它下面的每帧原始状态是 Beta —— 见 InputState',
@@ -62,6 +82,7 @@ export const SUBSYSTEMS = [
id: 'layout-units',
title: 'Layout units',
titleZh: '布局单位',
+ source: ['ui'],
tier: 'public',
entry: ['px', 'percent', 'Dimension'],
},
@@ -69,6 +90,7 @@ export const SUBSYSTEMS = [
id: 'input-raw',
title: 'Raw input state',
titleZh: '原始输入状态',
+ source: ['input'],
tier: 'beta',
why: 'per-frame touch state is reachable only as raw collections, with no accessor for started/ended and no write door — freezing it would freeze both gaps',
whyZh: '每帧触摸状态只能通过原始集合拿到,started/ended 没有访问器,也没有写入门 —— 冻结它等于把这两个缺口一起冻进去',
@@ -78,6 +100,7 @@ export const SUBSYSTEMS = [
id: 'ui',
title: 'UI',
titleZh: 'UI',
+ source: ['ui'],
tier: 'beta',
why: 'thirty-three of a hundred and fifteen UI symbols reach a certified game, and the newest part of the surface is the part a creator meets first — anchors, insets, theme tokens',
whyZh: '115 个 UI 符号里只有 33 个到得了被认证的游戏,而这套面最新的部分恰恰是创作者最先碰的:锚点、inset、主题 token',
@@ -87,6 +110,7 @@ export const SUBSYSTEMS = [
id: 'scene',
title: 'Scenes',
titleZh: '场景',
+ source: ['scene'],
tier: 'beta',
why: 'one certified project drives scenes at all, against twenty-six SceneManagerState signatures',
whyZh: '只有一个被认证的项目在驱动场景,而 SceneManagerState 有 26 个签名',
@@ -96,6 +120,7 @@ export const SUBSYSTEMS = [
id: 'prefab',
title: 'Prefabs',
titleZh: '预制体',
+ source: ['prefab'],
tier: 'beta',
why: 'instantiate has not moved, but its result and override shapes are the on-disk format\'s, so the names settled ahead of the shapes',
whyZh: 'instantiate 没有动过,但它的结果和覆盖形状属于磁盘格式,所以名字比形状先定下来',
@@ -105,6 +130,7 @@ export const SUBSYSTEMS = [
id: 'assets',
title: 'Assets',
titleZh: '资产',
+ source: ['asset'],
tier: 'beta',
why: 'one certified project takes Res(Assets), for four of its members, and the host wiring — resolvers, registries, the manifest, device-loss recovery — has to leave the game-facing surface first',
whyZh: '只有一个被认证的项目用 Res(Assets),且只用了 4 个成员;而宿主接线(resolver、registry、manifest、设备丢失恢复)必须先离开面向游戏的这一面',
@@ -114,6 +140,7 @@ export const SUBSYSTEMS = [
id: 'physics',
title: 'Physics',
titleZh: '物理',
+ source: ['physics'],
tier: 'beta',
why: 'the corpus reaches three of thirty-seven physics symbols',
whyZh: '语料只触到 37 个物理符号里的 3 个',
@@ -123,6 +150,7 @@ export const SUBSYSTEMS = [
id: 'camera',
title: 'Camera',
titleZh: '相机',
+ source: ['camera'],
tier: 'beta',
why: 'clearFlags is a bitmask whose C++ enum has no TypeScript spelling, and cullingMask names layers no exported constant identifies — two fields typed `number` for want of the vocabulary',
whyZh: 'clearFlags 是位掩码,而它的 C++ enum 在 TypeScript 侧没有拼写;cullingMask 指的图层没有任何导出常量能标识 —— 两个字段被打成 number 是因为缺词汇',
@@ -132,6 +160,7 @@ export const SUBSYSTEMS = [
id: 'spine',
title: 'Spine',
titleZh: 'Spine',
+ source: ['spine', 'skeletal'],
tier: 'beta',
why: 'one certified project plays a skeleton; the runtime is a side module a project opts into',
whyZh: '只有一个被认证的项目在播骨骼;运行时是项目自行选用的 side module',
@@ -141,6 +170,7 @@ export const SUBSYSTEMS = [
id: 'audio',
title: 'Audio',
titleZh: '音频',
+ source: ['audio'],
tier: 'beta',
why: 'a certified run drives a loop and reads the master bus analyser, so a break is noticed — but the corpus reaches a handful of twenty-three audio symbols',
whyZh: '已有被认证的运行会驱动一个循环并读取 master 总线的 analyser,所以它坏了会被发现——但语料只触到 23 个音频符号里的少数几个',
@@ -150,6 +180,7 @@ export const SUBSYSTEMS = [
id: 'animation',
title: 'Animation & timeline',
titleZh: '动画与时间轴',
+ source: ['animation', 'timeline'],
tier: 'beta',
why: 'sprite-animation now certifies it end to end, but the corpus reaches two of eighty animation symbols and the timeline half of them is untouched',
whyZh: 'sprite-animation 现在端到端认证了它,但语料只触到 80 个动画符号里的 2 个,而其中时间轴那一半完全没被碰过',
@@ -159,6 +190,7 @@ export const SUBSYSTEMS = [
id: 'tilemap',
title: 'Tilemap',
titleZh: '瓦片地图',
+ source: ['tilemap'],
tier: 'experimental',
why: 'certified end to end by two games, but the runtime surface has not been read for a tier yet',
whyZh: '有两个游戏端到端认证了它,但它的运行时面还没有被拿来定级',
@@ -168,6 +200,7 @@ export const SUBSYSTEMS = [
id: 'particles',
title: 'Particles',
titleZh: '粒子',
+ source: ['particle', 'trail'],
tier: 'experimental',
why: 'as tilemap — exercised by a certified game, not yet read for a tier',
whyZh: '同瓦片地图 —— 有被认证的游戏在用,但还没被拿来定级',
@@ -177,6 +210,7 @@ export const SUBSYSTEMS = [
id: 'video',
title: 'Video',
titleZh: '视频',
+ source: ['video'],
tier: 'experimental',
why: 'the platform paths differ enough that the surface is still converging',
whyZh: '各平台路径差异仍大,这套面还在收敛',
@@ -186,6 +220,7 @@ export const SUBSYSTEMS = [
id: 'ai',
title: 'AI — navigation, FSM, behaviour trees',
titleZh: 'AI —— 导航、状态机、行为树',
+ source: ['ai'],
tier: 'experimental',
why: 'deliberately after the rest: 0.50 freezes what a game is built OUT of, and the layers built ON that come once those are settled',
whyZh: '刻意排在后面:0.50 冻的是「一个游戏由什么构成」,建立在其上的层要等下面这些定下来',
@@ -195,6 +230,7 @@ export const SUBSYSTEMS = [
id: 'networking',
title: 'Networking & replication',
titleZh: '网络与状态复制',
+ source: ['net'],
tier: 'experimental',
why: 'as AI — the high-level layer waits on the layers under it',
whyZh: '同 AI —— 高层要等它下面的层',
@@ -204,9 +240,70 @@ export const SUBSYSTEMS = [
id: 'rendering',
title: 'Materials, lighting, post-processing',
titleZh: '材质、光照、后处理',
+ source: ['render', 'postprocess'],
tier: 'experimental',
why: 'as AI — and the render graph behind it is still moving',
whyZh: '同 AI —— 而且它背后的 render graph 还在动',
entry: ['Material', 'Light', 'PostProcessStack'],
},
+ {
+ id: 'physics-3d',
+ title: '3D physics',
+ titleZh: '3D 物理',
+ source: ['physics3d'],
+ tier: 'experimental',
+ why: 'its door — the plugin, the world resource, the contact events — reached no entry until this release, so nothing has yet built on the half a game actually calls',
+ whyZh: '它的门(插件、世界资源、碰撞事件)到这个版本才第一次进入口,所以游戏真正会调用的那一半还没有被任何东西建立在上面',
+ entry: ['RigidBody3D', 'Physics3D', 'Physics3DPlugin', 'CharacterController3D'],
+ },
+ {
+ id: 'mesh',
+ title: '3D models & skinning',
+ titleZh: '3D 模型与蒙皮',
+ source: ['render'],
+ tier: 'experimental',
+ why: 'the import chain is certified end to end, but the runtime surface a game drives a model through — geometry, materials per submesh, joint entities — has not been read for a tier',
+ whyZh: '导入链路已经端到端认证,但游戏用来驱动模型的运行时面(几何体、逐子网格材质、关节实体)还没有被拿来定级',
+ entry: ['MeshRenderer', 'MeshRendererAPI', 'MeshRenderers'],
+ },
+ {
+ id: 'dragonbones',
+ title: 'DragonBones',
+ titleZh: 'DragonBones',
+ source: ['dragonbones'],
+ tier: 'experimental',
+ why: 'the second 2D skeletal runtime, and the one no certified game animates with — Spine carries that evidence and this shares none of it',
+ whyZh: '第二个 2D 骨骼运行时,也是没有任何被认证的游戏在用的那个 —— 证据在 Spine 那边,这边一点也没分到',
+ entry: ['DragonBonesAnimation', 'DragonBonesPlugin'],
+ },
+ {
+ id: 'math',
+ title: 'Math',
+ titleZh: '数学库',
+ source: ['math'],
+ tier: 'experimental',
+ why: 'the TYPES are frozen — Vec2, Vec3, Quat are @public and a Transform is made of them — but the operations over them are not, and a verdict has to name the weaker half',
+ whyZh: '类型本身已冻结 —— Vec2、Vec3、Quat 是 @public,Transform 就是由它们构成的 —— 但它们之上的运算没有,而判决必须按更弱的那一半来说',
+ entry: ['vec2', 'vec3', 'quat'],
+ },
+ {
+ id: 'i18n',
+ title: 'Localization',
+ titleZh: '本地化',
+ source: ['i18n'],
+ tier: 'experimental',
+ why: 'certified end to end by one game, whose use is a locale and a key lookup; the plural, formatting and fallback surface around that has no consumer',
+ whyZh: '有一个游戏端到端认证了它,但用到的只是「切语言 + 查 key」;围绕它的复数、格式化、回退这一圈没有任何消费者',
+ entry: ['Localization', 'LocalizationAPI', 'LocalizationPlugin'],
+ },
+ {
+ id: 'services',
+ title: 'Platform services',
+ titleZh: '平台服务',
+ source: ['services'],
+ tier: 'experimental',
+ why: 'each service is a contract with a store rather than with the engine, and the ones behind it differ enough that the shared shape is still being found',
+ whyZh: '每个服务都是与某个平台的契约而非与引擎的契约,而它们之间的差异大到共同形状还没找出来',
+ entry: ['Ads', 'Achievements', 'Identity'],
+ },
];
diff --git a/tools/check-data-tiers.mjs b/tools/check-data-tiers.mjs
new file mode 100644
index 000000000..0149e943a
--- /dev/null
+++ b/tools/check-data-tiers.mjs
@@ -0,0 +1,58 @@
+#!/usr/bin/env node
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
+/**
+ * @file check-data-tiers.mjs — a component's promise covers the shape you write.
+ * @details `@beta` on a component says "shipping and supported; the shape may still
+ * adjust". Fourteen components carried that while the `<Name>Data` interface
+ * describing their fields carried `@experimental` — "may change or disappear
+ * in any release". Together those are not two verdicts, they are one empty
+ * one: a component IS its fields, and a creator promised the component and
+ * not the shape has been promised nothing.
+ *
+ * None of the fourteen was a decision. Untagged is Experimental by design,
+ * so a Data interface reached that tier by nobody writing a line — which is
+ * exactly the drift the tier system exists to make impossible, arriving
+ * through the one door it left open.
+ *
+ * Run: node tools/check-data-tiers.mjs (exit 1 on a promise that does not cover)
+ */
+import { readFileSync, existsSync } from 'node:fs';
+import { join } from 'node:path';
+import { ETC, ENTRIES } from './lib/sdkProgram.mjs';
+import { parseSnapshot, TIERS } from './lib/apiSnapshot.mjs';
+
+/** Symbol -> the strongest tier any entry gives it, matching how the surface reads. */
+const rank = Object.fromEntries(TIERS.map((t, i) => [t, i]));
+const tier = new Map();
+for (const entry of Object.keys(ENTRIES)) {
+ const file = join(ETC, `${entry}.api.md`);
+ if (!existsSync(file)) continue;
+ for (const [name, s] of parseSnapshot(readFileSync(file, 'utf8'))) {
+ const seen = tier.get(name);
+ if (!seen || (rank[s.tier] ?? 9) < (rank[seen] ?? 9)) tier.set(name, s.tier);
+ }
+}
+
+const problems = [];
+let pairs = 0;
+for (const [name, t] of tier) {
+ if (!name.endsWith('Data')) continue;
+ const component = name.slice(0, -4);
+ const owner = tier.get(component);
+ if (!owner) continue;
+ pairs++;
+ if ((rank[t] ?? 9) > (rank[owner] ?? 9)) {
+ problems.push(`${component} is @${owner} but ${name} — the fields you write into it — is @${t}`);
+ }
+}
+
+if (problems.length) {
+ console.error('check-data-tiers: a promise that does not cover the shape it is about.\n');
+ for (const p of problems) console.error(` ${p}`);
+ console.error('\nTag the interface to match (`stability=` at the ES_COMPONENT site for a '
+ + 'generated one), or lower the component to what its shape can back.');
+ process.exit(1);
+}
+
+console.log(`check-data-tiers: ${pairs} component/Data pair(s), each promised as one thing.`);
diff --git a/tools/check-subsystem-tiers.mjs b/tools/check-subsystem-tiers.mjs
index 7fb7854ca..9ab1f4c2b 100644
--- a/tools/check-subsystem-tiers.mjs
+++ b/tools/check-subsystem-tiers.mjs
@@ -13,13 +13,19 @@
* carry the tier it claims — and each must still be an exported symbol, because a
* verdict resting on a name that no longer exists rests on nothing.
*
+ * Then the same question backwards, which is the half that was missing: every
+ * directory under sdk/src belongs to a row or is declared infrastructure. Read
+ * only forwards, the table stayed green through the arrival of a whole dimension
+ * — physics3d/ shipped for four releases with no verdict naming it, and a table
+ * silent about a subsystem reads exactly like a table that has none.
+ *
* node tools/check-subsystem-tiers.mjs
*/
-import { readFileSync, existsSync } from 'node:fs';
+import { readFileSync, existsSync, readdirSync } from 'node:fs';
import { join } from 'node:path';
-import { ETC, ENTRIES } from './lib/sdkProgram.mjs';
+import { ETC, ENTRIES, SDK } from './lib/sdkProgram.mjs';
import { parseSnapshot, TIERS } from './lib/apiSnapshot.mjs';
-import { SUBSYSTEMS } from './apiSubsystems.mjs';
+import { SUBSYSTEMS, INFRASTRUCTURE } from './apiSubsystems.mjs';
/** Every symbol across every entry, keeping the strongest tier any entry gives it. */
function surface() {
@@ -69,13 +75,41 @@ for (const sub of SUBSYSTEMS) {
}
}
+const claimed = new Map();
+for (const sub of SUBSYSTEMS) {
+ if (!sub.source?.length) {
+ problems.push(`"${sub.id}" claims no source directory — then nothing says what it speaks for`);
+ continue;
+ }
+ for (const dir of sub.source) {
+ if (!existsSync(join(SDK, 'src', dir))) {
+ problems.push(`"${sub.id}" speaks for sdk/src/${dir}, which does not exist`);
+ }
+ if (!claimed.has(dir)) claimed.set(dir, []);
+ claimed.get(dir).push(sub.id);
+ }
+}
+
+for (const dir of readdirSync(join(SDK, 'src'), { withFileTypes: true })) {
+ if (!dir.isDirectory()) continue;
+ if (claimed.has(dir.name) || dir.name in INFRASTRUCTURE) continue;
+ problems.push(`sdk/src/${dir.name} belongs to no subsystem — give it a verdict, `
+ + 'or record it in INFRASTRUCTURE as something a creator never builds on');
+}
+for (const dir of Object.keys(INFRASTRUCTURE)) {
+ if (claimed.has(dir)) problems.push(`sdk/src/${dir} is both a subsystem's source and INFRASTRUCTURE`);
+ else if (!existsSync(join(SDK, 'src', dir))) problems.push(`INFRASTRUCTURE names sdk/src/${dir}, which is gone`);
+}
+
if (problems.length) {
- console.error('check-subsystem-tiers: the published verdicts and the tags disagree.\n');
+ console.error('check-subsystem-tiers: the table and the code disagree.\n');
for (const p of problems) console.error(` ${p}`);
- console.error('\nMove the tag, or move the verdict — but they are one answer.');
+ console.error('\nMove the tag, or move the verdict — but they are one answer, '
+ + 'and every part of the engine owes one.');
process.exit(1);
}
const by = (t) => SUBSYSTEMS.filter((s) => s.tier === t).length;
console.log(`check-subsystem-tiers: ${SUBSYSTEMS.length} subsystem(s) — `
- + `${by('public')} frozen, ${by('beta')} beta, ${by('experimental')} experimental, each backed by its tags.`);
+ + `${by('public')} frozen, ${by('beta')} beta, ${by('experimental')} experimental, each backed by its tags; `
+ + `${claimed.size} source dir(s) spoken for, ${Object.keys(INFRASTRUCTURE).length} declared infrastructure.`);
diff --git a/tools/gates.mjs b/tools/gates.mjs
index 6ac32f4c7..5a00cb7c7 100644
--- a/tools/gates.mjs
+++ b/tools/gates.mjs
@@ -52,6 +52,9 @@ export const GATES = [
// subsystem whose plugin reaches no entry is one the engine has and a game
// cannot add — which is what 3D physics was for four releases.
{ id: 'plugin-door', run: 'node tools/check-plugin-door.mjs' },
+ // A component tagged @beta whose Data interface is untagged promises the name
+ // and not the fields, which is no promise at all.
+ { id: 'data-tiers', run: 'node tools/check-data-tiers.mjs' },
// The SDK's tiers are enforced by the three gates above. The editor plugin API
// has no snapshot to enforce, so what is enforced there is the ANSWER: that it
// is experimental, said the same way in every place someone reads it.