2018-03-03 19:15:33 +01:00
|
|
|
export class PlayerUtils {
|
|
|
|
|
2018-05-05 08:08:33 +02:00
|
|
|
public static readonly attributeDisplayNames = [
|
2018-05-05 09:32:16 +02:00
|
|
|
{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'},
|
2018-05-05 08:08:33 +02:00
|
|
|
{prop: 'respawn', head: 'Respawn'}
|
|
|
|
];
|
|
|
|
|
2018-03-03 19:15:33 +01:00
|
|
|
public static isSteamUUID(input: string): boolean {
|
2018-03-08 09:44:35 +01:00
|
|
|
const steamUIDPattern = new RegExp('[0-9]{17}');
|
|
|
|
return steamUIDPattern.test(input);
|
2018-03-03 19:15:33 +01:00
|
|
|
}
|
|
|
|
}
|