DDNet - v0.8.1
    Preparing search index...

    Class Mapper

    Represents a map author/mapper.

    Index

    Constructors

    Properties

    mapShowcaseUrl: string

    The ddnet.org url to this author's map showcase page.

    name: string

    The name of this author.

    playerUrl: string

    The ddnet.org url to this author's player page.

    clearCache: () => Promise<void> = ...

    Clears the Player.cache.

    Type declaration

      • (): Promise<void>
      • Clears the CacheManager.store.

        Returns Promise<void>

    setTTL: (ttlMS?: number) => void = ...

    Sets the TTL (Time-To-Live) for objects in cache.

    Type declaration

      • (ttlMS?: number): void
      • Sets the CacheManager.ttl.

        Parameters

        • OptionalttlMS: number

          If provided, sets the CacheManager.ttl to this value, otherwise uses the default value.

        Returns void

    Methods

    • Search for a mapper.

      Parameters

      • value: string

        The value to search for.

      • force: boolean = false

        Wether to bypass the cache.

      Returns Promise<
          | null
          | {
              mapCount: number;
              name: string;
              toMapper: () => Mapper;
              toPlayer: () => Promise<Player>;
          }[],
      >