<< All versions

Skill v1.0.0

currentAutomated scan100/100
focus-creative-games/luban/luban-runtime-load
──Details
PublishedOctober 15, 2026 at 04:32 PM
Content Hashsha256:081d0b08c9f60902...
Git SHA029f714f935b
──Files
Files (1 file, 852 B)
SKILL.md852 Bactive
SKILL.md · 30 lines · 852 B

version: "1.0.0" name: luban-runtime-load description: Guides Luban runtime Tables loading patterns for C#/other languages. Use when integrating generated code, choosing loader, or hot-reload/testing config load.


Luban: 运行时加载

推荐形态

csharp
var tables = new cfg.Tables(loader);
var item = tables.TbItem.Get(1001);
  • 一个 Tables 聚合所有表。
  • 避免每张表静态全局单例(热更/测试困难)。

Agent 检查点

  1. -c 与 -d 格式匹配(如 cs-bin+bin,cs-simple-json+json)。
  2. topModule / 命名空间与工程一致。
  3. loader 指向实际数据目录;Unity 注意 StreamingAssets/Addressables 约定。
  4. 客户端不要加载仅 s group 的字段/表。

参考

  • 运行时加载、生成目标、code-style 文档
  • 示例:luban_examples/Projects
All versions