#ifndef ENTITY_SELECTION_CHANGED_EVENT_H
#define ENTITY_SELECTION_CHANGED_EVENT_H

#include <vector>

#include "entt/entity/entity.hpp"

#include "Event.h"

// The set of currently selected ships and/or defence stations. An empty list means
// no actor is selected. Actors share the "field" selection category with scrap piles
// (REQ-UI-SELECTION-CATEGORIES): they can be selected together, but never together with
// buildings.
class EntitySelectionChangedEvent : public Event
{
public:
	explicit EntitySelectionChangedEvent(std::vector<entt::entity> entities)
		: entities(std::move(entities))
	{
	}

	const std::vector<entt::entity> entities;
};

#endif // ENTITY_SELECTION_CHANGED_EVENT_H
