mirror of
https://github.com/photonstorm/phaser
synced 2025-01-25 19:35:15 +00:00
20 lines
410 B
JavaScript
20 lines
410 B
JavaScript
var Zone = require('./Zone');
|
|
var FactoryContainer = require('../FactoryContainer');
|
|
|
|
var ZoneFactory = {
|
|
|
|
KEY: 'zone',
|
|
|
|
add: function (x, y, width, height)
|
|
{
|
|
return new Zone(this.state, x, y, width, height);
|
|
},
|
|
|
|
make: function (x, y, width, height)
|
|
{
|
|
return new Zone(this.state, x, y, width, height);
|
|
}
|
|
|
|
};
|
|
|
|
module.exports = FactoryContainer.register(ZoneFactory);
|