splat-ecs
Version:
A 2D HTML5 Canvas game engine
15 lines (14 loc) • 346 B
JavaScript
/**
* An entity to keep this entity inside of another
* @typedef {Object} constrainPosition
* @memberof Components
* @property {float} id - The id of a target entity to keep this entity inside of
*/
module.exports = {
factory: function() {
return {};
},
reset: function(constrainPosition) {
delete constrainPosition.id;
}
};