2018-02-12 16:01:20 +00:00
|
|
|
/**
|
|
|
|
* @author Richard Davey <rich@photonstorm.com>
|
2019-01-15 16:20:22 +00:00
|
|
|
* @copyright 2019 Photon Storm Ltd.
|
2019-05-10 15:15:04 +00:00
|
|
|
* @license {@link https://opensource.org/licenses/MIT|MIT License}
|
2018-02-12 16:01:20 +00:00
|
|
|
*/
|
|
|
|
|
2017-07-14 13:30:20 +00:00
|
|
|
// 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'
|
|
|
|
// }
|
|
|
|
// };
|
2017-06-29 23:32:18 +00:00
|
|
|
|
|
|
|
var InjectionMap = {
|
|
|
|
|
|
|
|
game: 'game',
|
|
|
|
|
|
|
|
anims: 'anims',
|
|
|
|
cache: 'cache',
|
2018-05-10 16:14:33 +00:00
|
|
|
plugins: 'plugins',
|
2017-06-29 23:32:18 +00:00
|
|
|
registry: 'registry',
|
2018-10-18 13:59:27 +00:00
|
|
|
scale: 'scale',
|
2018-01-11 14:48:43 +00:00
|
|
|
sound: 'sound',
|
2017-06-29 23:32:18 +00:00
|
|
|
textures: 'textures',
|
|
|
|
|
2018-01-18 05:20:33 +00:00
|
|
|
events: 'events',
|
2017-06-29 23:32:18 +00:00
|
|
|
cameras: 'cameras',
|
2018-01-18 05:20:33 +00:00
|
|
|
add: 'add',
|
|
|
|
make: 'make',
|
|
|
|
scenePlugin: 'scene',
|
|
|
|
displayList: 'children',
|
2018-01-30 22:46:43 +00:00
|
|
|
lights: 'lights',
|
2018-01-18 05:20:33 +00:00
|
|
|
|
2017-07-05 16:17:50 +00:00
|
|
|
data: 'data',
|
2018-01-16 23:18:02 +00:00
|
|
|
input: 'input',
|
2017-06-29 23:32:18 +00:00
|
|
|
load: 'load',
|
|
|
|
time: 'time',
|
2018-01-18 05:20:33 +00:00
|
|
|
tweens: 'tweens',
|
|
|
|
|
|
|
|
arcadePhysics: 'physics',
|
|
|
|
impactPhysics: 'impact',
|
|
|
|
matterPhysics: 'matter'
|
2017-06-29 23:32:18 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
2018-08-23 14:30:21 +00:00
|
|
|
if (typeof PLUGIN_CAMERA3D)
|
|
|
|
{
|
|
|
|
InjectionMap.cameras3d = 'cameras3d';
|
|
|
|
}
|
|
|
|
|
2018-08-23 17:10:20 +00:00
|
|
|
if (typeof PLUGIN_FBINSTANT)
|
|
|
|
{
|
|
|
|
InjectionMap.facebook = 'facebook';
|
|
|
|
}
|
|
|
|
|
2017-06-29 23:32:18 +00:00
|
|
|
module.exports = InjectionMap;
|