split the selection panel into one card per kind of selection

This commit is contained in:
2026-08-07 18:38:55 +02:00
parent cc0ef856e3
commit 2289277e12
60 changed files with 3014 additions and 1559 deletions

View File

@@ -0,0 +1,13 @@
#pragma once
#include <vector>
#include "entt/entity/entity.hpp"
class EntityAdmin;
// Remaining scrap summed over the given debris, skipping pieces that have already been
// collected or despawned (REQ-RES-DEBRIS-DROP). Shared by the debris card and the field
// count summary, which show the same total in two shapes (REQ-UI-DEBRIS-PANEL,
// REQ-UI-FIELD-MULTI-SELECTION).
int sumDebrisScrap(const EntityAdmin& admin, const std::vector<entt::entity>& debris);