From 140ed6b4dff67d7806710924f3fd91266d0019ac Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Wed, 12 Jul 2017 00:48:56 +0100 Subject: [PATCH] Exposed RTree --- v3/src/phaser.js | 2 ++ v3/src/structs/RTree.js | 3 ++- v3/src/structs/index.js | 9 +++++++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/v3/src/phaser.js b/v3/src/phaser.js index a734eb477..1ef5a7580 100644 --- a/v3/src/phaser.js +++ b/v3/src/phaser.js @@ -38,6 +38,8 @@ var Phaser = { Sound: require('./sound'), + Structs: require('./structs'), + Physics: require('./physics'), Class: require('./utils/Class'), diff --git a/v3/src/structs/RTree.js b/v3/src/structs/RTree.js index 308066737..73c12d916 100644 --- a/v3/src/structs/RTree.js +++ b/v3/src/structs/RTree.js @@ -1,6 +1,7 @@ - var quickselect = require('../utils/array/QuickSelect'); +// Phaser.Structs.RTree + /** * RBush is a high-performance JavaScript library for 2D spatial indexing of points and rectangles. * It's based on an optimized R-tree data structure with bulk insertion support. diff --git a/v3/src/structs/index.js b/v3/src/structs/index.js index 3e569433d..61a103542 100644 --- a/v3/src/structs/index.js +++ b/v3/src/structs/index.js @@ -1,4 +1,9 @@ +// Phaser.Structs + module.exports = { - Set: require('./Set'), - Map: require('./Map') + + Map: require('./Map'), + RTree: require('./RTree'), + Set: require('./Set') + };