Class Info

Represents servers info.

Properties

communities: Community[]

List of major communities.

communityIconsDownloadUrl: string

Community icons directory.

mapDownloadUrl: string

Maps directory.

news: string

Game news.

other: {
    location: string;
    stunServersIpv4: string[];
    stunServersIpv6: string[];
    warnPngliteIncompatibleImages: boolean;
}

Other parsed data.

I think this is mostly used in the client. Still I parsed the data and added it here.

version: string

Latest game version.

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

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

  • Fetch, parse and construct a new Info instance.

    Parameters

    • bypassCache: boolean = false

      Wether to bypass the info data cache.

    Returns Promise<Info>