docs: add protocol/mode fields to plugin development guide
This commit is contained in:
+5
-1
@@ -17,6 +17,8 @@ games/user/my_game/
|
||||
"id": "my_game",
|
||||
"name": "我的游戏",
|
||||
"parser_type": "forza",
|
||||
"protocol": "udp",
|
||||
"mode": "server",
|
||||
"description": "自定义游戏遥测",
|
||||
"author": "你的名字",
|
||||
"version": "1.0.0",
|
||||
@@ -29,10 +31,12 @@ games/user/my_game/
|
||||
| `id` | string | 是 | 唯一标识,= 文件夹名 |
|
||||
| `name` | string | 是 | 显示名称 |
|
||||
| `parser_type` | string | 是 | 解析器类型标签 |
|
||||
| `protocol` | string | 否 | 传输协议: `udp`(默认) / `tcp` |
|
||||
| `mode` | string | 否 | TCP模式: `server`(框架监听) / `client`(插件自连) |
|
||||
| `description` | string | 否 | 描述文字 |
|
||||
| `author` | string | 否 | 作者 |
|
||||
| `version` | string | 否 | 版本号 |
|
||||
| `default_port` | int | 否 | 默认 UDP 端口 (默认 20777) |
|
||||
| `default_port` | int | 否 | 默认端口 (UDP默认20777, TCP默认20778) |
|
||||
|
||||
## parser.py 规范
|
||||
|
||||
|
||||
Reference in New Issue
Block a user