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:
parent
94383f447f
commit
3b805be013
19 changed files with 440 additions and 518 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue