Class TeeSkin6

Class used to render TW 0.6 skins (ddnet).

Constructors

Properties

Methods

Constructors

Properties

opts: Required<{
    skinDbUrl?: string;
    skinResource?: string | Buffer;
}>

Options for this instance.

Type declaration

  • OptionalskinDbUrl?: string

    The url to query in case skinResource is a string.

    The "/" at the end of the url is important.

    "https://skins.scrumplex.net/skin/"
    
  • OptionalskinResource?: string | Buffer

    The resource to use, pass a Buffer for loading local custom skins, otherwise a skin name.

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

Clears the TeeSkin6.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?): 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