Files
game-driver/game.md

78 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 特殊游戏节点报文
## 入口0
入口处不需要任何额外的处理
```json lines
{}
```
## 召唤神女1
```json lines
{
// 等待30s
"wait": 30
}
```
## 镇水神力2
```json lines
{
// 播放文件地址,支持 file:// 本地文件地址、 http(s):// 远程文件地址
"video": "",
}
```
## 神女除妖3
除妖处不需要任何额外的处理,待游戏自然完成即可
```json lines
{}
```
## 神女授书4
参照 [请求响应文档](https://www.emqx.com/zh/blog/mqtt5-request-response),发送附带`ResponseTopic`,并订阅`ResponseTopic`
,才能接收到响应结果
### RequestPayload
```json lines
{
// 发卡执行时间,单位秒
"action": 0,
// 等待时间,单位秒
"wait": 10
}
```
### ResponsePayload
```json lines
{
// 空卡设备数量
"empty": 0,
// 错误设备数量
"error": 0,
// 发卡是否成功1为成功0为失败
"out_ok": 0
}
```
若`out_ok``empty``error`都为`0`,很有可能两台机器发卡口都被堵住了,需要人工处理。
发卡口堵住不属于`error`,不会在`error`里计数体现。
## 青云龙台5
待定
```json lines
{
}
```