Files
ZYZ/shared/consts/constModules/chatConst.ts
2021-03-22 20:52:17 +08:00

124 lines
2.4 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
export const MSG_CODE_LEN = 8;
export const RECENT_PRIVATE_CHATS_CNT = 20;
export const RECENT_GROUP_MSGS_CNT = 10;
export const MAX_PRIVATE_MSGS = 99;
export const JEWEL_PUSH_LV = 7;
export const MSG_STATUS = {
NORMAL: 0,
BLOCKED: 1
}
export const MSG_TYPE = {
TEXT: 0,
RICH_TEXT: 1,
IMG: 2
}
export const CHANNEL_PREFIX = {
SYS: 'sys',
WORLD: 'world',
GUILD: 'guild',
TEAM: 'com_btl_team',
CITY: 'city', // 军团活动诸侯混战按城池分channel
}
// 消息来源
export const MSG_SOURCE = {
ROLE_SEND_TEXT: 0,
PRIVATE_SEND_GIFT: 1,
TEAM_ROLE: 2,
HERO_QUALITY_UP: 3,
COMPOSE_ORANGE_HERO: 4,
HERO_STAR_MAX: 5,
GUILD_NOTICE: 6,
GUILD_STRUCTURE_LV_UP: 7,
GUILD_TRAIN_SUC: 8,
GUILD_BOSS_SUC: 9,
EQUIP_REFINE_SUC: 10,
EQUIP_COMPOSE_SUIT: 11,
EQUIP_COMPOSE_ORANGE: 12,
JEWEL_COMPOSE: 13,
ORANGE_BLUEPRT_COMPOSE: 14,
TOWER_SUC: 15,
MYSTERY_FIRST_SUC: 16,
VESTIGE_FIRST_SUC: 17,
TEAM_INVITE: 18,
}
export const ON_PRIVATE_MSG_ROUTE = 'onPrivateMessage';
export const ON_GROUP_MSG_ROUTE = 'onGroupMessage';
export const ON_ADD_CHANNEL_ROUTE = 'onAddChannel';
export const ON_LEAVE_CHANNEL_ROUTE = 'onLeaveChannel';
export const DEFAULT_MSG_PER_PAGE = 10;
// 要放到策划表里的数据
export const RICH_TEXT_TABLE = [
{
id: 0,
jumpTo: '',
color: '#000000',
type: 'default'
},
{
id: 2,
jumpTo: 'hero',
color: '#ff0000',
type: 'hero'
},
{
id: 3,
jumpTo: 'equip',
color: '#112233',
type: 'equip'
},
{
id: 4,
jumpTo: 'refine',
color: '#aabbcc',
type: 'equip'
},
{
id: 5,
jumpTo: 'recurit',
color: '#aa0000',
type: 'link'
},
{
id: 6,
jumpTo: 'compose',
color: '#00aa00',
type: 'link'
}
];
export const BUBBLE_TABLE = [{
id: 1,
imgUrl: 'a.jpg',
name: '金牛'
}, {
id: 2,
imgUrl: 'b.jpg',
name: '白羊'
}];
export const SYS_EMOJI = [{
id: 1,
name: '大笑',
imgUrl: 'laugh.jpg',
group: 'zhaoyun',
index: 1
}, {
id: 2,
name: '大哭',
imgUrl: 'cry.jpg',
group: 'zhaoyun',
index: 2
}, {
id: 3,
name: '生气',
imgUrl: 'angry.jpg',
group: 'xiahou',
index: 1
}];