聊天:部分配置读表
This commit is contained in:
@@ -63,6 +63,7 @@ import { dicGateActivityPoint } from './dictionary/DicGateActivityPoint';
|
||||
import { dicGuildAuction } from './dictionary/DicGuildAuction';
|
||||
import { getCutDay } from "./timeUtil";
|
||||
import { dicCityActivity } from "./dictionary/DicCityActivity";
|
||||
import { dicChatAccuse } from "./dictionary/DicChatAccuse";
|
||||
|
||||
export const gameData = {
|
||||
blurprtCompose: dicBlueprtCompose,
|
||||
@@ -148,7 +149,8 @@ export const gameData = {
|
||||
guildActivity: dicGuildActivity,
|
||||
gateActivityPoint: dicGateActivityPoint,
|
||||
guildAuction: dicGuildAuction,
|
||||
cityActivity: dicCityActivity
|
||||
cityActivity: dicCityActivity,
|
||||
chatAccuse: dicChatAccuse,
|
||||
};
|
||||
|
||||
// 在此提供一些原先在gamedata中提供的方法,以便更方便获取gameData数据
|
||||
|
||||
@@ -80,10 +80,9 @@ export const HTTPMANAGE = {
|
||||
ADDRESSTYPE: 1, // 1:开发服,2:审核服,3:版号服
|
||||
SERVERTYPE: 1, // ADDRESSTYPE下服务器的筛选:1:开发服,2:玩家服
|
||||
};
|
||||
export const SYSTEAM = {
|
||||
export const CHAT_SYSTEM = {
|
||||
RECENT_GROUP_MSGS_CNT: 10, // 群消息获取条数
|
||||
RECENT_PRIVATE_CHATS_CNT: 20, // 最近私聊个数
|
||||
MSG_TYPE: 0, // 0:纯文本,1:副文本,2:表情
|
||||
};
|
||||
export const GUILDACTIVITY = {
|
||||
GATEACTIVITY_CHALLENGE_TIMES: 1, // 蛮夷入侵每天可以挑战次的次数
|
||||
@@ -100,3 +99,12 @@ export const GUILDACTIVITY = {
|
||||
GATEACTIVITY_BOSS_DIFFICULT: '1&1.2|2&1.5', // boss类型&难度系数|boss类型&难度系数(1:小boss,2:大boss)
|
||||
RACEACTIVITY_DURABILITY_REWARD: 2, // 每剩余1%耐久度给予X点功勋
|
||||
};
|
||||
export const GUILDAUCTION = {
|
||||
DIVIDENDRATE: 1, // 分红比例,1表示总金额 100% 分红
|
||||
DIVIDENDWEEKENDRATE: 0.2, // 额外分红,周末加成,0.2表示周围额外加成 20% 分红
|
||||
AUCTION_PRICE_RISE: 1.1, // 单次竞价价格上涨幅度,1.1表示竞拍每次价格上涨10%
|
||||
AUCTION_BOSSEXPECT_MAX: 1000, // 演武台预期分红上限
|
||||
AUCTION_BOSSEXPECT_MIN: 200, // 演武台预期分红下限
|
||||
AUCTION_ACTIVITYEXPECT_MAX: 2000, // 军团活动预期分红上限
|
||||
AUCTION_ACTIVITYEXPECT_MIN: 500, // 军团活动预期分红下限
|
||||
};
|
||||
|
||||
21
shared/pubUtils/dictionary/DicChatAccuse.ts
Normal file
21
shared/pubUtils/dictionary/DicChatAccuse.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
// 聊天举报表
|
||||
import { readJsonFile } from '../util'
|
||||
import { FILENAME } from '../../consts'
|
||||
|
||||
export interface DicChatAccuse {
|
||||
|
||||
// 举报 id
|
||||
readonly id: number;
|
||||
// 举报名称
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
const str = readJsonFile(FILENAME.DIC_CHAT_ACCUSE);
|
||||
let arr = JSON.parse(str);
|
||||
|
||||
export const dicChatAccuse = new Map<number, DicChatAccuse>();
|
||||
|
||||
arr.forEach(o => {
|
||||
dicChatAccuse.set(o.id, o);
|
||||
});
|
||||
arr = undefined;
|
||||
21
shared/pubUtils/dictionary/DicChatSystem.ts
Normal file
21
shared/pubUtils/dictionary/DicChatSystem.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
// 聊天模板表
|
||||
import { readJsonFile } from '../util'
|
||||
import { FILENAME } from '../../consts'
|
||||
|
||||
export interface DicChatSystem {
|
||||
|
||||
// 模板 id
|
||||
readonly id: number;
|
||||
// 模板名称
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
const str = readJsonFile(FILENAME.DIC_CHAT_SYSTEM);
|
||||
let arr = JSON.parse(str);
|
||||
|
||||
export const dicChatSystem = new Map<number, DicChatSystem>();
|
||||
|
||||
arr.forEach(o => {
|
||||
dicChatSystem.set(o.id, o);
|
||||
});
|
||||
arr = undefined;
|
||||
Reference in New Issue
Block a user