3232namespace GameFrameX . NetWork ;
3333
3434/// <summary>
35- /// 操作错误码
35+ /// Operation error codes
3636/// </summary>
37+ /// <remarks>操作错误码</remarks>
3738public static class OperationErrorCode
3839{
3940 /// <summary>
40- /// 成功
41+ /// Success
4142 /// </summary>
42- [ System . ComponentModel . Description ( "成功" ) ]
43+ /// <remarks>成功</remarks>
44+ [ System . ComponentModel . Description ( "Success / 成功" ) ]
4345 public const int Success = 0 ;
4446
4547 /// <summary>
46- /// 配置表错误
48+ /// Configuration error
4749 /// </summary>
48- [ System . ComponentModel . Description ( "配置表错误" ) ]
50+ /// <remarks>配置表错误</remarks>
51+ [ System . ComponentModel . Description ( "Configuration error / 配置表错误" ) ]
4952 public const int ConfigErr = 1 ;
5053
5154 /// <summary>
52- /// 参数错误
55+ /// Parameter error
5356 /// </summary>
54- [ System . ComponentModel . Description ( "客户端传递参数错误" ) ]
57+ /// <remarks>参数错误</remarks>
58+ [ System . ComponentModel . Description ( "Parameter error / 客户端传递参数错误" ) ]
5559 public const int ParamErr = 2 ;
5660
5761 /// <summary>
58- /// 消耗不足
62+ /// Insufficient cost
5963 /// </summary>
60- [ System . ComponentModel . Description ( "消耗不足" ) ]
64+ /// <remarks>消耗不足</remarks>
65+ [ System . ComponentModel . Description ( "Insufficient cost / 消耗不足" ) ]
6166 public const int CostNotEnough = 3 ;
6267
6368 /// <summary>
64- /// 未开通服务
69+ /// Service not enabled
6570 /// </summary>
66- [ System . ComponentModel . Description ( "未开通服务" ) ]
71+ /// <remarks>未开通服务</remarks>
72+ [ System . ComponentModel . Description ( "Service not enabled / 未开通服务" ) ]
6773 public const int Forbidden = 4 ;
6874
6975 /// <summary>
70- /// 不存在
76+ /// Not found
7177 /// </summary>
72- [ System . ComponentModel . Description ( "不存在" ) ]
78+ /// <remarks>不存在</remarks>
79+ [ System . ComponentModel . Description ( "Not found / 不存在" ) ]
7380 public const int NotFound = 5 ;
7481
7582 /// <summary>
76- /// 已经存在
83+ /// Already exists
7784 /// </summary>
78- [ System . ComponentModel . Description ( "已经存在" ) ]
85+ /// <remarks>已经存在</remarks>
86+ [ System . ComponentModel . Description ( "Already exists / 已经存在" ) ]
7987 public const int HasExist = 6 ;
8088
8189 /// <summary>
82- /// 账号不存在或为空
90+ /// Account cannot be null or empty
8391 /// </summary>
84- [ System . ComponentModel . Description ( "账号不存在或为空" ) ]
92+ /// <remarks>账号不存在或为空</remarks>
93+ [ System . ComponentModel . Description ( "Account cannot be null or empty / 账号不存在或为空" ) ]
8594 public const int AccountCannotBeNull = 7 ;
8695
8796 /// <summary>
88- /// 无法执行数据库修改
97+ /// Unable to execute database modification
8998 /// </summary>
90- [ System . ComponentModel . Description ( "无法执行数据库修改" ) ]
99+ /// <remarks>无法执行数据库修改</remarks>
100+ [ System . ComponentModel . Description ( "Unable to execute database modification / 无法执行数据库修改" ) ]
91101 public const int Unprocessable = 8 ;
92102
93103 /// <summary>
94- /// 未知平台
104+ /// Unknown platform
95105 /// </summary>
96- [ System . ComponentModel . Description ( "未知平台" ) ]
106+ /// <remarks>未知平台</remarks>
107+ [ System . ComponentModel . Description ( "Unknown platform / 未知平台" ) ]
97108 public const int UnknownPlatform = 9 ;
98109
99110 /// <summary>
100- /// 正常通知
111+ /// Normal notification
101112 /// </summary>
102- [ System . ComponentModel . Description ( "正常通知" ) ]
113+ /// <remarks>正常通知</remarks>
114+ [ System . ComponentModel . Description ( "Normal notification / 正常通知" ) ]
103115 public const int Notice = 10 ;
104116
105117 /// <summary>
106- /// 功能未开启,主消息屏蔽
118+ /// Function not enabled, main message blocked
107119 /// </summary>
108- [ System . ComponentModel . Description ( "功能未开启,主消息屏蔽" ) ]
120+ /// <remarks>功能未开启,主消息屏蔽</remarks>
121+ [ System . ComponentModel . Description ( "Function not enabled, main message blocked / 功能未开启,主消息屏蔽" ) ]
109122 public const int FuncNotOpen = 11 ;
110123
111124 /// <summary>
112- /// 其他
125+ /// Other
113126 /// </summary>
114- [ System . ComponentModel . Description ( "其他" ) ]
127+ /// <remarks>其他</remarks>
128+ [ System . ComponentModel . Description ( "Other / 其他" ) ]
115129 public const int Other = 12 ;
116130
117131 /// <summary>
118- /// 内部服务错误
132+ /// Internal server error
119133 /// </summary>
120- [ System . ComponentModel . Description ( "内部服务错误" ) ]
134+ /// <remarks>内部服务错误</remarks>
135+ [ System . ComponentModel . Description ( "Internal server error / 内部服务错误" ) ]
121136 public const int InternalServerError = 13 ;
122137
123138 /// <summary>
124- /// 通知客户端服务器人数已达上限
139+ /// Server fully loaded
125140 /// </summary>
126- [ System . ComponentModel . Description ( "通知客户端服务器人数已达上限" ) ]
141+ /// <remarks>通知客户端服务器人数已达上限</remarks>
142+ [ System . ComponentModel . Description ( "Server fully loaded / 通知客户端服务器人数已达上限" ) ]
127143 public const int ServerFullyLoaded = 14 ;
128144
129145 /// <summary>
130- /// 已经过期
146+ /// Has expired
131147 /// </summary>
132- [ System . ComponentModel . Description ( "已经过期" ) ]
148+ /// <remarks>已经过期</remarks>
149+ [ System . ComponentModel . Description ( "Has expired / 已经过期" ) ]
133150 public const int HasExpiration = 15 ;
134151
135152 /// <summary>
136- /// 角色未授权;直接踢下线
153+ /// Player unauthorized, kick offline directly
137154 /// </summary>
138- [ System . ComponentModel . Description ( "角色未授权;直接踢下线" ) ]
155+ /// <remarks>角色未授权;直接踢下线</remarks>
156+ [ System . ComponentModel . Description ( "Player unauthorized, kick offline directly / 角色未授权;直接踢下线" ) ]
139157 public const int PlayerUnauthorized = 16 ;
140158
141159 /// <summary>
142- /// 没有权限
160+ /// No permission
143161 /// </summary>
144- [ System . ComponentModel . Description ( "没有权限" ) ]
162+ /// <remarks>没有权限</remarks>
163+ [ System . ComponentModel . Description ( "No permission / 没有权限" ) ]
145164 public const int NoPermission = 17 ;
146165
147166 /// <summary>
148- /// 执行超时 / Execution timeout
167+ /// Execution timeout
149168 /// </summary>
150- [ System . ComponentModel . Description ( "执行超时" ) ]
169+ /// <remarks>执行超时</remarks>
170+ [ System . ComponentModel . Description ( "Execution timeout / 执行超时" ) ]
151171 public const int TimeOut = 18 ;
152172}
0 commit comments