mirror of
https://github.com/demostf/demo.js
synced 2026-06-04 09:04:13 +02:00
wip stuff
This commit is contained in:
parent
e88cd0cd7e
commit
5f3e5e5965
4 changed files with 13 additions and 5 deletions
|
|
@ -35,7 +35,7 @@ function readPVS(stream) {
|
|||
return pvs;
|
||||
}
|
||||
|
||||
module.exports = function (stream) { //26: packetEntities
|
||||
module.exports = function (stream, events, entities) { //26: packetEntities
|
||||
// todo
|
||||
var maxEntries = stream.readBits(11);
|
||||
var isDelta = !!stream.readBits(1);
|
||||
|
|
@ -49,7 +49,6 @@ module.exports = function (stream) { //26: packetEntities
|
|||
var length = stream.readBits(20);
|
||||
var updatedBaseLink = !!stream.readBits(1);
|
||||
var end = stream._index + length;
|
||||
var entities = [];
|
||||
//console.log('max: ' + maxEntries);
|
||||
//var entityId = -1;
|
||||
//
|
||||
|
|
@ -78,4 +77,4 @@ module.exports = function (stream) { //26: packetEntities
|
|||
packetType: 'packetEntities',
|
||||
entities : entities
|
||||
};
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue