mirror of
https://github.com/demostf/demo.js
synced 2026-06-04 00:54:14 +02:00
more building data
This commit is contained in:
parent
eebc2e15cd
commit
dea2d2e790
7 changed files with 370 additions and 6 deletions
|
|
@ -2,9 +2,11 @@ import {make} from './ParserGenerator';
|
|||
|
||||
import {EntityMessagePacket} from "../../Data/Packet";
|
||||
import {BitStream} from 'bit-buffer';
|
||||
import {Match} from "../../Data/Match";
|
||||
|
||||
const baseParser = make('entityMessage', 'index{11}classId{9}length{11}data{$length}');
|
||||
|
||||
export function EntityMessage(stream: BitStream): EntityMessagePacket { // 24: entityMessage
|
||||
return <EntityMessagePacket>baseParser(stream); //todo parse data further?
|
||||
export function EntityMessage(stream: BitStream, match: Match): EntityMessagePacket { // 24: entityMessage
|
||||
const result = <EntityMessagePacket>baseParser(stream); //todo parse data further?
|
||||
return result;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue