Added jsdocs

This commit is contained in:
Richard Davey 2018-02-12 17:03:53 +00:00
parent b6b8f70550
commit 3493e272d6
2 changed files with 24 additions and 1 deletions

View file

@ -4,10 +4,22 @@
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
var BlendModes = require('../renderer/BlendModes');
var GetAdvancedValue = require('../utils/object/GetAdvancedValue');
var ScaleModes = require('../renderer/ScaleModes');
var BlendModes = require('../renderer/BlendModes');
/**
* Builds a Game Object using the provided configuration object.
*
* @function Phaser.Gameobjects.BuildGameObject
* @since 3.0.0
*
* @param {Phaser.Scene} scene - [description]
* @param {Phaser.GameObjects.GameObject} gameObject - [description]
* @param {object} config - [description]
*
* @return {Phaser.GameObjects.GameObject} The built Game Object.
*/
var BuildGameObject = function (scene, gameObject, config)
{
// Position

View file

@ -6,6 +6,17 @@
var GetAdvancedValue = require('../utils/object/GetAdvancedValue');
/**
* Adds an Animation component to a Sprite and populates it based on the given config.
*
* @function Phaser.Gameobjects.BuildGameObjectAnimation
* @since 3.0.0
*
* @param {Phaser.GameObjects.Sprite} sprite - [description]
* @param {object} config - [description]
*
* @return {Phaser.GameObjects.Sprite} The updated Sprite.
*/
var BuildGameObjectAnimation = function (sprite, config)
{
var animConfig = GetAdvancedValue(config, 'anims', null);