2017-02-28 14:49:39 +00:00
|
|
|
var Graphics = require('./Graphics');
|
|
|
|
var FactoryContainer = require('../../gameobjects/FactoryContainer');
|
|
|
|
|
|
|
|
var GraphicsFactory = {
|
|
|
|
|
|
|
|
KEY: 'graphics',
|
|
|
|
|
2017-03-29 14:06:06 +00:00
|
|
|
add: function (options)
|
2017-02-28 14:49:39 +00:00
|
|
|
{
|
2017-03-29 14:06:06 +00:00
|
|
|
return this.state.children.add(new Graphics(this.state, options));
|
2017-02-28 14:49:39 +00:00
|
|
|
},
|
|
|
|
|
2017-03-29 14:06:06 +00:00
|
|
|
make: function (options)
|
2017-02-28 14:49:39 +00:00
|
|
|
{
|
2017-03-29 14:06:06 +00:00
|
|
|
return new Graphics(this.state, options);
|
2017-02-28 14:49:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = FactoryContainer.register(GraphicsFactory);
|