Skip to content

Commit 881147f

Browse files
committed
[更新]1. 更新协议类
1 parent 4cd5fef commit 881147f

File tree

2 files changed

+76
-0
lines changed

2 files changed

+76
-0
lines changed

Assets/Hotfix/Proto/Basic_10.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,13 @@ public sealed class NotifyHeartBeat : MessageObject, INotifyMessage, IHeartBeatM
3535

3636
}
3737

38+
/// <summary>
39+
/// 通知客户端服务器人数已达上限
40+
/// </summary>
41+
[ProtoContract]
42+
[MessageTypeHandler(655372)]
43+
public sealed class NotifyServerFullyLoaded : MessageObject, INotifyMessage
44+
{
45+
}
46+
3847
}

Assets/Hotfix/Proto/Common_20.cs

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,73 @@ public enum PhoneType
3939
Work = 2,
4040
}
4141

42+
/// <summary>
43+
/// 操作错误代码
44+
/// </summary>
45+
public enum OperationStatusCode
46+
{
47+
/// <summary>
48+
/// 成功
49+
/// </summary>
50+
Ok = 0,
51+
/// <summary>
52+
/// 配置表错误
53+
/// </summary>
54+
ConfigErr = 1,
55+
/// <summary>
56+
/// 客户端传递参数错误
57+
/// </summary>
58+
ParamErr = 2,
59+
/// <summary>
60+
/// 消耗不足
61+
/// </summary>
62+
CostNotEnough = 3,
63+
/// <summary>
64+
/// 未开通服务
65+
/// </summary>
66+
Forbidden = 4,
67+
/// <summary>
68+
/// 不存在
69+
/// </summary>
70+
NotFound = 5,
71+
/// <summary>
72+
/// 已经存在
73+
/// </summary>
74+
HasExist = 6,
75+
/// <summary>
76+
/// 账号不存在或为空
77+
/// </summary>
78+
AccountCannotBeNull = 7,
79+
/// <summary>
80+
/// 无法执行数据库修改
81+
/// </summary>
82+
Unprocessable = 8,
83+
/// <summary>
84+
/// 未知平台
85+
/// </summary>
86+
UnknownPlatform = 9,
87+
/// <summary>
88+
/// 正常通知
89+
/// </summary>
90+
Notice = 10,
91+
/// <summary>
92+
/// 功能未开启,主消息屏蔽
93+
/// </summary>
94+
FuncNotOpen = 11,
95+
/// <summary>
96+
/// 其他
97+
/// </summary>
98+
Other = 12,
99+
/// <summary>
100+
/// 内部服务错误
101+
/// </summary>
102+
InternalServerError = 13,
103+
/// <summary>
104+
/// 通知客户端服务器人数已达上限
105+
/// </summary>
106+
ServerFullyLoaded = 14,
107+
}
108+
42109
/// <summary>
43110
///
44111
/// </summary>

0 commit comments

Comments
 (0)