forked from phaserjs/phaser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInjectionMap.js
More file actions
58 lines (47 loc) · 1.27 KB
/
Copy pathInjectionMap.js
File metadata and controls
58 lines (47 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/**
* @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',
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;