84 lines
2.4 KiB
TypeScript
84 lines
2.4 KiB
TypeScript
import ServerConf from "./ServerConf";
|
|
|
|
|
|
|
|
// 游戏配置
|
|
export default class GameConf {
|
|
// 版本号
|
|
static version: string = "0.0.0";
|
|
// 客户端最低版本控制
|
|
static login_version: string = "0.0.0";
|
|
// 渠道名称
|
|
static channel: string = "xyxy";
|
|
// 是否输出通讯Log
|
|
static isAgentLog: boolean = false;
|
|
// 是否为内侧中(true 内侧 false 正式)
|
|
static isBeta: boolean = false;
|
|
// 是否为调试
|
|
static isDebug: boolean = true;
|
|
// 签名
|
|
static sign: string = "JavaS02Pcc025..";
|
|
// 本地地址
|
|
static local_ip: string = "127.0.0.1";
|
|
// 外网地址
|
|
static outer_ip: string = "127.0.0.1";
|
|
// 数据库连接地址 xy-moyec.mysql.polardb.rds.aliyuncs.com
|
|
static db_ip: string = "127.0.0.1";
|
|
// 充值地址
|
|
static charge_url: string = "127.0.0.1";
|
|
// 数据库帐号
|
|
static db_user: string = "root";
|
|
// 数据库密码 dglqaz
|
|
static db_pwd: string = "123456";
|
|
// 数据库名称
|
|
static db_name: string = "xy_ga";
|
|
// 数据库端口
|
|
static db_port: number = 3306;
|
|
// 网关数据库接口
|
|
static gate_db_port: number = 8507;
|
|
// 网关服索引
|
|
static gate_id: number = 1000;
|
|
// 网关服名称
|
|
static gate_name: string = "网关服";
|
|
// 网关端口
|
|
static gate_port: number = 8561;
|
|
// 充值累计类型
|
|
static accumulative: number = 2;
|
|
// 风雨同舟模式
|
|
static model: number = 2;
|
|
|
|
// 如果配置了支付调试则进行调试,运营时请删空
|
|
static debugPay: string = "";
|
|
// 游戏服1
|
|
static game_1: ServerConf = new ServerConf(
|
|
1000, // 服务器索引
|
|
"一区", // 服务器名称
|
|
8550, // SOCKET端口
|
|
8210, // CLI端口
|
|
8010, // HTTP端口
|
|
);
|
|
// 引导服务器列表
|
|
static guide_list = [GameConf.game_1];
|
|
// 服务器列表
|
|
static server_list = [GameConf.game_1];
|
|
// 网关IP地址
|
|
static get gate_ip(): string {
|
|
return this.local_ip;
|
|
}
|
|
|
|
// CXF通讯
|
|
static cxfFlag: boolean = false;
|
|
// 发言开关
|
|
static speak: boolean = true;
|
|
// 开关
|
|
static horseEnabled: boolean = true;
|
|
// 支付开关
|
|
static payEnabled: boolean = false;
|
|
// 邮件开关
|
|
static mailEnabled:boolean = true;
|
|
// 文曲星
|
|
static respondents:boolean = true;
|
|
// 充值积分
|
|
static integral: boolean = true;
|
|
}
|