From 4becc26e4575655eb6a6fbcd1a40fefcc54c7423 Mon Sep 17 00:00:00 2001 From: AskaEth Date: Mon, 27 Jul 2026 19:13:00 +0800 Subject: [PATCH] docs: add protocol/mode fields to plugin development guide --- docs/PLUGIN_DEV.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/PLUGIN_DEV.md b/docs/PLUGIN_DEV.md index 7248336..e3d22dc 100644 --- a/docs/PLUGIN_DEV.md +++ b/docs/PLUGIN_DEV.md @@ -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 规范