local Lang = require("common.Lang")

---------------------------------------------渠道标识--------------------------

CHANNEL_TAG_MUZI = 1             -- 木子/tap安卓
CHANNEL_TAG_SANLI_ANDROID = 2    -- 三狸安卓
CHANNEL_TAG_SANLI_IOS = 3        -- 三狸iOS
CHANNEL_TAG_SANLI_QQ = 4         -- 三狸QQ大厅
CHANNEL_TAG_SANLI_H5= 5          -- 三狸H5
CHANNEL_TAG_SANLI_H5_4399 = 6    -- 三狸H5-4399
CHANNEL_TAG_SANLI_360 = 7        -- 三狸360小游戏
CHANNEL_TAG_SANLI_AIQI_H5 = 8    -- 艾七H5
CHANNEL_TAG_MUZI_IOS = 9         -- 木子/tap IOS
CHANNEL_TAG_SANLI_SHIYOU = 10    -- 三狸视游

CHANNEL_TAG_WX = 11              -- 微信小程序，抖音游戏, 圣扬IOS
CHANNEL_TAG_HP = 14              -- 虎扑
CHANNEL_TAG_720 = 15             -- 720
CHANNEL_TAG_MINNIGAME = 17       -- 美团, 华为, 淘宝
CHANNEL_TAG_FT = 18              -- 繁体

CHANNEL_TAG_GUILD1 = 23         -- 公会渠道1
CHANNEL_TAG_GUILD2 = 24         -- 公会渠道2

CHANNEL_TAG_VN = 27             -- 越南渠道
CHANNEL_TAG_XIAOQI = 28         -- 小七渠道


SEA_CHANNEL_ARR = {13, 18}  -- 海外渠道列表

----------------------------------------------------------------------------



MAX_ONLINE_COUNT = 5000 		--	最大同时在线人数

-- 断开连接提示码
DISCONNECT_NORMAL = 1			-- 正常断开连接
DISCONNECT_KICK_SINGLE = 2		-- 管理后台踢人（单独）
DISCONNECT_KICK_ALL = 3			-- 管理后台踢人（全服）
DISCONNECT_DUPLICATE = 4		-- 重复帐号登录
DISCONNECT_AUTH_FAIL = 5		-- 登录认证失败
DISCONNECT_NORMAL_AFTER = 6		-- 正常断开后几秒后销毁
DISCONNECT_MAX_ONLINE = 7		-- 最大登录人数限制
DISCONNECT_BANUSER = 8 			-- 封号
DISCONNECT_BANIP = 9 			-- 封IP
DISCONNECT_FCM_CHILD = 10 		-- 防沉迷（未成年达到每日时间上限）
DISCONNECT_FCM_HEALTH = 11 		-- 防沉迷（未成年/游客不得在22-08进行游戏）
DISCONNECT_BAN_ROLE  = 12       -- 封角色
DISCONNECT_BAN_APP  = 13        -- 封设备  

ZERO = 0.000000001

DISCONNECT_MSG = {}
DISCONNECT_MSG[DISCONNECT_NORMAL] = ""
DISCONNECT_MSG[DISCONNECT_KICK_SINGLE] = Lang.DISCONNECT_KICK_SINGLE
DISCONNECT_MSG[DISCONNECT_KICK_ALL] = Lang.DISCONNECT_KICK_ALL
DISCONNECT_MSG[DISCONNECT_DUPLICATE] = Lang.DISCONNECT_DUPLICATE
DISCONNECT_MSG[DISCONNECT_AUTH_FAIL] = Lang.DISCONNECT_AUTH_FAIL
DISCONNECT_MSG[DISCONNECT_NORMAL_AFTER] = ""
DISCONNECT_MSG[DISCONNECT_MAX_ONLINE] = Lang.DISCONNECT_MAX_ONLINE
DISCONNECT_MSG[DISCONNECT_BANUSER] = Lang.DISCONNECT_BANUSER
DISCONNECT_MSG[DISCONNECT_BANIP] = Lang.DISCONNECT_IP
DISCONNECT_MSG[DISCONNECT_FCM_CHILD] = ""
DISCONNECT_MSG[DISCONNECT_FCM_HEALTH] = ""

DISCONNECT_MSG[DISCONNECT_BAN_ROLE] = Lang.BAN_ROLE
DISCONNECT_MSG[DISCONNECT_BAN_APP] = Lang.BAN_APP

COMMON_SERVER_OFFSET = 810538   -- 配置中服务器ID偏移量

------------------ 通用排行榜大类型定义开始 ---------------------------
COMMONRANK_TYPE_MIN = 1                                     -- 最小类型
COMMONRANK_TYPE_WEEKRANK = 1                                -- 周活动排行榜类型
COMMONRANK_TYPE_SERVERCOMMERCE = 2                          -- 跨服商业活动排行榜
COMMONRANK_TYPE_MAX = COMMONRANK_TYPE_SERVERCOMMERCE        -- 最大类型
------------------ 通用排行榜大类型定义结束 ---------------------------

------------------ 通用排行榜小类型定义开始 ---------------------------
COMMONRANK_SUB_TYPE_MIN = 1
COMMONRANK_SUB_TYPE_SERVERCOMMERCE_SERVER   = 1             -- 跨服商业活动排行榜 - 服务器排行
COMMONRANK_SUB_TYPE_SERVERCOMMERCE_HUMAN    = 2             -- 跨服商业活动排行榜 - 个人排行
COMMONRANK_SUB_TYPE_MAX = 2
------------------ 通用排行榜小类型定义结束 ---------------------------

------------------ 通用排行榜发送数据长度开始 ---------------------------
COMMONRANK_SENDPRIZE_LEN = 21                               -- 上榜发送奖励排名数
COMMONRANK_SAVE_DB_LEN = 50                                 -- 存库玩家长度
COMMONRANK_ONE_SEND_LEN = 10                                -- 排行榜一次同步数据长度
------------------ 通用排行榜发送数据长度结束 ---------------------------

------------------ 通用排行榜value值操作定义开始 ---------------------------
COMMONRANK_VALUE_ADD        = 1                 -- 增加
COMMONRANK_VALUE_REPLACE    = 2                 -- 替换
------------------ 通用排行榜value值操作定义结束 ---------------------------

------------------ 通用奖励领取状态定义开始 ---------------------------
COMMON_PRIZE_STATE_NOGET        =   0       -- 不可领取
COMMON_PRIZE_STATE_CANGET       =   1       -- 可领取
COMMON_PRIZE_STATE_GET          =   2       -- 已获取
------------------ 通用奖励领取状态定义结束 ---------------------------


------------------ 通用发奖励格式定义开始 ---------------------------
COMMON_SEND_PRIZE_TYPE_TABLE        =   1       -- 表 { {nItemID, nItemNum, Quality(品质，可能不存在)} }
COMMON_SEND_PRIZE_TYPE_KEYVAL       =   2       -- Key - value {[nItemID] = nItemNum}
COMMON_SEND_PRIZE_TYPE_ONLYEQUIP    =   3       -- 仅装备
------------------ 通用发奖励格式定义结束 ---------------------------

----------------------------- 请求玩家全部数据来源 ---------------------
COMMON_PLAY_INFO_CHAT = 1   -- 聊天
COMMON_PLAY_INFO_JJC = 2    -- 战区


MERGERSERVER_ACTIVITY_DAY = 14 -- 合服活动持续时间