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

encoder for updateStringTable

This commit is contained in:
Robin Appelman 2017-08-16 01:33:01 +02:00
commit ae79b6a0d4
11 changed files with 280 additions and 57 deletions

View file

@ -4,7 +4,7 @@ import {handleGameEvent} from '../PacketHandler/GameEvent';
import {handleGameEventList} from '../PacketHandler/GameEventList';
import {handlePacketEntities} from '../PacketHandler/PacketEntities';
import {handleSayText2} from '../PacketHandler/SayText2';
import {handleStringTable, handleStringTables} from '../PacketHandler/StringTable';
import {handleStringTable, handleStringTables, handleStringTableUpdate} from '../PacketHandler/StringTable';
import {Building} from './Building';
import {Death} from './Death';
import {GameEventDefinitionMap} from './GameEvent';
@ -149,9 +149,11 @@ export class Match {
handleStringTables(packet, this);
break;
case 'createStringTable':
case 'updateStringTable':
handleStringTable(packet, this);
break;
case 'updateStringTable':
handleStringTableUpdate(packet, this);
break;
case 'gameEventList':
handleGameEventList(packet, this);
break;

View file

@ -3,7 +3,7 @@ import {GameEvent, GameEventDefinitionMap} from './GameEvent';
import {PacketEntity} from './PacketEntity';
import {SendTable} from './SendTable';
import {ServerClass} from './ServerClass';
import {StringTable} from './StringTable';
import {StringTable, StringTableEntry} from './StringTable';
import {Vector} from './Vector';
export interface StringTablePacket {
@ -18,7 +18,8 @@ export interface CreateStringTablePacket {
export interface UpdateStringTablePacket {
packetType: 'updateStringTable';
table: StringTable;
entries: StringTableEntry[];
tableId: number;
}
export interface ConsoleCmdPacket {