phaser/src/scene/InjectionMap.js

59 lines
1.3 KiB
JavaScript

/**
* @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
// The map value is the property that is injected into the Scene, the key is the Scene.Systems reference.
// These defaults can be modified via the Scene config object
// var config = {
// map: {
// add: 'makeStuff',
// load: 'loader'
// }
// };
var InjectionMap = {
game: 'game',
anims: 'anims',
cache: 'cache',
plugins: 'plugins',
registry: 'registry',
scale: 'scale',
sound: 'sound',
textures: 'textures',
events: 'events',
cameras: 'cameras',
add: 'add',
make: 'make',
scenePlugin: 'scene',
displayList: 'children',
lights: 'lights',
data: 'data',
input: 'input',
load: 'load',
time: 'time',
tweens: 'tweens',
arcadePhysics: 'physics',
impactPhysics: 'impact',
matterPhysics: 'matter'
};
if (typeof PLUGIN_CAMERA3D)
{
InjectionMap.cameras3d = 'cameras3d';
}
if (typeof PLUGIN_FBINSTANT)
{
InjectionMap.facebook = 'facebook';
}
module.exports = InjectionMap;