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

22
src/lib/sim/ShipLayout.h Normal file
View File

@@ -0,0 +1,22 @@
#pragma once
#include <string>
#include <vector>
#include <QPoint>
#include "Rotation.h"
// A single module placed on a ship's layout grid (REQ-MOD-PLACEMENT).
struct PlacedModule
{
std::string moduleId;
QPoint position;
Rotation rotation;
};
// The complete module configuration for a shipyard's current ship (REQ-MOD-CONFIG).
struct ShipLayoutConfig
{
std::vector<PlacedModule> placedModules;
};