Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/forgrabbit/thuai-8 into …
Browse files Browse the repository at this point in the history
…develop
  • Loading branch information
forgrabbit committed Dec 13, 2024
2 parents 23eaa91 + d59f059 commit 12c1b66
Showing 1 changed file with 51 additions and 4 deletions.
55 changes: 51 additions & 4 deletions docs/api/asyncapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ channels:
$ref: '#/components/messages/BattleUpdate' # 战斗信息更新
BuffSelect:
$ref: '#/components/messages/BuffSelect' # 加成选择
Map:
$ref: '#/components/messages/InitialMap' # 地图信息


operations:
Expand Down Expand Up @@ -172,10 +174,19 @@ components:
position:
$ref: '#/components/schemas/Position'
additionalProperties: false
mapSize: # 新增的地图大小属性
type: integer
example: 100

mapSize:
type: object
additionalProperties: false
properties:
width:
type: integer
example: 100
height:
type: integer
example: 100
required:
- width
- height

AvailableBuffs:
title: "AvailableBuffs"
Expand Down Expand Up @@ -256,6 +267,42 @@ components:
buff:
$ref: '#/components/schemas/BuffName'

InitialMap:
title: "InitialMap"
summary: "初始地图信息"
payload:
type: object
additionalProperties: false
required:
- messageType
- mapSize
- walls
properties:
messageType:
type: string
const: INITIAL_MAP
mapSize:
type: object
additionalProperties: false
properties:
width:
type: integer
example: 100
height:
type: integer
example: 100
required:
- width
- height
walls:
type: array
description: "初始墙体列表"
items:
$ref: '#/components/schemas/Wall'




Error:
title: "Error"
summary: "错误信息"
Expand Down

0 comments on commit 12c1b66

Please sign in to comment.