render cart

This commit is contained in:
Robin Appelman 2025-06-26 16:55:55 +02:00
commit a4d835f0c6
9 changed files with 97 additions and 12 deletions

View file

@ -1,5 +1,5 @@
import {
BuildingState,
BuildingState, CartState,
Event,
Kill,
ParsedDemo,
@ -46,6 +46,7 @@ export class AsyncParser {
cachedData.playerCount,
cachedData.buildingCount,
cachedData.projectileCount,
cachedData.hasCart,
cachedData.world,
cachedData.header,
cachedData.data,
@ -93,6 +94,10 @@ export class AsyncParser {
return projectiles;
}
getCart(tick: number): CartState | null {
return this.demo.getCart(tick);
}
getKills(): Kill[] {
return this.demo.kills
}