Added Camera.setName method for chaining.

This commit is contained in:
Richard Davey 2017-07-29 01:53:31 +01:00
parent 08ce1c37da
commit 3e3599d03f
3 changed files with 12 additions and 1 deletions

View file

@ -75,6 +75,7 @@ var Camera = new Class({
removeBounds: require('./components/RemoveBounds'),
setBackgroundColor: require('./components/SetBackgroundColor'),
setBounds: require('./components/SetBounds'),
setName: require('./components/SetName'),
setPosition: require('./components/SetPosition'),
setRotation: require('./components/SetRotation'),
setRoundPixels: require('./components/SetRoundPixels'),

View file

@ -0,0 +1,10 @@
var SetName = function (value)
{
if (value === undefined) { value = ''; }
this.name = value;
return this;
};
module.exports = SetName;

View file

@ -1,4 +1,4 @@
var CHECKSUM = {
build: '4bd62f10-73f1-11e7-b8d9-bbb34810695d'
build: 'c4c460d0-73f7-11e7-8118-7df32620cd19'
};
module.exports = CHECKSUM;