mirror of
https://github.com/demostf/demo.js
synced 2026-06-04 00:54:14 +02:00
typings for chat and round
This commit is contained in:
parent
fb54dc9b75
commit
384d4557f6
3 changed files with 15 additions and 2 deletions
6
src/Data/Chat.ts
Normal file
6
src/Data/Chat.ts
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
export interface Chat {
|
||||
kind: string,
|
||||
from: string,
|
||||
text: string,
|
||||
tick: number,
|
||||
}
|
||||
|
|
@ -18,13 +18,15 @@ import {Team, TeamNumber} from './Team';
|
|||
import {UserInfo} from './UserInfo';
|
||||
import {Weapon} from './Weapon';
|
||||
import {World} from './World';
|
||||
import {Round} from './Round';
|
||||
import {Chat} from './Chat';
|
||||
|
||||
export class Match {
|
||||
public tick: number = 0;
|
||||
public chat: any[] = [];
|
||||
public chat: Chat[] = [];
|
||||
public users: Map<number, UserInfo> = new Map();
|
||||
public deaths: Death[] = [];
|
||||
public rounds: any[] = [];
|
||||
public rounds: Round[] = [];
|
||||
public startTick: number = 0;
|
||||
public intervalPerTick: number = 0;
|
||||
public staticBaseLines: BitStream[] = [];
|
||||
|
|
|
|||
5
src/Data/Round.ts
Normal file
5
src/Data/Round.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
export interface Round {
|
||||
winner: 'red' | 'blue',
|
||||
length: number;
|
||||
end_tick: number;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue