show destructions in kill feed

This commit is contained in:
Robin Appelman 2024-12-08 15:46:01 +01:00
commit 6d351a1aae
3 changed files with 51 additions and 19 deletions

View file

@ -1,19 +1,19 @@
import {PlayersSpec} from './PlayerSpec';
import {KillFeed} from './KillFeed';
import {AsyncParser} from "../Data/AsyncParser";
import {PlayerState, Kill} from "../Data/Parser";
import {PlayerState, Kill, Event} from "../Data/Parser";
export interface SpecHUDProps {
tick: number;
parser: AsyncParser;
players: PlayerState[];
kills: Kill[]
tick: number;
parser: AsyncParser;
players: PlayerState[];
events: Event[]
}
export function SpecHUD(props: SpecHUDProps) {
return (<div class="spechud">
<KillFeed tick={props.tick} kills={props.kills} players={props.players}/>
<PlayersSpec players={props.players}/>
</div>)
return (<div class="spechud">
<KillFeed tick={props.tick} events={props.events} players={props.players}/>
<PlayersSpec players={props.players}/>
</div>)
}