phaser/src/scene/InjectionMap.js

50 lines
1.1 KiB
JavaScript
Raw Normal View History

2018-02-12 16:01:20 +00:00
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2018 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
// These properties get injected into the Scene and map to local systems
2018-03-30 16:01:29 +00:00
// The map value is the property that is injected into the Scene, the key is the Scene.Systems reference.
2017-08-15 22:37:00 +00:00
// These defaults can be modified via the Scene config object
2018-03-30 16:01:29 +00:00
// var config = {
// map: {
// add: 'makeStuff',
// load: 'loader'
// }
// };
var InjectionMap = {
game: 'game',
anims: 'anims',
cache: 'cache',
2018-05-10 16:14:33 +00:00
plugins: 'plugins',
registry: 'registry',
2018-01-11 14:48:43 +00:00
sound: 'sound',
textures: 'textures',
events: 'events',
cameras: 'cameras',
cameras3d: 'cameras3d',
add: 'add',
make: 'make',
scenePlugin: 'scene',
displayList: 'children',
2018-01-30 22:46:43 +00:00
lights: 'lights',
data: 'data',
2018-01-16 23:18:02 +00:00
input: 'input',
load: 'load',
time: 'time',
tweens: 'tweens',
arcadePhysics: 'physics',
impactPhysics: 'impact',
matterPhysics: 'matter'
};
module.exports = InjectionMap;