Exteor/include/xtr/core/SelectableSet.h

18 lines
407 B
C
Raw Permalink Normal View History

2024-06-07 20:30:06 +03:00
#pragma once
namespace xtr::core {
class SelectableSet {
protected:
ccl::SetOfEntities selection{};
public:
void ResetSelection() noexcept;
void Select(EntityUID uid);
void SetSelection(const SetOfEntities& newSelection);
[[nodiscard]] const ccl::SetOfEntities& Selection() const noexcept { return selection; }
[[nodiscard]] BOOL IsSelected(EntityUID uid) const;
};
} // namespace xtr::core