godot-api
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGodot API Lookup
Godot API 查询
This skill is a narrow reference tool. Keep answers targeted to the caller's question.
Do not list or enumerate or . Those directories contain nearly a thousand files and listing them wastes context. Navigate through , , and the specific class file you actually need.
${GODOT_API_SKILL_DIR}/doc_api/${GODOT_API_SKILL_DIR}/doc_source/_common.md_other.md本技能是一款精准的参考工具。回答需紧扣提问者的问题。
请勿列出或枚举或目录。这些目录包含近千个文件,列出它们会浪费上下文信息。请通过、以及你实际需要的特定类文件进行查找。
${GODOT_API_SKILL_DIR}/doc_api/${GODOT_API_SKILL_DIR}/doc_source/_common.md_other.mdHow to answer
回答方式
- If you already know the class or likely class, search and
${GODOT_API_SKILL_DIR}/doc_api/_common.mdfor the class name instead of reading the whole index files._other.md - If the caller does not name a class, use and
${GODOT_API_SKILL_DIR}/doc_api/_common.mdto identify likely candidates, then read only the relevant docs._other.md - Read only the relevant file or files.
${GODOT_API_SKILL_DIR}/doc_api/{ClassName}.md - Return only what the caller needs:
- Specific question (for example, "how to detect collisions") -> return the relevant methods, signals, or patterns with short descriptions
- Full API request (for example, "full API for CharacterBody3D") -> return the whole class doc summary
C# syntax reference: — C# Godot syntax, patterns, and recipes. Read it when the caller asks about C# Godot syntax, idioms, or common patterns such as input handling, tweens, state machines, or signals.
${GODOT_API_SKILL_DIR}/csharp.mdBootstrap if is empty:
doc_apibash
bash ${GODOT_API_SKILL_DIR}/tools/ensure_doc_api.sh- 如果你已经知道目标类或可能的类,请在和
${GODOT_API_SKILL_DIR}/doc_api/_common.md中搜索类名,而非阅读整个索引文件。_other.md - 如果提问者未指定类,请使用和
${GODOT_API_SKILL_DIR}/doc_api/_common.md确定可能的候选类,然后仅阅读相关文档。_other.md - 仅阅读相关的文件。
${GODOT_API_SKILL_DIR}/doc_api/{ClassName}.md - 仅返回提问者需要的内容:
- 特定问题(例如“如何检测碰撞”)-> 返回相关方法、信号或模式,并附上简短说明
- 完整API请求(例如“CharacterBody3D的完整API”)-> 返回整个类文档摘要
C#语法参考: —— 包含Godot C#语法、模式和实用示例。当提问者询问Godot C#语法、惯用写法或常见模式(如输入处理、补间动画、状态机或信号)时,请查阅此文件。
${GODOT_API_SKILL_DIR}/csharp.md若目录为空,请执行以下命令初始化:
doc_apibash
bash ${GODOT_API_SKILL_DIR}/tools/ensure_doc_api.sh