cpp
Generate a complete Godot C++ GDExtension project skeleton with source files, registration, build config, and docs, matching the official example. No compilation or internet access needed.
Instructions
GDExtension (C++) 脚手架生成。scaffold_gdextension: 在 project_path 下生成完整可编译的 godot-cpp GDExtension 工程骨架(src/类.cpp/.h + register_types + SConstruct + .gdextension + .gitignore + README),不联网/不编译,对齐 godot-cpp 官方 example。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | 目标已存在且非空时是否覆盖(默认 false) | |
| action | Yes | 操作类型 | |
| class_name | No | 主类名(PascalCase,默认 Example) | Example |
| parent_class | No | 父类(Godot 内置类白名单,默认 Node) | Node |
| project_path | Yes | GDExtension 工程生成根目录(须在 ALLOWED_PROJECT_PATHS 内) | |
| godot_version | No | Godot 版本(4.4/4.5/4.6,决定 godot-cpp clone tag 与 .gdextension compatibility_minimum,默认 4.6) | 4.6 |