Function isMasterServerInfoData

  • Helper function to distinguish between "official" server info data and others.

    Parameters

    • data: unknown

      The data to check.

    Returns data is {
        altameda_net?: boolean;
        client_score_kind?: string;
        clients: {
            afk?: boolean;
            clan: string;
            country: number;
            is_player: boolean;
            name: string;
            score: number;
            skin?: {
                body?: {
                    color?: number;
                    name: string;
                };
                color_body?: number;
                color_feet?: number;
                decoration?: {
                    color?: number;
                    name: string;
                };
                eyes?: {
                    color?: number;
                    name: string;
                };
                feet?: {
                    color?: number;
                    name: string;
                };
                hands?: {
                    color?: number;
                    name: string;
                };
                marking?: {
                    color?: number;
                    name: string;
                };
                name?: string;
            };
            team?: number;
        }[];
        community?: {
            admin: string[];
            icon: string;
            id: string;
            public_key: string;
            signature: string;
        };
        game_type: string;
        map: {
            name: string;
            sha256?: string;
            size?: number;
        };
        max_clients: number;
        max_players: number;
        name: string;
        passworded: boolean;
        requires_login?: boolean;
        version: string;
    }