Significant tidy-up. Update msg_template and add new ObjectAnimation message. Tidy up imports. Added buffer overrun check to the packet decoders since the message template doesn't seem to always correspond with what we receive (Specifically, MapBlockReply's new Size parameter)
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
// This file has been automatically generated by writeMessageClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {MessageBase} from '../MessageBase';
|
||||
import {Message} from '../../enums/Message';
|
||||
import { UUID } from '../UUID';
|
||||
import { MessageFlags } from '../../enums/MessageFlags';
|
||||
import { MessageBase } from '../MessageBase';
|
||||
import { Message } from '../../enums/Message';
|
||||
|
||||
export class RemoveInventoryFolderMessage implements MessageBase
|
||||
{
|
||||
@@ -57,6 +57,10 @@ export class RemoveInventoryFolderMessage implements MessageBase
|
||||
newObjAgentData['SessionID'] = new UUID(buf, pos);
|
||||
pos += 16;
|
||||
this.AgentData = newObjAgentData;
|
||||
if (pos >= buf.length)
|
||||
{
|
||||
return pos - startPos;
|
||||
}
|
||||
const count = buf.readUInt8(pos++);
|
||||
this.FolderData = [];
|
||||
for (let i = 0; i < count; i++)
|
||||
|
||||
Reference in New Issue
Block a user