function trigger (name, entity, args) {
    if (typeof entity.component[name] !== 'function') return
    return entity.component[name].apply(null, args)
  }
Trigger a hook on a component.

@param {String} name Name of hook.
@param {Entity} entity The component instance.
@param {Array} args To pass along to hook.