Arcade Physics Colliders have a name property and setName method.

This commit is contained in:
Richard Davey 2018-02-14 19:33:33 +00:00
parent d72c7d501a
commit c6f4a6ed43

View file

@ -38,6 +38,15 @@ var Collider = new Class({
*/ */
this.world = world; this.world = world;
/**
* [description]
*
* @name Phaser.Physics.Arcade.Collider#name
* @type {string}
* @since 3.0.0
*/
this.name = '';
/** /**
* [description] * [description]
* *
@ -103,6 +112,23 @@ var Collider = new Class({
this.callbackContext = callbackContext; this.callbackContext = callbackContext;
}, },
/**
* [description]
*
* @method Phaser.Physics.Arcade.Collider#setName
* @since 3.0.0
*
* @param {string} name - [description]
*
* @return {Phaser.Physics.Arcade.Collider} [description]
*/
setName: function (name)
{
this.name = name;
return this;
},
/** /**
* [description] * [description]
* *