{
  "schemaVersion": 1,
  "atomId": "slide_out_to_tray_animation.aicomponent",
  "bundleType": "aicomponent",
  "category": "animation",
  "mode": "fixed",
  "label": {
    "zh": "滑出棋盘+飞入篮子两阶段动画",
    "en": "Slide-out + fly-to-tray two-phase animation"
  },
  "tags": ["animation", "slide-out", "fly", "tray", "bezier", "tween", "path", "arrow", "threejs", "3d"],
  "bindingRoles": ["slideOutToTrayAnimation"],
  "engineVariants": {
    "phaser": {
      "imports": ["phaser.aicomponent", "tray_container.aicomponent", "grid_board_layout.aicomponent"],
      "scaffoldFiles": {
        "src/game/ui/AnimationManager.ts": { "source": "ref/AnimationManager.ts", "mode": "full", "weight": 10 }
      }
    },
    "threejs": {
      "imports": ["threejs.aicomponent", "tray_container.aicomponent", "grid_board_layout.aicomponent"],
      "scaffoldFiles": {
        "src/game/ui/AnimationManager3D.ts": { "source": "ref/AnimationManager3D.ts", "mode": "full", "weight": 10 },
        "src/game/utils/BezierUtils.ts": { "source": "ref/BezierUtils.ts", "mode": "full", "weight": 10 }
      }
    }
  },
  "imports": [
    { "slot": "engine",      "pinAtomId": "phaser.aicomponent",             "edgeKind": "requires", "bindAs": "engine" },
    { "slot": "tray",        "pinAtomId": "tray_container.aicomponent",     "edgeKind": "requires", "bindAs": "tray" },
    { "slot": "boardLayout", "pinAtomId": "grid_board_layout.aicomponent",  "edgeKind": "requires", "bindAs": "boardLayout" }
  ],
  "binding": {
    "role": "slideOutToTrayAnimation",
    "target": "src/game/ui/AnimationManager.ts",
    "type": "code-module-reference"
  },
  "exports": [
    { "name": "AnimationManager", "kind": "class", "location": "src/game/ui/AnimationManager.ts" },
    { "name": "AnimationManager3D", "kind": "class", "location": "src/game/ui/AnimationManager3D.ts" },
    { "name": "BezierUtils", "kind": "module", "location": "src/game/utils/BezierUtils.ts" }
  ],
  "neutralDescriptor": {
    "geometry": "two-phase animation: slide path along direction until off-board, then fly head entity along bezier curve to tray target position",
    "layers": ["animation-sequencing", "bezier-interpolation", "easing"],
    "replaceable": ["slide duration", "fly duration", "arc height", "easing function"]
  },
  "usageHints": [
    "两阶段动画：阶段1 整条路径沿方向滑出棋盘，阶段2 head 实体沿贝塞尔曲线飞入篮子",
    "AnimationManager3D 需要每帧调用 update(dt) 驱动动画",
    "3D 模式飞入弧线天然有 Y 轴高度（抛物线），视觉效果比 2D 更自然",
    "BezierUtils.ts 提供纯数学贝塞尔插值，两端引擎实现均可复用"
  ],
  "files": {
    "skill": "SKILL.md",
    "ref": ["ref/AnimationManager.ts", "ref/AnimationManager3D.ts", "ref/BezierUtils.ts"]
  }
}
