Fixing internal method name typos

This commit is contained in:
Michael Hadley 2017-11-21 19:07:22 -06:00
parent 500da5d07f
commit e3dbf7c2d0
2 changed files with 6 additions and 4 deletions

View file

@ -1,6 +1,7 @@
var GetTilesWithin = require('./GetTilesWithin');
var Fill = function (srcTileX, srcTileY, width, height, destTileX, destTileY, layer)
// Copies indices, not other properties. Does not modify collisions.
var Copy = function (srcTileX, srcTileY, width, height, destTileX, destTileY, layer)
{
if (srcTileX === undefined || srcTileX < 0) { srcTileX = 0; }
if (srcTileY === undefined || srcTileY < 0) { srcTileY = 0; }
@ -21,4 +22,4 @@ var Fill = function (srcTileX, srcTileY, width, height, destTileX, destTileY, la
}
};
module.exports = Fill;
module.exports = Copy;

View file

@ -1,7 +1,8 @@
var GetTilesWithin = require('./GetTilesWithin');
var GetRandomElement = require('../../../utils/array/GetRandomElement');
var Shuffle = function (tileX, tileY, width, height, indices, layer)
// Randomizes indices, not other properties. Does not modify collisions. Matches v2 functionality.
var Randomize = function (tileX, tileY, width, height, indices, layer)
{
var i;
var tiles = GetTilesWithin(tileX, tileY, width, height, layer);
@ -25,4 +26,4 @@ var Shuffle = function (tileX, tileY, width, height, indices, layer)
}
};
module.exports = Shuffle;
module.exports = Randomize;