ronin/scripts/units/variable.js
2016-12-20 11:16:47 -07:00

16 lines
298 B
JavaScript

function Variable(key,value)
{
Unit.call(this);
this.candidates = [];
this.key = key;
if(value == "true"){ this.value = true; }
else if(value == "false"){ this.value = false; }
else{ this.value = value; }
this.render = function()
{
return this.key+"="+this.value;
}
}