// $getKeys.js
(function() {
/*global adventurejs A*/
"use strict";
var p = adventurejs.Character.prototype;
/**
* Returns a list of keys that player is carrying, if any,
* to unlock the specified asset.
* @memberOf adventurejs.Character
* @method adventurejs.Character#$getKeys
* @param {Object|String} direct_object An asset or asset ID to unlock.
* @returns {Array} An array of Key assets, if player has any.
*/
p.$getKeys = function Character__getKeys(direct_object)
{
return this.getIOVkeys('unlock',direct_object);
}
}());