重置配置表

This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2023-11-06 02:25:02 +08:00
parent e8f8cb3ce9
commit e24dded990
154 changed files with 1214 additions and 26044 deletions

View File

@@ -1,6 +1,5 @@
import { TableGRole } from "../../../resources/config/ts/TableGRole";
import { GFSMAnimBase } from "../base/fsm/GFSMAnimBase";
import GFSMBase from "../base/fsm/GFSMBase";
import { TB } from "../../../resources/config/data/schema";
import { TD } from "../../App";
import GRoleBase from "../base/role/GRoleBase";
//角色工具类
@@ -17,13 +16,13 @@ export class GRoleUtil{
}
//通过Id 获取 GRole
static getGRole(id:number):TableGRole{
let info:TableGRole;
if(!(info = TableGRole.getConfig(id))) return null;
static getGRole(id:number):TB.TbGRole{
let info:TB.TbGRole;
if(!(info = TD.TbGRole.get(id))) return null;
return info
}
static getGRoles(ids:number[]):TableGRole[]{
static getGRoles(ids:number[]):TB.TbGRole[]{
return ids.map(id => GRoleUtil.getGRole(id));
}