cpp
Scaffold a complete Godot GDExtension C++ project with source, registration, SConstruct, and config files.
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.7。决定 godot-cpp clone ref 与 SConstruct api_version、.gdextension compatibility_minimum;4.6/4.7 走 godot-cpp master(v10)+api_version(无 godot-4.x-stable ref),4.4/4.5 用 godot-4.x-stable 分支。默认 4.7) | 4.7 |