@ -1,18 +1,44 @@ |
|||||
import {SteamIDs} from "../profile/SteamIDs"; |
import {SteamIDs} from "../profile/SteamIDs"; |
||||
|
|
||||
export interface Player { |
export class Player { |
||||
clz: number|null; |
clz!: number|null; |
||||
deads: number; |
deads!: number; |
||||
duration: string; |
duration!: string; |
||||
duration_seconds: number; |
duration_seconds!: number; |
||||
id: number; |
id!: number; |
||||
loss: number; |
loss!: number; |
||||
name: string; |
name!: string; |
||||
ping: number; |
ping!: number; |
||||
pos: number[]; |
pos!: number[]; |
||||
score: number; |
score!: number; |
||||
state: string; |
state!: string; |
||||
steam: SteamIDs; |
steam!: SteamIDs; |
||||
steam2: string; |
steam2!: string; |
||||
team: number; |
team!: number; |
||||
|
|
||||
|
static getClassName(clz: number|null) { |
||||
|
switch (clz) { |
||||
|
case 0: return null; |
||||
|
case 1: return "Scout"; |
||||
|
case 2: return "Sniper"; |
||||
|
case 3: return "Soldier"; |
||||
|
case 4: return "Demoman"; |
||||
|
case 5: return "Medic"; |
||||
|
case 6: return "Heavy"; |
||||
|
case 7: return "Pyro"; |
||||
|
case 8: return "Spy"; |
||||
|
case 9: return "Engineer"; |
||||
|
default: return null; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
static getTeamName(team: number|null) { |
||||
|
switch (team) { |
||||
|
case 0: return null; |
||||
|
case 1: return null; |
||||
|
case 2: return "RED"; |
||||
|
case 3: return "BLU"; |
||||
|
default: return null; |
||||
|
} |
||||
|
} |
||||
} |
} |
||||
|
@ -1,3 +1,16 @@ |
|||||
.container { |
.container { |
||||
padding: 24px; |
padding: 24px; |
||||
} |
} |
||||
|
|
||||
|
::ng-deep .leaflet-marker-icon { |
||||
|
width: 24px !important; |
||||
|
height: 24px !important; |
||||
|
margin-left: -12px !important; |
||||
|
margin-top: -12px !important; |
||||
|
border-radius: 1px; |
||||
|
border: 0px solid black; |
||||
|
} |
||||
|
|
||||
|
::ng-deep .leaflet-control-attribution { |
||||
|
display: none; |
||||
|
} |
||||
|
After Width: | Height: | Size: 50 KiB |
After Width: | Height: | Size: 32 KiB |
After Width: | Height: | Size: 42 KiB |
After Width: | Height: | Size: 19 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 37 KiB |
After Width: | Height: | Size: 44 KiB |
After Width: | Height: | Size: 34 KiB |
After Width: | Height: | Size: 25 KiB |
After Width: | Height: | Size: 48 KiB |
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 41 KiB |
After Width: | Height: | Size: 29 KiB |
After Width: | Height: | Size: 37 KiB |
After Width: | Height: | Size: 39 KiB |
After Width: | Height: | Size: 43 KiB |
After Width: | Height: | Size: 37 KiB |
After Width: | Height: | Size: 31 KiB |
After Width: | Height: | Size: 25 KiB |