Error:
{"type":"error", "des","invalid user"}
Success:
{"type":"success", ...}
登陆
/dc/login
request: {name, password}
reponse: {type, 'name':用户名, '_id', 'nickname':昵称, 'side': 阵营(0,1)(int), 'cards': [{
'power_add', 力量(int)
'in_team', 是否在战斗队伍(Boolean)
'intelligence_base', 智力基础(int)
'intelligence_add', 智力增加(int)
'type': 英雄类型,(int)
'power_base':基础力量(int)
'star': 星(int)
'leader_base':领导力,(int)
'agility_base': 基础敏捷,(int)
'agility_add': 敏捷增加(int)
'attack_max': 攻击最大, (int)
'attack_min': 攻击最低(int)
'formation_i': 位置i,(int)
'formation_j': 位置j,(int)
'burst_base': 暴击率, (int)
'desc': 描述,
'name': 卡片名称,
'card_id':(int)
'face': 图标,(int)
'range': 攻击范围, (int)
'skill_1': 技能1,(int)
'skill_2': 技能2, (int)
'skill_core': 核心技能,(int)
'_id': ,
'skill_leader': 领导技能}]}
注册
/dc/regist
request: {name, password}
response: {type,'_id':用户id}
昵称
/dc/info
request: { _id, nickname, side(int)}
response: 同login
加入队伍
/dc/join_team
request: {"_id":用户id, team: [{_id: 卡片id}]}
response: {type}
布阵
/dc/formation
request: {"_id":用户id, team: [{_id: 卡片id, formation_i: i行, formation_j: 列]}
response: {type}
战斗
/dc/pve
request: {"_id": 用户id}
response:
{ type:success,
battle : { [ {_id, hp, i, j} ,... ]}
round : [
play :[{_id,
action : [ move | fight | wait]
[move: ]
[fight: beated_id, beated_hp]
[wait: ]
}, ...], [...], [..] ],
winner: 0 or 1
}
相关推荐
libsignal-protocol-javascript示例有关“如何使用libsignal-protocol-javascript ?”的示例组件server.js index.html和scripts怎么跑使用以下节点运行服务器: node server.js 。 (我认为只需要ws ) 在浏览器中...
TCP/IP(Transmission Control Protocol/Internet Protocol)
Chapter 2 The OSI Model and the TCP/IP Protocol Suite 18 Chapter 3 Underlying Technologies 46 Part 2 Network Layer 93 Chapter 4 Introduction to Network Layer 94 Chapter 5 IPv4 Addresses 114 Chapter 6 ...
high-level protocol for CAN-bus H. Boterenbrood NIKHEF, Amsterdam March 20, 2000 Contents 1 INTRODUCTION ......... 2 2 CAL........... 2 3 CANOPEN .......... 3 3.1 CANOPEN OBJECT ...
Protocol Buffers What is it? Protocol Buffers are a way of encoding structured data in an efficient yet extensible format. Google uses Protocol Buffers for almost all of its internal RPC protocols and...
Protocol Buffers被定义为一种数据描述语言(Data Description Language,DDL),广泛的应用于Google内部,用于结构化数据的描述、传输和存储。尽管其功能和用途与XML基本相似,但是 Protocol Buffers更为轻便。...
C语言头文件 PROTOCOLC语言头文件 PROTOCOLC语言头文件 PROTOCOLC语言头文件 PROTOCOLC语言头文件 PROTOCOLC语言头文件 PROTOCOLC语言头文件 PROTOCOLC语言头文件 PROTOCOLC语言头文件 PROTOCOLC语言头文件 PROTOCOL...
The only book that shows how to harness the power of Protocol-Oriented Programming in Swift to build real-world applications, Get familiar with the protocol focused approach of application development...
OpenProtocol纯手写源码实例 /// /// 初始化连接 /// /// 是否开启TCP层KeepAlive功能 /// <returns></returns> public bool Init(bool KeepAlive) { try { if (mSocket != null) { Close(); } /...
网页通过 URL Protocol 协议调用本地程序。该程序将协议信息写到注册表中。
使用URL Protocol实现网页调用本地程序,通过不同参数,可进行不同操作,简单测试版。 在浏览器无法调用本地资源,项目需要网页打开本地excel,而进行URL Protocol研究测试。 无法编辑下载需要的分数,很抱歉。 所有...
PriceAction Protocol V2.0
IPv6是Internet Protocol Version 6的缩写,其中Internet Protocol译为“互联网协议”。IPv6是IETF(互联网工程任务组,Internet Engineering Task Force)设计的用于替代现行版本IP协议(IPv4)的下一代IP协议。...
FlexRay Communications System Protocol Specification Version 3.0.1
PF4000开放协议 Atlas_OpenProtocol_开放协议报文详解
google protocol buffers 官网中文教程
1.拧紧控制应用OpenProtocol 2.OpenProtocolInterpreter应用使用 3.正常连接枪控制
SNMP(Simple Network Management Protocol,简单网络管理协议)首先是由IETF的研究小组为了解决Internet上的路由器管理问题而提出的。SNMP的设计原则是简单性和扩展性。简单性是通过信息类型限制、请求响应或协议而...
Open Protocol is an interface for building applications for remote control or data subscription of controllers. It is platform independent and can be implemented on Linux, PLC, printers, and all ...
Embrace the Protocol-Oriented Programming paradigm, for better code maintainability and increased performance, with Swift programming. Protocol-oriented programming is an incredibly powerful concept ...