phaser/src/scene/InjectionMap.js

31 lines
690 B
JavaScript
Raw Normal View History

// These properties get injected into the Scene and map to local systems
2017-08-15 22:37:00 +00:00
// The map key is the local system reference, the value is the property that is added to the Scene
// These defaults can be modified via the Scene config object
var InjectionMap = {
game: 'game',
anims: 'anims',
cache: 'cache',
registry: 'registry',
2018-01-11 14:48:43 +00:00
sound: 'sound',
textures: 'textures',
add: 'add',
cameras: 'cameras',
data: 'data',
displayList: 'children',
events: 'events',
2018-01-16 23:18:02 +00:00
input: 'input',
load: 'load',
make: 'make',
2017-08-15 22:37:00 +00:00
physicsManager: 'physics',
sceneManager: 'scene',
time: 'time',
tweens: 'tweens'
};
module.exports = InjectionMap;