2018-03-03 19:15:33 +01:00
|
|
|
export class PlayerUtils {
|
|
|
|
|
2018-05-05 08:08:33 +02:00
|
|
|
public static readonly attributeDisplayNames = [
|
|
|
|
{prop: 'name', head: 'Spieler'}, {prop: 'fraction', head: 'Fraktion'}, {prop: 'kill', head: 'Abschüsse'},
|
|
|
|
{prop: 'friendlyFire', head: 'Friendly Fire'}, {prop: 'vehicleLight', head: 'Fahrzeug (leicht)'},
|
|
|
|
{prop: 'vehicleHeavy', head: 'Fahrzeug (schwer)'}, {prop: 'vehicleAir', head: 'Fahrzeug (Luft)'},
|
|
|
|
{prop: 'revive', head: 'Revive'}, {prop: 'flagTouch', head: 'Eroberungen'}, {prop: 'death', head: 'Tode'},
|
|
|
|
{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
|
|
|
}
|
|
|
|
}
|