Class TeeSkin7

Class used to render TW 0.7 skins (teeworlds).

Constructors

Properties

Methods

Constructors

Properties

opts: Required<{
    body?:
        | "bat"
        | "bear"
        | "beaver"
        | "dog"
        | "force"
        | "fox"
        | "hippo"
        | "kitty"
        | "koala"
        | "monkey"
        | "mouse"
        | "piglet"
        | "raccoon"
        | "spiky"
        | "standard"
        | "x_ninja";
    decoration?:
        | null
        | "hair"
        | "twinbopp"
        | "twinmello"
        | "twinpen"
        | "unibop"
        | "unimelo"
        | "unipento";
    eyes?:
        | "standard"
        | "x_ninja"
        | "colorable"
        | "negative"
        | "standardreal";
    feet?: "standard";
    marking?:
        | null
        | "bear"
        | "fox"
        | "monkey"
        | "belly1"
        | "belly2"
        | "blush"
        | "bug"
        | "cammo1"
        | "cammo2"
        | "cammostripes"
        | "coonfluff"
        | "donny"
        | "downdony"
        | "duodonny"
        | "hipbel"
        | "lowcross"
        | "lowpaint"
        | "marksman"
        | "mice"
        | "mixture1"
        | "mixture2"
        | "panda1"
        | "panda2"
        | "purelove"
        | "saddo"
        | "setisu"
        | "sidemarks"
        | "singu"
        | "stripe"
        | "striped"
        | "stripes"
        | "stripes2"
        | "thunder"
        | "tiger1"
        | "tiger2"
        | "toptri"
        | "triangular"
        | "tricircular"
        | "tripledon"
        | "tritri"
        | "twinbelly"
        | "twincross"
        | "twintri"
        | "uppy"
        | "warpaint"
        | "warstripes"
        | "whisker"
        | "wildpaint"
        | "wildpatch"
        | "yinyang";
}>

Options for this instance.

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

Clears the TeeSkin7.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