23 lines
419 B
C++
23 lines
419 B
C++
#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;
|
|
};
|