// IOVsetConnection.js
(function() {
/*global adventurejs A*/
"use strict";
var p = adventurejs.Asset.prototype;
/**
* Set asset's indirect verb param connection to specified direct object.
* @memberOf adventurejs.Asset
* @method adventurejs.Asset#IOVsetConnection
* @param {String} verb
* @param {Object} asset
*/
p.IOVsetConnection = function Asset_IOVsetConnection( verb, asset )
{
if( "string" === typeof asset) asset = this.game.getAsset(asset);
if( !asset || !asset.id ) return false;
if( !verb || !this.game.dictionary.verbs[verb] ) return false;
this.game.dictionary.verbs[verb].setVerbSubscriptionConnection( asset, this );
}
}());