phaser/v3/src/state/InjectionMap.js

30 lines
621 B
JavaScript
Raw Normal View History

// These properties get injected into the State and map to local systems
// The key is the local system reference, the value is the property that is added to the State
// These can be modified via the config object
var InjectionMap = {
game: 'game',
anims: 'anims',
cache: 'cache',
input: 'input',
registry: 'registry',
textures: 'textures',
add: 'add',
cameras: 'cameras',
events: 'events',
load: 'load',
make: 'make',
stateManager: 'state',
time: 'time',
tweens: 'tweens',
displayList: 'children',
data: 'data'
};
module.exports = InjectionMap;