module.exports = class Entity {

  constructor() {
    this.guid = Math.random() * 1000000 | 0;
  }

};

const {EventEmitter} = require('events');

module.exports = class Entity extends EventEmitter {

  constructor() {
    super();
    this.guid = Math.random() * 1000000 | 0;
  }

};

Allow entities to emit events
Allow entities to emit events
