protected function dispatchMapEvent($eventName, $params)
    {
        $map = $this->mapStorage->getMap($params['map']['uid']);

        $this->dispatch(
            $eventName,
            [
                $params['count'],
                isset($params['time']) ? $params['time'] : time(),
                isset($params['restarted']) ? $params['restarted'] : false,
                $map,
            ]
        );
    }