Skip to content

Commit e556cd9

Browse files
committed
Camera Types
1 parent 69f84f3 commit e556cd9

23 files changed

Lines changed: 33 additions & 29 deletions

src/cameras/2d/BaseCamera.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1491,7 +1491,7 @@ var BaseCamera = new Class({
14911491
* @method Phaser.Cameras.Scene2D.BaseCamera#toJSON
14921492
* @since 3.0.0
14931493
*
1494-
* @return {Phaser.Cameras.Scene2D.Types.JSONCamera} A well-formed object suitable for conversion to JSON.
1494+
* @return {Phaser.Types.Cameras.Scene2D.JSONCamera} A well-formed object suitable for conversion to JSON.
14951495
*/
14961496
toJSON: function ()
14971497
{

src/cameras/2d/CameraManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,12 +385,12 @@ var CameraManager = new Class({
385385
/**
386386
* Populates this Camera Manager based on the given configuration object, or an array of config objects.
387387
*
388-
* See the `Phaser.Cameras.Scene2D.Types.CameraConfig` documentation for details of the object structure.
388+
* See the `Phaser.Types.Cameras.Scene2D.CameraConfig` documentation for details of the object structure.
389389
*
390390
* @method Phaser.Cameras.Scene2D.CameraManager#fromJSON
391391
* @since 3.0.0
392392
*
393-
* @param {(Phaser.Cameras.Scene2D.Types.CameraConfig|Phaser.Cameras.Scene2D.Types.CameraConfig[])} config - A Camera configuration object, or an array of them, to be added to this Camera Manager.
393+
* @param {(Phaser.Types.Cameras.Scene2D.CameraConfig|Phaser.Types.Cameras.Scene2D.CameraConfig[])} config - A Camera configuration object, or an array of them, to be added to this Camera Manager.
394394
*
395395
* @return {Phaser.Cameras.Scene2D.CameraManager} This Camera Manager instance.
396396
*/

src/cameras/2d/effects/Fade.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ var Fade = new Class({
157157
* This callback is invoked every frame for the duration of the effect.
158158
*
159159
* @name Phaser.Cameras.Scene2D.Effects.Fade#_onUpdate
160-
* @type {?Phaser.Cameras.Scene2D.Types.CameraFadeCallback}
160+
* @type {?Phaser.Types.Cameras.Scene2D.CameraFadeCallback}
161161
* @private
162162
* @default null
163163
* @since 3.5.0
@@ -189,7 +189,7 @@ var Fade = new Class({
189189
* @param {integer} [green=0] - The amount to fade the green channel towards. A value between 0 and 255.
190190
* @param {integer} [blue=0] - The amount to fade the blue channel towards. A value between 0 and 255.
191191
* @param {boolean} [force=false] - Force the effect to start immediately, even if already running.
192-
* @param {Phaser.Cameras.Scene2D.Types.CameraFadeCallback} [callback] - This callback will be invoked every frame for the duration of the effect.
192+
* @param {Phaser.Types.Cameras.Scene2D.CameraFadeCallback} [callback] - This callback will be invoked every frame for the duration of the effect.
193193
* It is sent two arguments: A reference to the camera and a progress amount between 0 and 1 indicating how complete the effect is.
194194
* @param {any} [context] - The context in which the callback is invoked. Defaults to the Scene to which the Camera belongs.
195195
*

src/cameras/2d/effects/Flash.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ var Flash = new Class({
132132
* This callback is invoked every frame for the duration of the effect.
133133
*
134134
* @name Phaser.Cameras.Scene2D.Effects.Flash#_onUpdate
135-
* @type {?Phaser.Cameras.Scene2D.Types.CameraFlashCallback}
135+
* @type {?Phaser.Types.Cameras.Scene2D.CameraFlashCallback}
136136
* @private
137137
* @default null
138138
* @since 3.5.0
@@ -163,7 +163,7 @@ var Flash = new Class({
163163
* @param {integer} [green=255] - The amount to fade the green channel towards. A value between 0 and 255.
164164
* @param {integer} [blue=255] - The amount to fade the blue channel towards. A value between 0 and 255.
165165
* @param {boolean} [force=false] - Force the effect to start immediately, even if already running.
166-
* @param {Phaser.Cameras.Scene2D.Types.CameraFlashCallback} [callback] - This callback will be invoked every frame for the duration of the effect.
166+
* @param {Phaser.Types.Cameras.Scene2D.CameraFlashCallback} [callback] - This callback will be invoked every frame for the duration of the effect.
167167
* It is sent two arguments: A reference to the camera and a progress amount between 0 and 1 indicating how complete the effect is.
168168
* @param {any} [context] - The context in which the callback is invoked. Defaults to the Scene to which the Camera belongs.
169169
*

src/cameras/2d/effects/Pan.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ var Pan = new Class({
127127
* This callback is invoked every frame for the duration of the effect.
128128
*
129129
* @name Phaser.Cameras.Scene2D.Effects.Pan#_onUpdate
130-
* @type {?Phaser.Cameras.Scene2D.Types.CameraPanCallback}
130+
* @type {?Phaser.Types.Cameras.Scene2D.CameraPanCallback}
131131
* @private
132132
* @default null
133133
* @since 3.11.0
@@ -159,7 +159,7 @@ var Pan = new Class({
159159
* @param {integer} [duration=1000] - The duration of the effect in milliseconds.
160160
* @param {(string|function)} [ease='Linear'] - The ease to use for the pan. Can be any of the Phaser Easing constants or a custom function.
161161
* @param {boolean} [force=false] - Force the pan effect to start immediately, even if already running.
162-
* @param {Phaser.Cameras.Scene2D.Types.CameraPanCallback} [callback] - This callback will be invoked every frame for the duration of the effect.
162+
* @param {Phaser.Types.Cameras.Scene2D.CameraPanCallback} [callback] - This callback will be invoked every frame for the duration of the effect.
163163
* It is sent four arguments: A reference to the camera, a progress amount between 0 and 1 indicating how complete the effect is,
164164
* the current camera scroll x coordinate and the current camera scroll y coordinate.
165165
* @param {any} [context] - The context in which the callback is invoked. Defaults to the Scene to which the Camera belongs.

src/cameras/2d/effects/Shake.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ var Shake = new Class({
122122
* This callback is invoked every frame for the duration of the effect.
123123
*
124124
* @name Phaser.Cameras.Scene2D.Effects.Shake#_onUpdate
125-
* @type {?Phaser.Cameras.Scene2D.Types.CameraShakeCallback}
125+
* @type {?Phaser.Types.Cameras.Scene2D.CameraShakeCallback}
126126
* @private
127127
* @default null
128128
* @since 3.5.0
@@ -151,7 +151,7 @@ var Shake = new Class({
151151
* @param {integer} [duration=100] - The duration of the effect in milliseconds.
152152
* @param {number} [intensity=0.05] - The intensity of the shake.
153153
* @param {boolean} [force=false] - Force the shake effect to start immediately, even if already running.
154-
* @param {Phaser.Cameras.Scene2D.Types.CameraShakeCallback} [callback] - This callback will be invoked every frame for the duration of the effect.
154+
* @param {Phaser.Types.Cameras.Scene2D.CameraShakeCallback} [callback] - This callback will be invoked every frame for the duration of the effect.
155155
* It is sent two arguments: A reference to the camera and a progress amount between 0 and 1 indicating how complete the effect is.
156156
* @param {any} [context] - The context in which the callback is invoked. Defaults to the Scene to which the Camera belongs.
157157
*

src/cameras/2d/effects/Zoom.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ var Zoom = new Class({
113113
* This callback is invoked every frame for the duration of the effect.
114114
*
115115
* @name Phaser.Cameras.Scene2D.Effects.Zoom#_onUpdate
116-
* @type {?Phaser.Cameras.Scene2D.Types.CameraZoomCallback}
116+
* @type {?Phaser.Types.Cameras.Scene2D.CameraZoomCallback}
117117
* @private
118118
* @default null
119119
* @since 3.11.0
@@ -143,7 +143,7 @@ var Zoom = new Class({
143143
* @param {integer} [duration=1000] - The duration of the effect in milliseconds.
144144
* @param {(string|function)} [ease='Linear'] - The ease to use for the Zoom. Can be any of the Phaser Easing constants or a custom function.
145145
* @param {boolean} [force=false] - Force the zoom effect to start immediately, even if already running.
146-
* @param {Phaser.Cameras.Scene2D.Types.CameraZoomCallback} [callback] - This callback will be invoked every frame for the duration of the effect.
146+
* @param {Phaser.Types.Cameras.Scene2D.CameraZoomCallback} [callback] - This callback will be invoked every frame for the duration of the effect.
147147
* It is sent three arguments: A reference to the camera, a progress amount between 0 and 1 indicating how complete the effect is,
148148
* and the current camera zoom value.
149149
* @param {any} [context] - The context in which the callback is invoked. Defaults to the Scene to which the Camera belongs.

src/cameras/2d/typedefs/CameraConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @typedef {object} Phaser.Cameras.Scene2D.Types.CameraConfig
2+
* @typedef {object} Phaser.Types.Cameras.Scene2D.CameraConfig
33
* @since 3.0.0
44
*
55
* @property {string} [name=''] - The name of the Camera.

src/cameras/2d/typedefs/CameraFadeCallback.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @callback Phaser.Cameras.Scene2D.Types.CameraFadeCallback
2+
* @callback Phaser.Types.Cameras.Scene2D.CameraFadeCallback
33
* @since 3.5.0
44
*
55
* @param {Phaser.Cameras.Scene2D.Camera} camera - The camera on which the effect is running.

src/cameras/2d/typedefs/CameraFlashCallback.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @callback Phaser.Cameras.Scene2D.Types.CameraFlashCallback
2+
* @callback Phaser.Types.Cameras.Scene2D.CameraFlashCallback
33
* @since 3.5.0
44
*
55
* @param {Phaser.Cameras.Scene2D.Camera} camera - The camera on which the effect is running.

0 commit comments

Comments
 (0)