Plugins
If spirits.
var MySpirit = gui.Spirit.extend({
onready: function() {
this.super.onready();
this.input.connect(Person);
}
})
Equivalent.
Person.output.connect(this);
Destruction.
oninput: function(input) {
this.super.oninput(input);
switch(input.type) {
case GoodPerson:
var goodperson = input.data;
console.log(goodperson.fullname());
break;
case BadPerson:
var badperson = input.data;
console.log(badperson.fullname());
break;
}
}