综述
Cursor / IDE 用 gtamodx skill 路由与边界
面向 写代码的 agent / 开发者:约束 API 边界、选对文档分区。
Skill
| Skill | 适用场景 |
|---|---|
| 插件 | ASI · plugin:: · Events · Patch · Pattern · 实体 C++ |
| XBase | 公共 API · Core 生命周期 · Host / Runtime / Platform · 三版本后端 |
| CLEO | opcode · Lua · Redux · CLEO+ / default / ext |
硬边界
| 需求 | 正确分区 | 别混 |
|---|---|---|
| XBase 公共功能 | XBase | 从宿主直接访问 plugin-sdk 指针或版本地址 |
| XBase 私有后端 | XBase + 插件 | 把底层类型泄漏到公共 API |
脚本 opcode(0A8C、createCar) | CLEO | 当 C++ 能编进 ASI |
| C++ 调 SCM | Command | 把 Lua/JS 贴进 .cpp |
| 调游戏函数 / 补丁 / 事件 | 插件 | 用 opcode 表替代 Call |
| 实体挂数据 | Extender | 和 CLEO handle 混用 |
文档入口
方法名与签名 以对应文档页为准,禁止臆造。