Options
All
  • Public
  • Public/Protected
  • All
Menu

Module hooks/usePlayersAt

Functions

Functions

Const usePlayersAt

  • React Hook returning array of players at the given location. Whenever the given location changes, this hook causes rerender of calling component with players at this location.

    Parameters

    • location: XY | undefined

      Location for which the players should be returned

    Returns PlayerInfo[]

    Array of players which are at the given location

Generated using TypeDoc