mirror of
https://codeberg.org/demostf/frontend.git
synced 2026-06-04 02:34:13 +02:00
render cart
This commit is contained in:
parent
c96f2e6b7b
commit
a4d835f0c6
9 changed files with 97 additions and 12 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue