Skip to content

Commit 97efeff

Browse files
committed
Removed the Pool classes and Manager as Group can now take on this role
1 parent ac4f05b commit 97efeff

6 files changed

Lines changed: 0 additions & 428 deletions

File tree

v3/src/gameobjects/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ var GameObjects = {
1212
Graphics: require('./graphics/Graphics.js'),
1313
Group: require('./group/Group'),
1414
Image: require('./image/Image'),
15-
ObjectPool: require('./pool/ObjectPool.js'),
1615
Particles: require('./particles/ParticleEmitterManager'),
1716
PathFollower: require('./pathfollower/PathFollower'),
1817
Sprite3D: require('./sprite3d/Sprite3D'),

v3/src/gameobjects/pool/ObjectPool.js

Lines changed: 0 additions & 231 deletions
This file was deleted.

v3/src/gameobjects/pool/SpritePool.js

Lines changed: 0 additions & 48 deletions
This file was deleted.

v3/src/scene/local/InjectionMap.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ var InjectionMap = {
2020
load: 'load',
2121
make: 'make',
2222
physicsManager: 'physics',
23-
pool: 'pool',
2423
sceneManager: 'scene',
2524
time: 'time',
2625
tweens: 'tweens'

v3/src/scene/local/Systems.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ var GameObjectFactory = require('../plugins/GameObjectFactory');
1010
var InputManager = require('../plugins/InputManager');
1111
var Loader = require('../plugins/Loader');
1212
var PhysicsManager = require('../plugins/PhysicsManager');
13-
var PoolManager = require('../plugins/PoolManager');
1413
var SceneManager = require('../plugins/SceneManager');
1514
var Settings = require('./Settings');
1615
var StableSort = require('../../utils/array/StableSort');
@@ -54,7 +53,6 @@ var Systems = new Class({
5453
this.load;
5554
this.make;
5655
this.physicsManager;
57-
this.pool;
5856
this.sceneManager;
5957
this.time;
6058
this.tweens;
@@ -86,7 +84,6 @@ var Systems = new Class({
8684
this.load = new Loader(scene);
8785
this.make = new GameObjectCreator(scene);
8886
this.physicsManager = new PhysicsManager(scene);
89-
this.pool = new PoolManager(scene);
9087
this.sceneManager = new SceneManager(scene);
9188
this.time = new Clock(scene);
9289
this.tweens = new TweenManager(scene);
@@ -128,15 +125,13 @@ var Systems = new Class({
128125
// Move these into local arrays, so you can control which systems are registered here and their
129126
// execution order
130127

131-
this.pool.begin(time);
132128
this.updateList.begin(time);
133129
this.time.begin(time);
134130
this.tweens.begin(time);
135131
this.inputManager.begin(time);
136132

137133
this.physicsManager.update(time, delta);
138134

139-
this.pool.update(time, delta);
140135
this.updateList.update(time, delta);
141136
this.time.update(time, delta);
142137
this.tweens.update(time, delta);
@@ -250,7 +245,6 @@ var Systems = new Class({
250245
this.settings.active = false;
251246
this.settings.visible = false;
252247

253-
this.pool.shutdown();
254248
this.displayList.shutdown();
255249
this.updateList.shutdown();
256250
this.time.shutdown();
@@ -268,7 +262,6 @@ var Systems = new Class({
268262
// TODO
269263

270264
this.add.destroy();
271-
this.pool.destroy();
272265
this.time.destroy();
273266
this.tweens.destroy();
274267

0 commit comments

Comments
 (0)