22 lines
727 B
TypeScript
22 lines
727 B
TypeScript
export class PlayerUtils {
|
|
|
|
public static readonly attributeDisplayNames = [
|
|
{prop: 'name', head: 'Spieler'},
|
|
{prop: 'fraction', head: 'Fraktion'},
|
|
{prop: 'kill', head: 'Abschüsse'},
|
|
{prop: 'friendlyFire', head: 'Friendly Fire'},
|
|
{prop: 'revive', head: 'Revive'},
|
|
{prop: 'flagTouch', head: 'Eroberungen'},
|
|
{prop: 'vehicleLight', head: 'Fahrzeug (leicht)'},
|
|
{prop: 'vehicleHeavy', head: 'Fahrzeug (schwer)'},
|
|
{prop: 'vehicleAir', head: 'Fahrzeug (Luft)'},
|
|
{prop: 'death', head: 'Tode'},
|
|
{prop: 'respawn', head: 'Respawn'}
|
|
];
|
|
|
|
public static isSteamUUID(input: string): boolean {
|
|
const steamUIDPattern = new RegExp('[0-9]{17}');
|
|
return steamUIDPattern.test(input);
|
|
}
|
|
}
|