将 consts 整理到几个文件中

This commit is contained in:
liangtongchuan
2020-12-15 16:02:59 +08:00
parent 3a78f667c3
commit e877b0190d
61 changed files with 402 additions and 69 deletions

View File

@@ -1,6 +1,6 @@
import { getHeroInfoById, getStarRatio, /*getHeroSkillById,*/ getSeidById, getOlySeidByType, getGoodById } from "./gamedata";
import { getAtrrNameById, ABI_TYPE, SEID_TYPE } from "../consts/abilityConst";
import { EXPRESSION } from '../consts/consts';
import { getAtrrNameById, ABI_TYPE, SEID_TYPE } from "../consts";
import { EXPRESSION } from '../consts';
export default class Actor {
private hid: number = 0;

View File

@@ -2,7 +2,7 @@
import {decodeArrayListStr, readJsonFile, parseReward} from '../util'
import { FILENAME, IT_TYPE } from '../../consts/consts'
import { RewardInter } from '../interface';
import { ABI_TYPE } from '../../consts/abilityConst';
import { ABI_TYPE } from '../../consts';
export interface DicGoods {
// 物品id

View File

@@ -1,6 +1,6 @@
// 武将表
import { ABI_TYPE } from '../../consts/abilityConst'
import { ABI_TYPE } from '../../consts'
import { readJsonFile } from '../util'
import { FILENAME } from '../../consts/consts'

View File

@@ -1,7 +1,7 @@
// 武将升星表
import { readJsonFile } from '../util'
import { FILENAME } from '../../consts/consts'
import { ABI_STAGE } from '../../consts/abilityConst';
import { ABI_STAGE } from '../../consts';
export interface DicHeroStar {

View File

@@ -1,7 +1,7 @@
// 武将觉醒表
import { readJsonFile, parseReward } from '../util'
import { FILENAME } from '../../consts/consts'
import { ABI_STAGE } from '../../consts/abilityConst';
import { ABI_STAGE } from '../../consts';
import { RewardInter } from '../interface';
export interface DicHeroWake {

View File

@@ -1,6 +1,6 @@
// 关卡表
import {decodeArrayListStr, readWarJsonFileList} from '../util'
import { ABI_TYPE } from '../../consts/abilityConst';
import { ABI_TYPE } from '../../consts';
import { Attributes } from '../interface';

View File

@@ -1,8 +1,8 @@
import fs = require('fs');
import path = require('path');
import { ABI_TYPE, ABI_STAGE } from '../consts/abilityConst';
import { ABI_TYPE, ABI_STAGE } from '../consts';
import { decodeIdCntArrayStr, getRandEelm } from './util';
import { IT_TYPE } from '../consts/consts';
import { IT_TYPE } from '../consts';
let gamedata = {};
const wars = ['dic_zyz_gk_main', 'dic_zyz_gk_mainElite', 'dic_zyz_gk_daily', 'dic_zyz_gk_event', 'dic_zyz_gk_tower', 'dic_zyz_gk_expedition', 'dic_zyz_gk_dungeon','dic_zyz_gk_dungeonElite', 'dic_zyz_gk_Treasure','dic_zyz_gk_branch']; // 关卡相关的表