1
0
Fork 0
mirror of https://github.com/demostf/demo.js synced 2026-06-04 00:54:14 +02:00

final typescript conversion

This commit is contained in:
Robin Appelman 2016-12-18 20:15:18 +01:00
commit 3b805be013
19 changed files with 440 additions and 518 deletions

View file

@ -2,6 +2,7 @@ import {Entity} from "./Entity";
import {ServerClass} from "./ServerClass";
import {SendTable} from "./SendTable";
import {StringTable} from "./StringTable";
import {SendProp} from "./SendProp";
export class Match {
tick: number;
chat: any[];
@ -10,11 +11,11 @@ export class Match {
rounds: any[];
startTick: number;
intervalPerTick: number;
entities: Entity[];
entities: (Entity|null)[];
stringTables: StringTable[];
serverClasses: ServerClass[];
sendTables: SendTable[];
instanceBaselines: any[][];
instanceBaselines: SendProp[][][];
staticBaseLines: any[];
constructor() {

View file

@ -11,7 +11,7 @@ export class SendProp {
this.value = null;
}
clone() {
clone():SendProp {
const prop = new SendProp(this.definition);
prop.value = clone(this.value);
return prop;