@ -152,6 +152,8 @@ export interface TEENPATTIE {
}
export enum gameErrorCode {
/**错误踢出 */
KickOut = -1000100,
/**房间不存在 */
NotRoom = -1000103,
/**房间人数已满 */
@ -114,6 +114,9 @@ export class TeenpattieGameProxySystem extends Component {
//玩家加入游戏
private onPlayerJoinGame(value: any) {
switch(value.code){
case gameErrorCode.KickOut:
this.exitTip()
return
case gameErrorCode.NotRoom:
this.exitTip("game.net.code.status.5")