• Return a function caching Game.map.visual for a given interval

    Parameters

    • draw: (() => void)

      a function to draw the visuals

        • (): void
        • Returns void

    • interval: number = 10

      optional: interval to cache the visuals

    Returns (() => void)

    a cached function to draw the visuals

      • (): void
      • Returns void

Generated using TypeDoc