19 lines
539 B
C++
19 lines
539 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
|
|
#include "entt/entity/entity.hpp"
|
|
|
|
#include "Event.h"
|
|
|
|
// The set of currently selected scrap piles (REQ-UI-SCRAP-CLICK-SELECT,
|
|
// REQ-UI-SCRAP-MULTI-SELECT). An empty list means no scrap is selected. Scrap forms
|
|
// its own selection category, mutually exclusive with buildings and entities.
|
|
class ScrapSelectionChangedEvent : public Event
|
|
{
|
|
public:
|
|
explicit ScrapSelectionChangedEvent(std::vector<entt::entity> scrap)
|
|
: scrap(std::move(scrap)) {}
|
|
const std::vector<entt::entity> scrap;
|
|
};
|