Skip to content

raceOf beta ​

Function of @v12-engine/engine

ts
raceOf: (world: World, player: PlayerId) => string | undefined

The race a player plays: none in a game without races, and none for the neutral players and the creeps