mirror of
https://github.com/photonstorm/phaser
synced 2024-11-10 07:04:31 +00:00
Final set of namespace changes. Fix #5062
This commit is contained in:
parent
9e2a8f4271
commit
07865a5823
11 changed files with 30 additions and 15 deletions
|
@ -28,6 +28,7 @@ var Arcade = {
|
|||
Sprite: require('./ArcadeSprite'),
|
||||
StaticBody: require('./StaticBody'),
|
||||
StaticGroup: require('./StaticPhysicsGroup'),
|
||||
Tilemap: require('./tilemap/'),
|
||||
World: require('./World')
|
||||
|
||||
};
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
* @namespace Phaser.Physics.Arcade.Tilemap
|
||||
*/
|
||||
|
||||
module.exports = {
|
||||
var Tilemap = {
|
||||
|
||||
ProcessTileCallbacks: require('./ProcessTileCallbacks'),
|
||||
ProcessTileSeparationX: require('./ProcessTileSeparationX'),
|
||||
|
@ -19,3 +19,5 @@ module.exports = {
|
|||
TileIntersectsBody: require('./TileIntersectsBody')
|
||||
|
||||
};
|
||||
|
||||
module.exports = Tilemap;
|
||||
|
|
|
@ -16,10 +16,10 @@ module.exports = {
|
|||
Friction: require('./Friction'),
|
||||
Gravity: require('./Gravity'),
|
||||
Mass: require('./Mass'),
|
||||
Static: require('./Static'),
|
||||
Sensor: require('./Sensor'),
|
||||
SetBody: require('./SetBody'),
|
||||
Sleep: require('./Sleep'),
|
||||
Static: require('./Static'),
|
||||
Transform: require('./Transform'),
|
||||
Velocity: require('./Velocity')
|
||||
|
||||
|
|
|
@ -11,7 +11,10 @@
|
|||
module.exports = {
|
||||
|
||||
BodyBounds: require('./BodyBounds'),
|
||||
Components: require('./components'),
|
||||
Events: require('./events'),
|
||||
Factory: require('./Factory'),
|
||||
MatterGameObject: require('./MatterGameObject'),
|
||||
Image: require('./MatterImage'),
|
||||
Matter: require('./CustomMain'),
|
||||
MatterPhysics: require('./MatterPhysics'),
|
||||
|
@ -20,6 +23,7 @@ module.exports = {
|
|||
TileBody: require('./MatterTileBody'),
|
||||
PhysicsEditorParser: require('./PhysicsEditorParser'),
|
||||
PhysicsJSONParser: require('./PhysicsJSONParser'),
|
||||
PointerConstraint: require('./PointerConstraint'),
|
||||
World: require('./World')
|
||||
|
||||
};
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
/**
|
||||
* @typedef {object} Phaser.Plugins.DefaultPlugins
|
||||
*
|
||||
*
|
||||
* @property {array} Global - These are the Global Managers that are created by the Phaser.Game instance.
|
||||
* @property {array} CoreScene - These are the core plugins that are installed into every Scene.Systems instance, no matter what.
|
||||
* @property {array} DefaultScene - These plugins are created in Scene.Systems in addition to the CoreScenePlugins.
|
||||
|
@ -17,8 +17,8 @@ var DefaultPlugins = {
|
|||
/**
|
||||
* These are the Global Managers that are created by the Phaser.Game instance.
|
||||
* They are referenced from Scene.Systems so that plugins can use them.
|
||||
*
|
||||
* @name Phaser.Plugins.Global
|
||||
*
|
||||
* @name Phaser.Plugins.DefaultPlugins.Global
|
||||
* @type {array}
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
@ -38,10 +38,10 @@ var DefaultPlugins = {
|
|||
/**
|
||||
* These are the core plugins that are installed into every Scene.Systems instance, no matter what.
|
||||
* They are optionally exposed in the Scene as well (see the InjectionMap for details)
|
||||
*
|
||||
*
|
||||
* They are created in the order in which they appear in this array and EventEmitter is always first.
|
||||
*
|
||||
* @name Phaser.Plugins.CoreScene
|
||||
*
|
||||
* @name Phaser.Plugins.DefaultPlugins.CoreScene
|
||||
* @type {array}
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
@ -60,16 +60,16 @@ var DefaultPlugins = {
|
|||
|
||||
/**
|
||||
* These plugins are created in Scene.Systems in addition to the CoreScenePlugins.
|
||||
*
|
||||
*
|
||||
* You can elect not to have these plugins by either creating a DefaultPlugins object as part
|
||||
* of the Game Config, by creating a Plugins object as part of a Scene Config, or by modifying this array
|
||||
* and building your own bundle.
|
||||
*
|
||||
*
|
||||
* They are optionally exposed in the Scene as well (see the InjectionMap for details)
|
||||
*
|
||||
*
|
||||
* They are always created in the order in which they appear in the array.
|
||||
*
|
||||
* @name Phaser.Plugins.DefaultScene
|
||||
*
|
||||
* @name Phaser.Plugins.DefaultPlugins.DefaultScene
|
||||
* @type {array}
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
|
|
@ -14,6 +14,8 @@ var Extend = require('../utils/object/Extend');
|
|||
var Scene = {
|
||||
|
||||
Events: require('./events'),
|
||||
GetPhysicsPlugins: require('./GetPhysicsPlugins'),
|
||||
GetScenePlugins: require('./GetScenePlugins'),
|
||||
SceneManager: require('./SceneManager'),
|
||||
ScenePlugin: require('./ScenePlugin'),
|
||||
Settings: require('./Settings'),
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
module.exports = {
|
||||
|
||||
Events: require('./events'),
|
||||
List: require('./List'),
|
||||
Map: require('./Map'),
|
||||
ProcessQueue: require('./ProcessQueue'),
|
||||
|
|
|
@ -41,6 +41,8 @@ module.exports = {
|
|||
SetCollisionByExclusion: require('./SetCollisionByExclusion'),
|
||||
SetCollisionByProperty: require('./SetCollisionByProperty'),
|
||||
SetCollisionFromCollisionGroup: require('./SetCollisionFromCollisionGroup'),
|
||||
SetLayerCollisionIndex: require('./SetLayerCollisionIndex'),
|
||||
SetTileCollision: require('./SetTileCollision'),
|
||||
SetTileIndexCallback: require('./SetTileIndexCallback'),
|
||||
SetTileLocationCallback: require('./SetTileLocationCallback'),
|
||||
Shuffle: require('./Shuffle'),
|
||||
|
|
|
@ -13,6 +13,7 @@ module.exports = {
|
|||
AssignTileProperties: require('./AssignTileProperties'),
|
||||
Base64Decode: require('./Base64Decode'),
|
||||
BuildTilesetIndex: require('./BuildTilesetIndex'),
|
||||
CreateGroupLayer: require('./CreateGroupLayer'),
|
||||
ParseGID: require('./ParseGID'),
|
||||
ParseImageLayers: require('./ParseImageLayers'),
|
||||
ParseJSONTiled: require('./ParseJSONTiled'),
|
||||
|
|
|
@ -35,6 +35,7 @@ var stable = function(arr, comp) {
|
|||
* @function Phaser.Utils.Array.StableSortFunctions.inplace
|
||||
* @memberof Phaser.Utils.Array.StableSortFunctions
|
||||
* @since 3.0.0
|
||||
* @ignore
|
||||
*
|
||||
* @param {array} arr - The input array.
|
||||
* @param {function} comp - The comparison handler.
|
||||
|
@ -139,4 +140,4 @@ else {
|
|||
window.stable = stable;
|
||||
}
|
||||
|
||||
})();
|
||||
})();
|
||||
|
|
|
@ -13,6 +13,7 @@ module.exports = {
|
|||
Array: require('./array/'),
|
||||
Base64: require('./base64/'),
|
||||
Objects: require('./object/'),
|
||||
String: require('./string/')
|
||||
String: require('./string/'),
|
||||
NOOP: require('./NOOP')
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue