后端 API 参考
Request Header:
Authorization: YOUR_TOKEN_HERE
1
/websocket
Unity WebSocket 连接地址
/attack
攻击特效
POST {
"From": 1,
"To": 2
}
1
2
3
4
2
3
4
/rank
设置排行
POST {
"Team": [
{
"Id": 0,
"Rank": 1,
"Score": 1000
},
{
"Id": 1,
"Rank": 2,
"Score": 900
}
]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
/status
队伍状态
POST {
"Id": 0,
"Status": "attacked"
}
1
2
3
4
2
3
4
attacked
被攻击down
被 Check Down
/round
设置轮数
POST {
"Round": 47
}
1
2
3
2
3
/easterEgg
陨石彩蛋动画
GET /time
设置当前轮数剩余时间
POST {
"Time": 300
}
1
2
3
2
3
单位:秒(s)
/clear
清除队伍状态
POST {
"Id": 0
}
1
2
3
2
3