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

encoder wip

This commit is contained in:
Robin Appelman 2017-10-24 16:59:33 +02:00
commit a5a1642782
13 changed files with 876 additions and 35 deletions

View file

@ -28,9 +28,13 @@ export class ParserState {
public instanceBaselines: [Map<EntityId, SendProp[]>, Map<EntityId, SendProp[]>] = [new Map(), new Map()];
public skippedPackets: PacketTypeId[] = [];
public userInfoEntries: Map<string, BitStream> = new Map();
public tick: number = 0;
public handlePacket(packet: Packet) {
switch (packet.packetType) {
case 'netTick':
this.tick = packet.tick;
break;
case 'serverInfo':
this.version = packet.version;
break;