var entity = new IgeEntity();
entity.addBehaviour('myBehaviour', function () {
// Code here will execute during each engine update for
// this entity. I can access the entity via the "this"
// keyword such as:
this._somePropertyOfTheEntity = 'moo';
});
// Now since each update we are setting _somePropertyOfTheEntity
// to equal "moo" we can console log the property and get
// the value as "moo"
console.log(entity._somePropertyOfTheEntity);