Skip to content

是否为玩家 ​

类型 ​

typescript
declare type GamePlayerEntity = GameEntity & {
  player: GamePlayer;
  isPlayer: true;
};

属性 ​

isPlayer ​

如果为真,则实体为玩家。


player ​

如果是玩家,可以访问此属性。索引与玩家相关的全部状态和方法