mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
重置配置表
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user