【更新】完善 README.md中关于group的例子
parent
cba05fb037
commit
fb3416441e
|
|
@ -435,7 +435,7 @@ luban同时支持两种级别的分组:
|
|||
|
||||
< table name="xxx" group="<group1>,<group2>..." >
|
||||
|
||||
例如: TbItemFunc表只给客户端使用。
|
||||
例如: TbDemoGroup_C表只给客户端使用, TbDemoGroup_S只能服务器使用, TbDemoGroup_E只给editor使用。
|
||||
定义如下:
|
||||
|
||||

|
||||
|
|
@ -446,7 +446,7 @@ luban同时支持两种级别的分组:
|
|||
|
||||
<var name="xxx" group="<group1>,<group2> ..." />
|
||||
|
||||
例如, Item表中 major_type 字段前后端都需要;max_pile_num 只有后端需要;icon字段只有前端需要。
|
||||
例如, TbDemoGroup表中 id,x1,x4 字段前后端都需要; x3 只有后端需要;x2 字段只有前端需要。x5是bean类型,它导出给前后端,但它的子字段也可以被分组过滤, x5.y1, x2.y4前后端都会导出,x5.x3只导出给后端,x5.x2只导出给前端。
|
||||
定义如下:
|
||||
|
||||

|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 34 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 49 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 12 KiB |
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
## 安装
|
||||
|
||||
1. dotnet sdk 3.1 (已安装的可跳过)
|
||||
2. 下载 luban.client&luban.server (从 luban 项目的 release 找到最新)
|
||||
1. dotnet sdk 5.0 (已安装的可跳过)
|
||||
2. 下载 luban.client&luban.server ,来自[luban_examples](https://github.com/focus-creative-games/luban_examples) 的 Tools目录
|
||||
3. 启动 luban.server
|
||||
直接双击 运行即可。运行生成脚本需要连接到 luban.server,请保持它运行。
|
||||
|
||||
|
|
@ -79,9 +79,10 @@
|
|||
拷贝示例项目中 Csharp_DotNetCore_bin\Core 目录到项目中,可以自由组织位置。
|
||||
此时尝试编译项目,理论上应该能成功编译。
|
||||
2. 运行生成命令
|
||||
<从 luban 项目 release 中下载的 lua.client 程序的路径>
|
||||
|
||||
```
|
||||
|
||||
```bat
|
||||
<luban.client>
|
||||
-h 127.0.0.1 ^
|
||||
-p 8899 ^
|
||||
-j cfg ^
|
||||
|
|
@ -95,12 +96,21 @@
|
|||
--gen_types "code_cs_bin,data_bin"
|
||||
```
|
||||
|
||||

|
||||
**============提醒=============**
|
||||
|
||||
**如果你们项目使用json导出格式,需要将 --gen_types的参数改为 "code_cs_json,data_json"**
|
||||
|
||||
**如果你们项目使用typescript并且json导出格式,需要将 --gen_types的参数改为 "code_typescript_json, data_json"**
|
||||
|
||||
更多语言或者导出类型的组合,请参考 [luban_examples](https://github.com/focus-creative-games/luban_examples)
|
||||
|
||||
**=============================**
|
||||
|
||||
如果一切正常,会产生一系列日志,最终一行是 == succ == 。
|
||||

|
||||
|
||||
如果遇到 类似这样的错误,说明服务器未启动。 双击启动 luban.server 即可。
|
||||
|
||||

|
||||
|
||||
如果一切顺利。生成的代码文件会在 –output_code_dir 参数指定的 目录中,生成的配置数据会在 –output_data_dir 参数指定的目录中。
|
||||
|
|
|
|||
Loading…
Reference in New Issue