phaser/src/scene/InjectionMap.js
2022-02-28 14:29:51 +00:00

60 lines
1.3 KiB
JavaScript

/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2022 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|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',
renderer: 'renderer',
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;