namespace Fantasy;

public class ErrorCode
{
    public const uint Successful = 0;

    /// <summary>
    /// 服务器上线失败
    /// </summary>
    public const uint OnlineSceneFailed = 1;

    /// <summary>
    /// 参数有误
    /// </summary>
    public const uint ErrArgs = 10001;

    /// <summary>
    /// 服务器有误
    /// </summary>
    public const uint ErrServer = 10002;

    /// <summary>
    /// 操作太频繁
    /// </summary>
    public const uint ErrFrequent = 10003;


    /// <summary>
    /// 账号已被注册
    /// </summary>
    public const uint ErrAccountHave = 11001;

    /// <summary>
    /// 账号或密码有误
    /// </summary>
    public const uint ErrAccountOrPass = 11002;

    /// <summary>
    /// 登录自动注册没有设置地区
    /// </summary>
    public const uint RegisterNotRegion = 11011;

    /// <summary>
    /// 聊天频道不存在
    /// </summary>
    public const uint ChatNotChannel = 12011;

    /// <summary>
    /// 没回复前不能再发消息
    /// </summary>
    public const uint MailNotReply = 12021;

    /// <summary>
    /// 创建房间失败，不在地图中
    /// </summary>
    public const uint MapCreateRoomNotEnter = 13001;

    /// <summary>
    /// 创建房间失败，房间数量超限
    /// </summary>
    public const uint MapCreateRoomMax = 13002;

    /// <summary>
    /// 房间id 错误
    /// </summary>
    public const uint MapRoomIdError = 13003;

    /// <summary>
    /// 已在房间，不能加入另一个
    /// </summary>
    public const uint MapRoomHave = 13004;

    /// <summary>
    /// 加入服务失败
    /// </summary>
    public const uint MapRoomEnterError = 13005;

    /// <summary>
    /// 重复加入失败
    /// </summary>
    public const uint MapRoomEnterRepeated = 13006;

    /// <summary>
    /// 地图id错误
    /// </summary>
    public const uint MapIdError = 13007;
}