code: func (p *Parser) OnGameEvent(name string, fn GameEventHandler) {
  	p.gameEventHandlers[name] = append(p.gameEventHandlers[name], fn)
  }
docs: // OnGameEvent registers an GameEventHandler that will be called when a
  // named GameEvent occurs.