- Implement 3D space rtree-based indexing in the Full ObjectStore

- Implement ScriptDialogReply thanks to Hintswen
- Add a rudimentary object search - doesn't work fully yet because of the missing messages
This commit is contained in:
Casper Warden
2018-10-12 17:31:14 +01:00
parent bb6915e9f5
commit 9eee7f9716
34 changed files with 502 additions and 209 deletions

View File

@@ -116,7 +116,7 @@ class ObjectStoreLite {
case Message_1.Message.ObjectUpdateCompressed:
{
const objectUpdateCompressed = packet.message;
objectUpdateCompressed.ObjectData.forEach((obj) => {
for (const obj of objectUpdateCompressed.ObjectData) {
const flags = obj.UpdateFlags;
const buf = obj.Data;
let pos = 0;
@@ -223,7 +223,8 @@ class ObjectStoreLite {
pos = pos + 4;
}
o.IsAttachment = (compressedflags & __1.CompressedFlags.HasNameValues) !== 0 && o.ParentID !== 0;
});
}
;
break;
}
case Message_1.Message.ImprovedTerseObjectUpdate:
@@ -324,6 +325,9 @@ class ObjectStoreLite {
this.objectsByUUID = {};
this.objectsByParent = {};
}
getObjectsInArea(minX, maxX, minY, maxY, minZ, maxZ) {
throw new Error('GetObjectsInArea not available with the Lite object store.');
}
}
exports.ObjectStoreLite = ObjectStoreLite;
//# sourceMappingURL=ObjectStoreLite.js.map