ronin/scripts/modules/render.js
Devine Lu Linvega 407acccfe2 Added stencils
2016-12-28 18:29:51 -07:00

27 lines
446 B
JavaScript

function Render(rune)
{
Module.call(this,rune);
this.parameters = [Any];
this.collection = {};
this.collection["stencil"] = new Filter_Stencil();
this.active = function(cmd)
{
var name = cmd.content[0];
if(!this.collection[name]){ console.log("Unknown filter:"+name); return; }
cmd.content.shift();
return this.collection[name].render(cmd.content);
}
this.passive = function(cmd)
{
}
}