Mass Battle Frameworkv1.20.0

文档 Documentation

API REFERENCE

写给人和他的 agent 一起读 · 284 页 · 按模块索引Written for you and your agent · 284 pages · indexed by module

这套文档和源码放在一起读才有用:源码告诉你这里怎么写,文档告诉你为什么必须这么写、哪些规矩不能破。所以最好让读它的人和读它的 agent 读同一份东西——你拿判据,它拿判据加范式。读完再让它把反复出现的写法总结成一份按你玩法定制的 skill:插件给的是底座,面面俱到的文档不存在,而一份贴合你项目的 skill 会比任何固定文档都准。博客里那些“为什么不那样做”的文章,是这条路的另一半。

These docs only work read next to the source: the source shows how it is written, the docs show why it has to be written that way and which rules cannot break. So the human and the agent should read the same thing — you take the criteria, it takes the criteria plus the patterns. Then have it fold the shapes that repeat into a skill shaped by your own game: the plugin is a base, a document that covers everything does not exist, and a skill fitted to your project beats any fixed text. The blog posts about why not the other way are the other half of this road.

API 参考 API Reference

这里是左侧目录的入口:一个模块一张卡,点进去就是该模块的头文件树。全站 284 页,左侧目录按模块折叠、支持搜索,/ 聚焦搜索框,右上角切换中英显示(偏好会记住)。每页都源自真实源码(.h/.cpp 及其注释):函数写明用途、逐参数输入与输出(返回值 + 副作用),成员变量写明类型与默认值。

This page is the entry to the sidebar: one card per module, and each opens that module's header tree. 284 pages in all; the sidebar nests by module and is searchable, / focuses the search box, and the top-right menu toggles Chinese/English (the choice is remembered). Every page is derived from the real source (.h/.cpp and their comments): functions document their purpose, per-parameter input and output (return value + side effects); members document type and default.

最常翻的三页:Agent Config(兵种参数)· Subsystem(生成、伤害、宿主等蓝图函数入口)· FuncLib(查询与工具的静态函数)。

The three pages people open most: Agent Config (unit parameters) · Subsystem (the Blueprint entry points for spawning, damage, hosts) · FuncLib (static query and utility functions).

六个数据资产:Agent Config(兵种)· ATT(Anim-to-Texture,网格烘焙产物:材质槽、动画带、骨骼与 VAT 流)· ATA(Anim-to-Atlas,sprite 烘焙源资产,在 Editor 模块)· Projectile Config(投射物)· Loot Config(掉落)· DataAssetBase(共同基类)。运行时五个在左侧 MassBattle → DataAssets,ATA 在 MassBattleEditor → SpritePrep。

The six DataAssets: Agent Config (units) · ATT (Anim-to-Texture, the mesh bake output: material slots, animation bands, skeleton and VAT streams) · ATA (Anim-to-Atlas, the sprite bake source asset, in the Editor module) · Projectile Config · Loot Config · DataAssetBase (the shared base). The five runtime ones sit under MassBattle → DataAssets; ATA sits under MassBattleEditor → SpritePrep.