1- // var CameraManager = require('../../camera/local/CameraManager');
2- var Class = require ( '../../utils/Class' ) ;
3- var Clock = require ( '../../time/Clock' ) ;
4- var Data = require ( '../../data/Data' ) ;
5- var DataStore = require ( '../../data/DataStore' ) ;
6- var DisplayList = require ( '../plugins/DisplayList' ) ;
7- var EventEmitter = require ( 'eventemitter3' ) ;
8- var GameObjectCreator = require ( '../plugins/GameObjectCreator' ) ;
9- var GameObjectFactory = require ( '../plugins/GameObjectFactory' ) ;
10- var InputManager = require ( '../../input/InputPlugin' ) ;
11- var Loader = require ( '../plugins/Loader' ) ;
12- var PhysicsManager = require ( '../plugins/PhysicsManager' ) ;
13- var SceneManager = require ( '../plugins/SceneManager' ) ;
1+ var Class = require ( '../utils/Class' ) ;
142var Settings = require ( './Settings' ) ;
15- var TweenManager = require ( '../../tweens/manager/TweenManager' ) ;
16- var UpdateList = require ( '../plugins/UpdateList' ) ;
3+ var EventEmitter = require ( 'eventemitter3' ) ;
174
18- var TestPlugin = require ( '../../plugins/TestPlugin' ) ;
5+ // var Data = require('../../data/Data');
6+ // var DataStore = require('../../data/DataStore');
7+ // var InputManager = require('../../input/InputPlugin');
8+ // var PhysicsManager = require('../plugins/PhysicsManager');
199
2010var Systems = new Class ( {
2111
@@ -74,27 +64,21 @@ var Systems = new Class({
7464
7565 this . events = new EventEmitter ( ) ;
7666
77- game . plugins . install ( scene , [ 'displayList' , 'updateList' , 'sceneManager' , 'time' , 'cameras' , 'add' , 'make' ] ) ;
67+ game . plugins . install ( scene , [ 'displayList' , 'updateList' , 'sceneManager' , 'time' , 'cameras' , 'add' , 'make' , 'load' , 'tweens' ] ) ;
7868
7969 // Optional Scene plugins - not referenced by core systems, can be overridden with user code
8070
8171 // game.plugins.install(scene, [ , 'test' ]);
8272
83- this . data = new Data ( scene ) ;
84- this . dataStore = new DataStore ( scene ) ;
85- this . inputManager = new InputManager ( scene ) ;
86- this . load = new Loader ( scene ) ;
87- this . physicsManager = new PhysicsManager ( scene ) ;
88- this . tweens = new TweenManager ( scene ) ;
73+ // this.data = new Data(scene);
74+ // this.dataStore = new DataStore(scene);
75+ // this.inputManager = new InputManager(scene);
76+ // this.physicsManager = new PhysicsManager(scene);
77+ // this.tweens = new TweenManager(scene);
8978
9079 // Sometimes the managers need access to a system created after them
9180
9281 this . events . emit ( 'boot' , this ) ;
93-
94- this . inputManager . boot ( ) ;
95- this . physicsManager . boot ( ) ;
96-
97- this . inject2 ( ) ;
9882 } ,
9983
10084 inject : function ( plugin )
@@ -107,21 +91,6 @@ var Systems = new Class({
10791 }
10892 } ,
10993
110- inject2 : function ( )
111- {
112- var map = this . settings . map ;
113-
114- for ( var key in map )
115- {
116- if ( key === 'sys' )
117- {
118- continue ;
119- }
120-
121- this . scene [ map [ key ] ] = this [ key ] ;
122- }
123- } ,
124-
12594 step : function ( time , delta )
12695 {
12796 // Are there any pending SceneManager actions?
@@ -135,21 +104,21 @@ var Systems = new Class({
135104
136105 this . events . emit ( 'preupdate' , time , delta ) ;
137106
138- this . tweens . begin ( time ) ;
139- this . inputManager . begin ( time ) ;
107+ // this.tweens.begin(time);
108+ // this.inputManager.begin(time);
140109
141110 this . events . emit ( 'update' , time , delta ) ;
142111
143- this . physicsManager . update ( time , delta ) ;
112+ // this.physicsManager.update(time, delta);
144113
145- this . tweens . update ( time , delta ) ;
146- this . inputManager . update ( time , delta ) ;
114+ // this.tweens.update(time, delta);
115+ // this.inputManager.update(time, delta);
147116
148117 this . scene . update . call ( this . scene , time , delta ) ;
149118
150119 this . events . emit ( 'postupdate' , time , delta ) ;
151120
152- this . physicsManager . postUpdate ( ) ;
121+ // this.physicsManager.postUpdate();
153122 } ,
154123
155124 render : function ( interpolation , renderer )
@@ -251,8 +220,8 @@ var Systems = new Class({
251220 // this.displayList.shutdown();
252221 // this.updateList.shutdown();
253222 // this.time.shutdown();
254- this . tweens . shutdown ( ) ;
255- this . physicsManager . shutdown ( ) ;
223+ // this.tweens.shutdown();
224+ // this.physicsManager.shutdown();
256225
257226 if ( this . scene . shutdown )
258227 {
@@ -265,10 +234,10 @@ var Systems = new Class({
265234 {
266235 this . events . emit ( 'destroy' , this ) ;
267236
268- this . add . destroy ( ) ;
237+ // this.add.destroy();
269238 // this.time.destroy();
270- this . tweens . destroy ( ) ;
271- this . physicsManager . destroy ( ) ;
239+ // this.tweens.destroy();
240+ // this.physicsManager.destroy();
272241
273242 // etc
274243 if ( this . scene . destroy )
0 commit comments