-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdoc_game.txt
34 lines (26 loc) · 1.39 KB
/
doc_game.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
==================== 游戏文档格式说明 ====================
https://www.yuque.com/iohao/game/irth38#cJLdC
==================== SpringAction 这是一个spring管理的action的demo ====================
路由: 2 - 0 --- 【spring 示例方法】 --- 【SpringAction:49】【here】
方法参数: com.game.firstgameserver.game.msg.HelloSpringMsg
方法返回值: com.game.firstgameserver.game.msg.HelloSpringMsg
==================== SearchroomAction 房间相关 ====================
路由: 8 - 2 --- 【创建房间方法】 --- 【CreateRoomAction:39】【create】
触发异常: (方法有可能会触发异常)
方法参数: com.game.firstgameserver.game.msg.UserCreateRoom
方法返回值: IntPb
路由: 8 - 3 --- 【】 --- 【SearchroomAction:23】【search】
方法返回值: com.game.firstgameserver.game.msg.PlayroomList
==================== LoginAction 用户登录有关事务 ====================
路由: 15 - 0 --- 【登录方法】 --- 【LoginAction:39】【login】
方法参数: com.game.firstgameserver.game.msg.UserLogin
方法返回值: com.game.firstgameserver.game.msg.UserInfo
==================== 错误码 ====================
-1007 : 强制玩家下线
-1006 : 数据不存在
-1005 : class 不存在
-1004 : 请先登录
-1003 : 心跳超时相关
-1002 : 路由错误
-1001 : 参数验错误
-1000 : 系统其它错误