Class TeeSkin6

Class used to render TW 0.6 skins (ddnet).

Constructors

Properties

Methods

Constructors

Properties

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

Options for this instance.

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

Clears the TeeSkin6.cache.

Type declaration

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

  • Get the skin file buffer.

    Parameters

    • force: boolean = false

      Wether to bypass the cache when fetching.

    Returns Promise<Buffer<ArrayBufferLike>>

MMNEPVFCICPMFPCPTTAAATR