implement ship modules

This commit is contained in:
2026-05-18 08:49:51 +02:00
parent b59e392461
commit d08bf5d37b
33 changed files with 1911 additions and 56 deletions

View File

@@ -10,10 +10,12 @@
#include "EntityId.h"
#include "GameConfig.h"
#include "RecipesConfig.h"
#include "ShipLayout.h"
#include "ShipsConfig.h"
#include "Tick.h"
class Simulation;
class ShipLayoutPreview;
class QLabel;
class QComboBox;
class QListWidget;
@@ -28,6 +30,9 @@ public:
SelectedBuildingPanel(Simulation* sim, const GameConfig* config,
QWidget* parent = nullptr);
signals:
void layoutDialogRequested(EntityId shipyardId);
public slots:
void onSelectionChanged(const std::vector<EntityId>& ids);
void onStateUpdated(Tick tick, int blocks, double speed);
@@ -63,6 +68,9 @@ private:
QListWidget* m_filterBList;
QLabel* m_buffersLabel;
ShipLayoutPreview* m_layoutPreview;
QPushButton* m_configureLayoutBtn;
EntityId m_singleId;
QPoint m_splitterTile;
std::string m_currentRecipeId;