store ship module layout in shipyard blueprint

This commit is contained in:
2026-06-04 21:38:46 +02:00
parent 42b51cc6f4
commit 3e19e44f24
6 changed files with 252 additions and 18 deletions

View File

@@ -1,5 +1,6 @@
#pragma once
#include <optional>
#include <string>
#include <vector>
@@ -8,6 +9,7 @@
#include "BuildingType.h"
#include "Rotation.h"
#include "ShipLayout.h"
struct BlueprintBuilding
{
@@ -15,6 +17,7 @@ struct BlueprintBuilding
Rotation rotation;
QPoint offset; // tile offset from bounding-box center (floor for even sizes)
std::string recipeId; // empty = none selected
std::optional<ShipLayoutConfig> shipLayout;
};
struct Blueprint