This commit is contained in:
PC-20230316NUNE\Administrator
2023-12-11 10:42:36 +08:00
parent 24a498a712
commit f99f10e237
3 changed files with 27 additions and 22 deletions

View File

@@ -6,7 +6,7 @@ import GRoleBase from "../base/role/GRoleBase";
export class GRoleUtil{
//获取存活的玩家 如果不存活则返回 null
static get<T extends GRoleBase<{}>>(player:T):() => T{
static get<T extends GRoleBase<{}>>(player:T):() => T{
if(!player) return null;
return ():T => {
if(player)