mirror of
https://github.com/demostf/demo.js
synced 2026-06-04 09:04:13 +02:00
add encoder for sayText2
This commit is contained in:
parent
2c8fe681d3
commit
cd5d0b0e86
4 changed files with 110 additions and 10 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import {BitStream} from 'bit-buffer';
|
||||
import {UserMessagePacket} from '../../Data/Packet';
|
||||
import {SayText2} from '../UserMessage/SayText2';
|
||||
import {ParseSayText2} from '../UserMessage/SayText2';
|
||||
import {make} from './ParserGenerator';
|
||||
import {voidEncoder} from './Parser';
|
||||
|
||||
|
|
@ -66,7 +66,7 @@ enum UserMessageType {
|
|||
}
|
||||
|
||||
const userMessageParsers = {
|
||||
4: {parser: SayText2, voidEncoder},
|
||||
4: {parser: ParseSayText2, voidEncoder},
|
||||
5: make('textMsg', 'destType{8}text{s}'),
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue