Options
All
  • Public
  • Public/Protected
  • All
Menu

Module hooks/useMined

Functions

Functions

Const useMined

  • useMined(location: XY | undefined): MinedInfo | undefined
  • React Hook returning info when was the given game tile mined for the last time, or undefined if there is no info known. Whenever the given location changes, this hook causes rerender of calling component with new info.

    Parameters

    • location: XY | undefined

      Location for which the info should be returned

    Returns MinedInfo | undefined

    Information when was the given tile mined, or undefined when there is no info known

Generated using TypeDoc