Skip to content

Commit

Permalink
add Initial Map
Browse files Browse the repository at this point in the history
  • Loading branch information
vect-G committed Dec 13, 2024
1 parent 4bf0e79 commit 376eb36
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 376eb36

Please sign in to comment.