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