mirror of
https://github.com/demostf/demo.js
synced 2026-06-04 00:54:14 +02:00
encoder wip
This commit is contained in:
parent
5b2665bdc9
commit
a5a1642782
13 changed files with 876 additions and 35 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue