You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
739 B
29 lines
739 B
|
|
import { Singleton } from '../../mx/tools/Singleton';
|
|
import { TableNames } from '../game/ConfigTableData';
|
|
|
|
|
|
|
|
export class ConstMechanism extends Singleton {
|
|
/**获取常量表数据 */
|
|
public getAllConstList(){
|
|
//let list = gg.data.table.getTableList<ITablePlaymode>(TableNames.Playmode);
|
|
// console.log('allList===',list)
|
|
return []
|
|
}
|
|
/**
|
|
* 通过类型id获取常量数据(number类型)
|
|
* @param typeId 类型id
|
|
*/
|
|
|
|
|
|
public getConfigDataById(typeId){
|
|
let allList = this.getAllConstList()
|
|
let config = allList.find(x => x.id == typeId)
|
|
// console.log('获取特定章节的配表数据==id,config=',typeId,config)
|
|
return config
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|